summaryrefslogtreecommitdiffstats
path: root/private.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2017-08-16 22:41:23 +0200
committerSuren A. Chilingaryan <csa@suren.me>2017-08-16 22:41:23 +0200
commit70350338f84596c1c5f42697774250773be52da1 (patch)
tree2c6bb54716b2415178f63555c46d1f53dfa6cdf5 /private.h
parent4d6036156fc5d00b8d627195e4e9092445f1412c (diff)
downloadipecamera-70350338f84596c1c5f42697774250773be52da1.tar.gz
ipecamera-70350338f84596c1c5f42697774250773be52da1.tar.bz2
ipecamera-70350338f84596c1c5f42697774250773be52da1.tar.xz
ipecamera-70350338f84596c1c5f42697774250773be52da1.zip
Support HighFlex-based ipecamera
Diffstat (limited to 'private.h')
-rw-r--r--private.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/private.h b/private.h
index 2043d7a..12867c3 100644
--- a/private.h
+++ b/private.h
@@ -63,13 +63,18 @@
#define CMOSIS_WIDTH (CMOSIS_MAX_CHANNELS * CMOSIS_PIXELS_PER_CHANNEL)
//#define IPECAMERA_MAX_LINES 1088
#define CMOSIS_MAX_LINES 2048
+
+/*
#define CMOSIS20_MAX_CHANNELS 8
#define CMOSIS20_PIXELS_PER_CHANNEL 640
#define CMOSIS20_WIDTH (CMOSIS20_MAX_CHANNELS * CMOSIS20_PIXELS_PER_CHANNEL)
+*/
+#define CMOSIS20_PIXELS_PER_CHANNEL 320
+#define CMOSIS20_WIDTH (CMOSIS_MAX_CHANNELS * CMOSIS_PIXELS_PER_CHANNEL)
#define CMOSIS20_MAX_LINES 3840
-#define IPECAMERA_FRAME_REQUEST 0x80000209 // 0x1E9
-#define IPECAMERA_IDLE 0x80000201 // 0x1E1
+#define IPECAMERA_FRAME_REQUEST 0x209 // 0x80000209 // 0x1E9
+#define IPECAMERA_IDLE 0x201 // 0x80000201 // 0x1E1
#define IPECAMERA_START_INTERNAL_STIMULI 0x1F1
#define IPECAMERA_MODE_16_CHAN_IO 0
@@ -243,6 +248,7 @@ struct ipecamera_s {
char saved_header[CMOSIS_FRAME_HEADER_SIZE]; /**< If it happened that the frame header is split between 2 DMA packets, this variable holds the part containing in the first packet */
#endif /* IPECAMERA_BUG_MULTIFRAME_HEADERS */
+ size_t data_line_size;
ipecamera_image_dimensions_t dim;
pthread_t rthread;