[Sumover-dev] [svn commit] r4190 - vic/branches/cc/video

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Thu Jun 26 10:17:01 BST 2008


Author: piers
Date: Thu Jun 26 10:17:00 2008
New Revision: 4190

Modified:
   vic/branches/cc/video/grabber-still.cpp

Log:
Fixed frame counter index - it wasn't being increased correctly (i.e. it
omitted to add framesize_/2 when incrementing the pointer).


Modified: vic/branches/cc/video/grabber-still.cpp
==============================================================================
--- vic/branches/cc/video/grabber-still.cpp	(original)
+++ vic/branches/cc/video/grabber-still.cpp	Thu Jun 26 10:17:00 2008
@@ -339,11 +339,10 @@
 
 	// "framesize_" is just the number of pixels, 
 	// so the number of bytes becomes "3 * 2 * framesize_"
-	memcpy (frame_, 
-			still_device.frame_ + num_frame_, 
+	memcpy (frame_, still_device.frame_ + num_frame_, 
 			framesize_ + (framesize_ >> 1));
 
-	if ((num_frame_ += framesize_) < still_device.len_) {
+	if ((num_frame_ += framesize_+(framesize_ >> 1)) < still_device.len_) {
 	} else {
 		num_frame_=0;
 	}



More information about the Sumover-dev mailing list