From 961e60a89bc60e760707892539ccd7c6d283ef01 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 13 Feb 2014 14:54:34 +0100 Subject: Fix #28: Add buffered recording to base class This change adds new properties ::buffered and ::num-buffers to the base class. If ::buffered is TRUE, uca_camera_start_recording will spawn a new thread which will call the camera-specific grab. Any call to uca_camera_grab will return the next item from the ring buffer. --- src/uca-camera.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/uca-camera.h') diff --git a/src/uca-camera.h b/src/uca-camera.h index c11644d..3191577 100644 --- a/src/uca-camera.h +++ b/src/uca-camera.h @@ -93,6 +93,9 @@ enum { PROP_TRANSFER_ASYNCHRONOUSLY, PROP_IS_RECORDING, PROP_IS_READOUT, + + PROP_BUFFERED, + PROP_NUM_BUFFERS, N_BASE_PROPERTIES }; -- cgit v1.2.3