Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
video_thread.h File Reference

Start a Video thread and grab images. More...

#include "std.h"
+ Include dependency graph for video_thread.h:
+ This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Start a Video thread and grab images.

Works on Linux platforms

Definition in file video_thread.h.


Data Structure Documentation

struct video_thread_t

Definition at line 36 of file video_thread.h.

+ Collaboration diagram for video_thread_t:
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.

Function Documentation

void video_thread_init ( void  )
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.

+ Here is the call graph for this function:

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().

+ Here is the call graph for this 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().

+ Here is the call graph for this function:

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().

+ Here is the caller graph for this function:

Variable Documentation

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.