Share via


Changing a Video Capture Setting

The following example uses the capCaptureGetSetup and capCaptureSetSetup macros to change the capture rate from the default value (15 frames per second) to 10 frames per second.

CAPTUREPARMS CaptureParms;
float FramesPerSec = 10.0;

capCaptureGetSetup(hWndC, &CaptureParms, sizeof(CAPTUREPARMS));

CaptureParms.dwRequestMicroSecPerFrame = (DWORD) (1.0e6 / 
    FramesPerSec);
capCaptureSetSetup(hWndC, &CaptureParms, sizeof (CAPTUREPARMS));