Update of /cvsroot/playerstage/code/player/server/drivers/camera/yarp
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10946/server/drivers/camera/yarp
Modified Files:
YarpImage.cc
Log Message:
applied Toby's patch to replace fixed-size arrays
Index: YarpImage.cc
===================================================================
RCS file:
/cvsroot/playerstage/code/player/server/drivers/camera/yarp/YarpImage.cc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** YarpImage.cc 23 Aug 2007 19:58:43 -0000 1.3
--- YarpImage.cc 1 Nov 2007 22:16:18 -0000 1.4
***************
*** 268,271 ****
--- 268,272 ----
cam_data.format = PLAYER_CAMERA_FORMAT_MONO8;
cam_data.image_count = imgIn->getRawImageSize () / 3;
+ cam_data.image = new unsigned char [cam_data.image_count];
for (int i=0; i <= (imgIn->getRawImageSize ()/3) ; i++) {
***************
*** 285,288 ****
--- 286,290 ----
cam_data.format = PLAYER_CAMERA_FORMAT_RGB888;
cam_data.image_count = imgIn->getRawImageSize ();
+ cam_data.image = new unsigned char [cam_data.image_count];
for (int i=0; i <= (imgIn->getRawImageSize ()) ; i++) {
unsigned char value = *(unsigned char *)
***************
*** 295,299 ****
}
Publish (this->cam_id, PLAYER_MSGTYPE_DATA, PLAYER_CAMERA_DATA_STATE,
! &cam_data, sizeof (player_camera_data_t), NULL);
}
}
--- 297,303 ----
}
Publish (this->cam_id, PLAYER_MSGTYPE_DATA, PLAYER_CAMERA_DATA_STATE,
! &cam_data);
! delete [] cam_data.image;
!
}
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit