[Sumover-dev] [svn commit] r4893 - vic/branches/mpeg4/video
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Sun Dec 12 21:33:42 GMT 2010
Author: douglask
Date: Sun Dec 12 21:33:42 2010
New Revision: 4893
Modified:
vic/branches/mpeg4/video/grabber-win32DS.cpp
Log:
Explicitly set AvgTimePerFrame, otherwise capture fps may be very low with webcams
Modified: vic/branches/mpeg4/video/grabber-win32DS.cpp
==============================================================================
--- vic/branches/mpeg4/video/grabber-win32DS.cpp (original)
+++ vic/branches/mpeg4/video/grabber-win32DS.cpp Sun Dec 12 21:33:42 2010
@@ -1057,8 +1057,8 @@
//pVih->bmiHeader.biSizeImage = DIBSIZE(pVih->bmiHeader);
// AvgTimePerFrame value that specifies the video frame'
// average display time, in 100-nanosecond units.
- //if (fps_)
- //pVih->AvgTimePerFrame = 10000000/fps_;
+ if (fps_)
+ pVih->AvgTimePerFrame = 10000000/fps_;
debug_msg("fps_= %d, AvgTimePerFrame: %d\n", fps_, pVih->AvgTimePerFrame);
More information about the Sumover-dev
mailing list