Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
Computer vision framework for onboard processing. More...
Go to the source code of this file.
Data Structures | |
struct | cv_async |
struct | video_listener |
Typedefs | |
typedef struct image_t *(* | cv_function )(struct image_t *img) |
Functions | |
bool | add_video_device (struct video_config_t *device) |
Keep track of video devices added by modules. More... | |
struct video_listener * | cv_add_to_device (struct video_config_t *device, cv_function func, uint16_t fps) |
struct video_listener * | cv_add_to_device_async (struct video_config_t *device, cv_function func, int nice_level, uint16_t fps) |
void | cv_run_device (struct video_config_t *device, struct image_t *img) |
Computer vision framework for onboard processing.
Definition in file cv.h.
struct cv_async |
struct video_listener |
Data Fields | ||
---|---|---|
volatile bool | active | |
struct cv_async * | async | |
cv_function | func | |
uint16_t | maximum_fps | |
struct video_listener * | next | |
struct timeval | ts |
bool add_video_device | ( | struct video_config_t * | device | ) |
Keep track of video devices added by modules.
Definition at line 189 of file video_thread.c.
References cameras, video_config_t::dev_name, initialize_camera(), and VIDEO_THREAD_MAX_CAMERAS.
Referenced by cv_add_to_device().
struct video_listener* cv_add_to_device | ( | struct video_config_t * | device, |
cv_function | func, | ||
uint16_t | fps | ||
) |
Definition at line 46 of file cv.c.
References video_listener::active, add_video_device(), video_listener::async, video_config_t::cv_listener, video_listener::func, listener, video_listener::maximum_fps, and video_listener::next.
Referenced by colorfilter_init(), cv_add_to_device_async(), cv_blob_locator_init(), detect_contour_init(), detect_gate_init(), detect_window_init(), opencvdemo_init(), opticflow_module_init(), pano_unwrap_init(), qrcode_init(), undistort_image_init(), video_capture_init(), and video_usb_logger_start().
struct video_listener* cv_add_to_device_async | ( | struct video_config_t * | device, |
cv_function | func, | ||
int | nice_level, | ||
uint16_t | fps | ||
) |
Definition at line 82 of file cv.c.
References video_listener::async, image_t::buf, image_t::buf_size, cv_add_to_device(), cv_async_thread(), cv_async::img_available, cv_async::img_copy, cv_async::img_mutex, listener, cv_async::thread_id, and cv_async::thread_priority.
Referenced by bebop_ae_awb_init(), and viewvideo_init().
void cv_run_device | ( | struct video_config_t * | device, |
struct image_t * | img | ||
) |
Definition at line 177 of file cv.c.
References video_listener::active, video_listener::async, cv_async_function(), video_config_t::cv_listener, video_listener::func, listener, video_listener::maximum_fps, video_listener::next, timeval_diff(), image_t::ts, and video_listener::ts.
Referenced by video_thread_function().