2022-10-25 09:23:44 +00:00
|
|
|
#ifndef __CAMERA_H__
|
|
|
|
#define __CAMERA_H__
|
|
|
|
|
2022-08-15 15:37:49 +00:00
|
|
|
typedef void camera_t;
|
|
|
|
|
|
|
|
typedef void (*camera_frame_cb)(int buffer_fd, uint64_t size, uint64_t timestamp);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
const char *camera_get_error();
|
|
|
|
bool camera_create(parameters_t *params, camera_frame_cb frame_cb, camera_t **cam);
|
2022-10-25 09:23:44 +00:00
|
|
|
int camera_get_mode_stride(camera_t *cam);
|
|
|
|
int camera_get_mode_colorspace(camera_t *cam);
|
2022-08-15 15:37:49 +00:00
|
|
|
bool camera_start(camera_t *cam);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2022-10-25 09:23:44 +00:00
|
|
|
|
|
|
|
#endif
|