mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-11 17:28:55 +00:00
18 lines
407 B
C
18 lines
407 B
C
|
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);
|
||
|
int camera_get_stride(camera_t *cam);
|
||
|
int camera_get_colorspace(camera_t *cam);
|
||
|
bool camera_start(camera_t *cam);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|