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

Solved a bug in the camera driver. In some video modes, the returned pixel...

Solved a bug in the camera driver. In some video modes, the returned pixel depth was not right. The bit spacing was returned intead. This caused some errors when computing the packet size.
parent 138b0d38
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include <sstream> #include <sstream>
#include <iostream> #include <iostream>
const int num_frames=10; const int num_frames=1000;
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
...@@ -54,7 +54,7 @@ int main(int argc, char *argv[]) ...@@ -54,7 +54,7 @@ int main(int argc, char *argv[])
text << i; text << i;
filename+=text.str(); filename+=text.str();
filename+=".ppm"; filename+=".ppm";
//camera1->save_stereo_image(filename,left,right); // camera1->save_stereo_image(filename,left,right);
if(left!=NULL) if(left!=NULL)
{ {
delete[] left; delete[] left;
......
...@@ -686,7 +686,7 @@ void CFirewireCamera::get_color_coding(depths_t *depth, codings_t *coding) ...@@ -686,7 +686,7 @@ void CFirewireCamera::get_color_coding(depths_t *depth, codings_t *coding)
} }
DEBUG_INFO("ok\n"); DEBUG_INFO("ok\n");
DEBUG_INFO("Getting the color depth per pixel ... "); DEBUG_INFO("Getting the color depth per pixel ... ");
error = dc1394_get_color_coding_bit_size(cc,(uint32_t *)depth); error = dc1394_get_color_coding_data_depth(cc,(uint32_t *)depth);
if ( error != DC1394_SUCCESS ) if ( error != DC1394_SUCCESS )
{ {
DEBUG_INFO("failed\n"); DEBUG_INFO("failed\n");
......
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