struct video_listener * cv_add_to_device(struct video_config_t *device, cv_function func, uint16_t fps, uint8_t id)
volatile int thread_priority
void cv_run_device(struct video_config_t *device, struct image_t *img)
volatile bool thread_running
struct video_listener * next
volatile bool img_processed
pthread_cond_t img_available
bool add_video_device(struct video_config_t *device)
Keep track of video devices added by modules.
struct image_t *(* cv_function)(struct image_t *img, uint8_t camera_id)
pthread_mutex_t img_mutex
struct video_listener * cv_add_to_device_async(struct video_config_t *device, cv_function func, int nice_level, uint16_t fps, uint8_t id)
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.