[Sumover-dev] [svn commit] r4729 - vic/branches/cc/video
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Fri Mar 26 22:07:17 GMT 2010
Author: soohyunc
Date: Fri Mar 26 22:07:17 2010
New Revision: 4729
Modified:
vic/branches/cc/video/grabber-still.cpp
Log:
printing start grabbing at more meaningful location
Modified: vic/branches/cc/video/grabber-still.cpp
==============================================================================
--- vic/branches/cc/video/grabber-still.cpp (original)
+++ vic/branches/cc/video/grabber-still.cpp Fri Mar 26 22:07:17 2010
@@ -366,10 +366,6 @@
debug_msg("StillYuvGrabber::grab() called\n");
#endif
- // time measurement
- start_grab_ = grabber_now() - grabber_ts_off_;
- fprintf(stderr, "start_grab\tnow: %f\n", start_grab_);
-
int frc=0; //SV-XXX: gcc4 warns for initialisation
// check if Tx queue is growing too much.
@@ -377,6 +373,10 @@
if (target_->suspend_grabbing())
return (frc);
+ // time measurement
+ start_grab_ = grabber_now() - grabber_ts_off_;
+ fprintf(stderr, "start_grab\tnow: %f\n", start_grab_);
+
// "framesize_" is just the number of pixels,
// so the number of bytes becomes "3 * framesize_ / 2"
memcpy (frame_, still_device.frame_ + nbytes_,
More information about the Sumover-dev
mailing list