/alps/ipecamera

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to private.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-08-13 23:35:46 UTC
  • Revision ID: csa@suren.me-20150813233546-41w5ofer2wotrl49
Adjust buffer sizes to reduce memory consumption with CMOSIS20 camera

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
//#define IPECAMERA_BUG_INCOMPLETE_PACKETS      //**< Support incomplete packets, i.e. check for frame magic even if full frame size is not reached yet (slow) */
26
26
//#define IPECAMERA_ANNOUNCE_READY              //**< Announce new event only after the reconstruction is done */
27
27
//#define IPECAMERA_CLEAN_ON_START              //**< Read all the data from DMA before starting of recording */
28
 
#define IPECAMERA_ADJUST_BUFFER_SIZE            //**< Adjust default buffer size based on the hardware capabilities */
 
28
//#define IPECAMERA_ADJUST_BUFFER_SIZE          //**< Adjust default buffer size based on the hardware capabilities (number of frames stored in the FPGA memory) */
29
29
 
30
 
#define IPECAMERA_DEFAULT_BUFFER_SIZE 256       //**< should be power of 2 */
31
 
#define IPECAMERA_RESERVE_BUFFERS 2             //**< Return Frame is Lost error, if requested frame will be overwritten after specified number of frames
 
30
#define IPECAMERA_DEFAULT_BUFFER_SIZE 256       //**< number of buffers in a ring buffer, should be power of 2 */
 
31
#define IPECAMERA_DEFAULT_CMOSIS20_BUFFER_SIZE 64 //*< overrides number of buffers for CMOSIS20 sensor to reduce memory consumption */
 
32
#define IPECAMERA_RESERVE_BUFFERS 4             //**< Return Frame is Lost error, if requested frame will be overwritten after specified number of frames
32
33
 
33
34
#define IPECAMERA_DMA_TIMEOUT 50000             //**< Default DMA timeout */
34
35
#define IPECAMERA_TRIGGER_TIMEOUT 200000        //**< In trigger call allow specified timeout for camera to get out of busy state. Set 0 to fail immideatly */