Update of /cvsroot/robotflow/RobotFlow/Devices/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20554/src
Modified Files:
V4L2Capture.cc
Log Message:
testing images grab
Index: V4L2Capture.cc
===================================================================
RCS file: /cvsroot/robotflow/RobotFlow/Devices/src/V4L2Capture.cc,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** V4L2Capture.cc 19 Oct 2005 20:20:19 -0000 1.16
--- V4L2Capture.cc 19 Oct 2005 20:41:35 -0000 1.17
***************
*** 186,192 ****
! m_captureDevice.mainloop();
--- 186,198 ----
! Image* image = m_captureDevice.mainloop();
+ if (image) {
+ out[count] = ObjectRef(image);
+ }
+ else {
+ throw new GeneralException("V4L2Capture : unable to get image",__FILE__,__LINE__);
+ }
***************
*** 212,216 ****
out[count] = ObjectRef(image);
*/
! out[count] = nilObject;
}
--- 218,222 ----
out[count] = ObjectRef(image);
*/
! //out[count] = nilObject;
}
|