|
|
@ -278,6 +278,7 @@ CvCaptureCAM_DC1394_v2_CPP::CvCaptureCAM_DC1394_v2_CPP() |
|
|
|
dcCam = 0; |
|
|
|
dcCam = 0; |
|
|
|
isoSpeed = 400; |
|
|
|
isoSpeed = 400; |
|
|
|
fps = 15; |
|
|
|
fps = 15; |
|
|
|
|
|
|
|
// Resetted the value here to 1 in order to ensure only a single frame is stored in the buffer!
|
|
|
|
nDMABufs = 8; |
|
|
|
nDMABufs = 8; |
|
|
|
started = false; |
|
|
|
started = false; |
|
|
|
cameraId = 0; |
|
|
|
cameraId = 0; |
|
|
@ -735,6 +736,11 @@ bool CvCaptureCAM_DC1394_v2_CPP::setProperty(int propId, double value) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
isoSpeed = cvRound(value); |
|
|
|
isoSpeed = cvRound(value); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case CV_CAP_PROP_BUFFERSIZE: |
|
|
|
|
|
|
|
if(started) |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
nDMABufs = value; |
|
|
|
|
|
|
|
break; |
|
|
|
//The code below is based on coriander, callbacks.c:795, refer to case RANGE_MENU_MAN :
|
|
|
|
//The code below is based on coriander, callbacks.c:795, refer to case RANGE_MENU_MAN :
|
|
|
|
default: |
|
|
|
default: |
|
|
|
if (propId<CV_CAP_PROP_MAX_DC1394 && dc1394properties[propId]!=-1 |
|
|
|
if (propId<CV_CAP_PROP_MAX_DC1394 && dc1394properties[propId]!=-1 |
|
|
|