From 28619821bc90ed4c15844b2e6b6a5a2971ef5f2e Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 21 Feb 2011 15:06:42 +0100 Subject: Initial commit --- src/uca.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/uca.h (limited to 'src/uca.h') diff --git a/src/uca.h b/src/uca.h new file mode 100644 index 0000000..2f93093 --- /dev/null +++ b/src/uca.h @@ -0,0 +1,32 @@ +#ifndef __UNIFIED_CAMERA_ACCESS_H +#define __UNIFIED_CAMERA_ACCESS_H + +struct uca_t; + +/* + * \brief Camera probing and initialization + * \return 0 if camera is not found or could not be initialized + */ +typedef int (*uca_cam_init) (struct uca_t *uca); + +typedef void (*uca_cam_destroy) (struct uca_t *uca); + +#define UCA_BIG_ENDIAN 1 +#define UCA_LITTLE_ENDIAN 2 + +struct uca_t { + /* These must be written by uca_cam_init() */ + unsigned int image_width; + unsigned int image_height; + unsigned int image_bitdepth; + unsigned int image_flags; + + /* Function pointers to camera-specific methods */ + uca_cam_destroy cam_destroy; +}; + +struct uca_t *uca_init(); +void uca_destroy(struct uca_t *uca); + + +#endif -- cgit v1.2.3