48 #ifdef SMARTUAV_SIMULATOR
49 SMARTUAV_IMPORT(&img);
59 for (j = 0; j < img.
h; j++) {
60 for (i = 0; i < img.
w; i += 2) {
void video_thread_start(void)
Start with streaming.
struct video_thread_t video_thread
Dummy C implementation for simulation The V4L2 could also work in simulation, but must be adapted a b...
void image_free(struct image_t *img)
Free the image.
void image_create(struct image_t *img, uint16_t width, uint16_t height, enum image_type type)
Create a new image.
Start a Video thread and grab images.
void video_thread_take_shot(bool_t take)
Take a shot and save it This will only work when the streaming is enabled.
void video_thread_stop(void)
Stops the streaming This could take some time, because the thread is stopped asynchronous.
void video_thread_init(void)
Initialize the view video.
Computer vision framework for onboard processing.
void * buf
Image buffer (depending on the image_type)
volatile bool_t is_running
When the device is running.
void video_thread_periodic(void)
A dummy for now.
UYVY format (uint16 per pixel)
void cv_run(struct image_t *img)