From 56687fc6c32b06c6e726bf776e21d62753bf3442 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 26 May 2015 15:14:24 +0200 Subject: Increase frame buffer to prevent frame loss with new ipecamera with fast DMA The hardware is able to store about 200 frames. If hardware buffer is full, the data will be sent with the speed of DMA engine. This can be faster when expected rate of 300 frames per second. It may be not possible to decode frames at such speed and unless all frames are fit into the buffer, the frame lost will occur. --- private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'private.h') diff --git a/private.h b/private.h index 413d558..bfbd6b1 100644 --- a/private.h +++ b/private.h @@ -21,7 +21,7 @@ //#define IPECAMERA_CLEAN_ON_START //**< Read all the data from DMA before starting of recording */ #define IPECAMERA_ADJUST_BUFFER_SIZE //**< Adjust default buffer size based on the hardware capabilities */ -#define IPECAMERA_DEFAULT_BUFFER_SIZE 64 //**< should be power of 2 */ +#define IPECAMERA_DEFAULT_BUFFER_SIZE 256 //**< should be power of 2 */ #define IPECAMERA_RESERVE_BUFFERS 2 //**< Return Frame is Lost error, if requested frame will be overwritten after specified number of frames #define IPECAMERA_DMA_TIMEOUT 50000 //**< Default DMA timeout */ -- cgit v1.2.3