diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2014-02-13 14:54:34 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2014-02-14 16:17:16 +0100 |
commit | 961e60a89bc60e760707892539ccd7c6d283ef01 (patch) | |
tree | 6e002e95258e4e736c58f5187ff93cf83579541b /src/uca-ring-buffer.h | |
parent | f15d21389a81f8df36b00113aed5c81d27143861 (diff) | |
download | uca-961e60a89bc60e760707892539ccd7c6d283ef01.tar.gz uca-961e60a89bc60e760707892539ccd7c6d283ef01.tar.bz2 uca-961e60a89bc60e760707892539ccd7c6d283ef01.tar.xz uca-961e60a89bc60e760707892539ccd7c6d283ef01.zip |
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.
Diffstat (limited to 'src/uca-ring-buffer.h')
-rw-r--r-- | src/uca-ring-buffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/uca-ring-buffer.h b/src/uca-ring-buffer.h index c90f2d2..9fcf3b6 100644 --- a/src/uca-ring-buffer.h +++ b/src/uca-ring-buffer.h @@ -37,6 +37,7 @@ gboolean uca_ring_buffer_available (UcaRingBuffer *buffer); void uca_ring_buffer_proceed (UcaRingBuffer *buffer); gpointer uca_ring_buffer_get_read_pointer (UcaRingBuffer *buffer); gpointer uca_ring_buffer_get_write_pointer (UcaRingBuffer *buffer); +void uca_ring_buffer_write_advance (UcaRingBuffer *buffer); gpointer uca_ring_buffer_get_pointer (UcaRingBuffer *buffer, guint index); gpointer uca_ring_buffer_peek_pointer (UcaRingBuffer *buffer); |