mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
dc1394-2: support for operation mode 1394b added
This commit is contained in:
parent
2a646f7626
commit
e32700cf8f
@ -295,6 +295,11 @@ bool CvCaptureCAM_DC1394_v2_CPP::startCapture()
|
|||||||
return false;
|
return false;
|
||||||
if (isoSpeed > 0)
|
if (isoSpeed > 0)
|
||||||
{
|
{
|
||||||
|
// if capable set operation mode to 1394b for iso speeds above 400
|
||||||
|
if (isoSpeed > 400 && dcCam->bmode_capable == DC1394_TRUE)
|
||||||
|
{
|
||||||
|
dc1394_video_set_operation_mode(dcCam, DC1394_OPERATION_MODE_1394B);
|
||||||
|
}
|
||||||
code = dc1394_video_set_iso_speed(dcCam,
|
code = dc1394_video_set_iso_speed(dcCam,
|
||||||
isoSpeed <= 100 ? DC1394_ISO_SPEED_100 :
|
isoSpeed <= 100 ? DC1394_ISO_SPEED_100 :
|
||||||
isoSpeed <= 200 ? DC1394_ISO_SPEED_200 :
|
isoSpeed <= 200 ? DC1394_ISO_SPEED_200 :
|
||||||
|
Loading…
Reference in New Issue
Block a user