From 63ef59492469c08e8d3c7d8a186e4a765eae87b0 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Fri, 27 Jul 2012 14:19:48 +0200 Subject: Check for free space in camera DDR buffer before triggering event --- ipecamera/private.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ipecamera/private.h') diff --git a/ipecamera/private.h b/ipecamera/private.h index 5dc10d1..a200b75 100644 --- a/ipecamera/private.h +++ b/ipecamera/private.h @@ -86,6 +86,9 @@ struct ipecamera_s { pcilib_register_t adc_resolution_reg; pcilib_register_t output_mode_reg; + + pcilib_register_t max_frames_reg; + pcilib_register_t num_frames_reg; int started; /**< Camera is in grabbing mode (start function is called) */ int streaming; /**< Camera is in streaming mode (we are within stream call) */ @@ -112,7 +115,8 @@ struct ipecamera_s { size_t image_size; /**< Size of a single image in bytes */ - int cmosis_outputs; + size_t max_frames; /**< Maximal number of frames what may be buffered in camera DDR memory */ + int cmosis_outputs; /**< Number of active cmosis outputs: 4 or 16 */ int width, height; -- cgit v1.2.3