Skip to content

Commit 4b51b1e

Browse files
author
Roman Donchenko
committed
Merge pull request opencv#1059 from dominikrose:dc1394_2-1394b
2 parents 1707b17 + d39aeec commit 4b51b1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/highgui/src/cap_dc1394_v2.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,11 @@ bool CvCaptureCAM_DC1394_v2_CPP::startCapture()
304304
return false;
305305
if (isoSpeed > 0)
306306
{
307+
// if capable set operation mode to 1394b for iso speeds above 400
308+
if (isoSpeed > 400 && dcCam->bmode_capable == DC1394_TRUE)
309+
{
310+
dc1394_video_set_operation_mode(dcCam, DC1394_OPERATION_MODE_1394B);
311+
}
307312
code = dc1394_video_set_iso_speed(dcCam,
308313
isoSpeed <= 100 ? DC1394_ISO_SPEED_100 :
309314
isoSpeed <= 200 ? DC1394_ISO_SPEED_200 :

0 commit comments

Comments
 (0)