diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-21 15:06:42 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-21 15:06:42 +0100 |
commit | 28619821bc90ed4c15844b2e6b6a5a2971ef5f2e (patch) | |
tree | c313b5b77087c18027d152c4c69c49b8ea0254d9 /src/uca.h | |
download | uca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.tar.gz uca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.tar.bz2 uca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.tar.xz uca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.zip |
Initial commit
Diffstat (limited to 'src/uca.h')
-rw-r--r-- | src/uca.h | 32 |
1 files changed, 32 insertions, 0 deletions
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 |