diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-05-26 15:14:24 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-05-26 15:14:24 +0200 |
commit | 56687fc6c32b06c6e726bf776e21d62753bf3442 (patch) | |
tree | d53715b66f250b2ec06d05cbc6a151f7bb504e2c | |
parent | 2e3ded723043e89d81df6a79112c1f68e53f3823 (diff) | |
download | ipecamera-56687fc6c32b06c6e726bf776e21d62753bf3442.tar.gz ipecamera-56687fc6c32b06c6e726bf776e21d62753bf3442.tar.bz2 ipecamera-56687fc6c32b06c6e726bf776e21d62753bf3442.tar.xz ipecamera-56687fc6c32b06c6e726bf776e21d62753bf3442.zip |
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.
-rw-r--r-- | private.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |