summaryrefslogtreecommitdiffstats
path: root/ipecamera/ipecamera.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-04-12 20:57:41 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-04-12 20:57:41 +0200
commit445d5db0183cf5dc98a33160857f22f012cacea6 (patch)
tree24a86dc05195546cf888c104e604da9eb77b3309 /ipecamera/ipecamera.h
parent39b33ce4be920b19a6b0f694febf8609ae64512b (diff)
downloadpcitool-445d5db0183cf5dc98a33160857f22f012cacea6.tar.gz
pcitool-445d5db0183cf5dc98a33160857f22f012cacea6.tar.bz2
pcitool-445d5db0183cf5dc98a33160857f22f012cacea6.tar.xz
pcitool-445d5db0183cf5dc98a33160857f22f012cacea6.zip
Prototype of IPECamera image protocol
Diffstat (limited to 'ipecamera/ipecamera.h')
-rw-r--r--ipecamera/ipecamera.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/ipecamera/ipecamera.h b/ipecamera/ipecamera.h
index 8b27516..d54dda2 100644
--- a/ipecamera/ipecamera.h
+++ b/ipecamera/ipecamera.h
@@ -1,6 +1,23 @@
#ifndef _IPECAMERA_H
#define _IPECAMERA_H
+typedef struct {
+ int bpp; /*<< Bits per pixel (8, 16, or 32) as returned by IPECAMERA_IMAGE_DATA */
+ int real_bpp; /*<< Bits per pixel as returned by camera and IPECAMERA_PACKED_IMAGE */
+ int width, height;
+} ipecamera_image_dimensions_t;
+typedef enum {
+ IPECAMERA_IMAGE_DATA = 0,
+ IPECAMERA_DIMENSIONS = 0x8000,
+ IPECAMERA_IMAGE_REGION = 0x8010,
+ IPECAMERA_PACKED_IMAGE = 0x8020,
+ IPECAMERA_PACKED_LINE = 0x8021,
+ IPECAMERA_PACKED_PAYLOAD = 0x8022,
+ IPECAMERA_CHANGE_MASK = 0x8030
+} ipecamera_data_type_t;
+
+typedef uint16_t ipecamera_change_mask_t;
+typedef uint16_t ipecamera_pixel_t;
#endif /* _IPECAMERA_H */