Search code examples
c#winapivideovideo-capturevfw

VfW : Changing video resolution


I'm trying to change video capture resolution in VfW (Video for Windows), but I couldn't find any useful structure or method. It seems the only way to change video setting is using CAPTUREPARMS structure. But It doesn't have any field to set video capture resolution.

Any advice will be helpful. Thanks.


Solution

  • Resolution is changed through Format Dialog associated with capture device. You are supposed to pop up format dialog with WM_CAP_DLG_VIDEOFORMAT then user might change the resolution interactively using choices provided by the driver, then you obtain new settings via CAPSTATUS structure.