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

In the get_bayern_pattern function: the video mode must be FORMAT7, not the current video mode.

parent 5f1bf6e9
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ int main(int argc, char *argv[]) ...@@ -55,7 +55,7 @@ int main(int argc, char *argv[])
{ {
text.str(""); text.str("");
gettimeofday(&start_time,NULL); gettimeofday(&start_time,NULL);
event_server->wait_all(event_list,0); event_server->wait_all(event_list,1000);
camera1->get_image(&image); camera1->get_image(&image);
filename="image_"; filename="image_";
text << i; text << i;
......
...@@ -1724,7 +1724,7 @@ void CFirewireCamera::get_bayer_pattern(dc1394color_filter_t *pattern) ...@@ -1724,7 +1724,7 @@ void CFirewireCamera::get_bayer_pattern(dc1394color_filter_t *pattern)
{ {
dc1394error_t error; dc1394error_t error;
error=dc1394_format7_get_color_filter(this->camera_handle,this->mode,pattern); error=dc1394_format7_get_color_filter(this->camera_handle,DC1394_VIDEO_MODE_FORMAT7_0,pattern);
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