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-ring-buffer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/uca-ring-buffer.h') 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); -- cgit v1.2.3