Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Start a Video thread and grab images. More...
#include "std.h"
Go to the source code of this file.
Data Structures | |
struct | video_thread_t |
Functions | |
void | video_thread_init (void) |
Initialize the view video. More... | |
void | video_thread_periodic (void) |
A dummy for now. More... | |
void | video_thread_start (void) |
Start with streaming. More... | |
void | video_thread_stop (void) |
Stops the streaming This could take some time, because the thread is stopped asynchronous. More... | |
void | video_thread_take_shot (bool_t take) |
Take a shot and save it This will only work when the streaming is enabled. More... | |
Variables | |
struct video_thread_t | video_thread |
Dummy C implementation for simulation The V4L2 could also work in simulation, but must be adapted a bit. More... | |
struct video_thread_t |
Definition at line 36 of file video_thread.h.
Data Fields | ||
---|---|---|
struct v4l2_device * | dev | The V4L2 device that is used for the video stream. |
uint8_t | fps | The amount of frames per second. |
volatile bool_t | is_running | When the device is running. |
uint16_t | shot_number | The last shot number. |
volatile bool_t | take_shot | Wether to take an image. |
void video_thread_init | ( | void | ) |
Initialize the view video.
Definition at line 234 of file video_thread.c.
References video_config_t::buf_cnt, video_thread_t::dev, video_config_t::dev_name, video_config_t::format, video_config_t::h, video_config_t::subdev_name, v4l2_init(), v4l2_init_subdev(), VIDEO_THREAD_CAMERA, VIDEO_THREAD_SHOT_PATH, and video_config_t::w.
void video_thread_periodic | ( | void | ) |
A dummy for now.
Definition at line 98 of file video_thread.c.
References image_t::buf, cv_run(), image_t::h, image_create(), image_free(), IMAGE_YUV422, video_thread_t::is_running, p, and image_t::w.
void video_thread_start | ( | void | ) |
Start with streaming.
Definition at line 266 of file video_thread.c.
References video_thread_t::is_running, VIDEO_THREAD_CAMERA, and video_thread_function().
void video_thread_stop | ( | void | ) |
Stops the streaming This could take some time, because the thread is stopped asynchronous.
Definition at line 285 of file video_thread.c.
References video_thread_t::dev, FALSE, video_thread_t::is_running, v4l2_device::name, and v4l2_stop_capture().
void video_thread_take_shot | ( | bool_t | take | ) |
Take a shot and save it This will only work when the streaming is enabled.
Definition at line 308 of file video_thread.c.
References video_thread_t::take_shot.
Referenced by cv_blob_locator_periodic(), and dc_send_command().
struct video_thread_t video_thread |
Dummy C implementation for simulation The V4L2 could also work in simulation, but must be adapted a bit.
Definition at line 101 of file video_thread.c.