From d9164bdd4cdfaeac731b68227b9f460bc3297250 Mon Sep 17 00:00:00 2001 From: StevenPuttemans Date: Fri, 14 Nov 2014 14:09:43 +0100 Subject: [PATCH] added extra BUFFERSIZE doc and getter --- modules/highgui/doc/reading_and_writing_images_and_video.rst | 4 ++++ modules/highgui/src/cap_dc1394_v2.cpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/modules/highgui/doc/reading_and_writing_images_and_video.rst b/modules/highgui/doc/reading_and_writing_images_and_video.rst index edbe939..1d6c916 100644 --- a/modules/highgui/doc/reading_and_writing_images_and_video.rst +++ b/modules/highgui/doc/reading_and_writing_images_and_video.rst @@ -410,6 +410,8 @@ Returns the specified ``VideoCapture`` property * **CV_CAP_PROP_RECTIFICATION** Rectification flag for stereo cameras (note: only supported by DC1394 v 2.x backend currently) + * **CV_CAP_PROP_BUFFERSIZE** Amount of frames stored in internal buffer memory (note: only supported by DC1394 v 2.x backend currently) + **Note**: When querying a property that is not supported by the backend used by the ``VideoCapture`` class, value 0 is returned. @@ -465,6 +467,8 @@ Sets a property in the ``VideoCapture``. * **CV_CAP_PROP_RECTIFICATION** Rectification flag for stereo cameras (note: only supported by DC1394 v 2.x backend currently) + * **CV_CAP_PROP_BUFFERSIZE** Amount of frames stored in internal buffer memory (note: only supported by DC1394 v 2.x backend currently) + :param value: Value of the property. diff --git a/modules/highgui/src/cap_dc1394_v2.cpp b/modules/highgui/src/cap_dc1394_v2.cpp index 86a77c1..c8781ca 100644 --- a/modules/highgui/src/cap_dc1394_v2.cpp +++ b/modules/highgui/src/cap_dc1394_v2.cpp @@ -686,6 +686,8 @@ double CvCaptureCAM_DC1394_v2_CPP::getProperty(int propId) break; case CV_CAP_PROP_ISO_SPEED: return (double) isoSpeed; + case CV_CAP_PROP_BUFFERSIZE: + return (double) nDMABufs; default: if (propId