Capture: Fix resolution change with EVR, VMR renderless and madVR.
Add support for OSD in the capture mode.

Fix wrong window size after opening device.
Also some cosmetic changes.