From 34c208a3db4ac37691679f1dd475ff6625e8ca7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergi=20Hern=C3=A0ndez=20Juan?= <shernand@iri.upc.edu> Date: Tue, 10 Feb 2015 16:05:39 +0000 Subject: [PATCH] Removed the pointer check in the shared version of the get images function. --- src/bumblebee.cpp | 6 ------ src/examples/bumblebee.cpp | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/bumblebee.cpp b/src/bumblebee.cpp index 68e8b90..d72886a 100755 --- a/src/bumblebee.cpp +++ b/src/bumblebee.cpp @@ -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 ) { diff --git a/src/examples/bumblebee.cpp b/src/examples/bumblebee.cpp index d76dcbc..8961808 100755 --- a/src/examples/bumblebee.cpp +++ b/src/examples/bumblebee.cpp @@ -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; -- GitLab