Skip to content
Snippets Groups Projects
Commit 34c208a3 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Removed the pointer check in the shared version of the get images function.

parent 26437539
No related branches found
No related tags found
No related merge requests found
......@@ -279,12 +279,6 @@ void CBumblebee::get_stereo_image_shared(char *left,char *right)
dc1394video_frame_t *frame;
unsigned char *de_interleaved,*RGB_image;
if ( left != NULL || right != NULL)
{
DEBUG_INFO("Invalid image buffer.\n");
/* handle error */
throw CFirewireCameraException(_HERE_,"Invalid image buffer. Please provide an unallocated memory buffer.");
}
DEBUG_INFO("Capturing a new image ... ");
if ( this->one_shot_mode == DC1394_ON )
{
......
......@@ -40,8 +40,8 @@ int main(int argc, char *argv[])
event_server=CEventServer::instance();
bumblebee->get_config(&left_off,&top_off,&width,&height,&framerate,&depth,&coding);
framerate=20;
coding=MONO;
depth=DEPTH8;
// coding=MONO;
// depth=DEPTH8;
bumblebee->set_config(&left_off,&top_off,&width,&height,&framerate,depth,coding);
bumblebee->get_stereo_config(&width,&height,&framerate,&depth,&coding);
std::cout << "Image size: " << width << "x" << height << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment