P
Perro Flaco
Hi everybody!
Im developing an application which involves capturing video from a
webcam. I use video for windows API. The program doesn't capture
real-time video, but it only captures still-images from time to time.
When the program is waiting and doing nothing, the CPU is at 50%. I
would like to know if there is any posibility to reduce the amount of
CPU used.
By the way, the code that I used to start the still-image capture
session is the following:
-----
hWndC = capCreateCaptureWindow ("CW",
WS_POPUP,
0,
0,
0,
0,
NULL,
nID);
capDriverConnect(hWndC, 0);
capCaptureGetSetup(hWndC, &Parameters, sizeof(Parameters));
Parameters.fYield = false;
capCaptureSetSetup(hWndC, &Parameters, sizeof(Parameters));
capPreview(hWndC, false);
Im developing an application which involves capturing video from a
webcam. I use video for windows API. The program doesn't capture
real-time video, but it only captures still-images from time to time.
When the program is waiting and doing nothing, the CPU is at 50%. I
would like to know if there is any posibility to reduce the amount of
CPU used.
By the way, the code that I used to start the still-image capture
session is the following:
-----
hWndC = capCreateCaptureWindow ("CW",
WS_POPUP,
0,
0,
0,
0,
NULL,
nID);
capDriverConnect(hWndC, 0);
capCaptureGetSetup(hWndC, &Parameters, sizeof(Parameters));
Parameters.fYield = false;
capCaptureSetSetup(hWndC, &Parameters, sizeof(Parameters));
capPreview(hWndC, false);