blob: 2f9309350590d523f6fdf98f115c003210553d79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
|