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_nps.c File Reference
#include "video_thread.h"
#include "cv.h"
+ Include dependency graph for video_thread_nps.c:

Go to the source code of this file.

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

Function Documentation

void video_thread_init ( void  )
void video_thread_periodic ( void  )

A dummy for now.

Definition at line 41 of file video_thread_nps.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 75 of file video_thread_nps.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 76 of file video_thread_nps.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 77 of file video_thread_nps.c.

References video_thread_t::take_shot.

Variable Documentation

struct video_thread_t video_thread
Initial value:
= {
.is_running = FALSE,
.fps = 30,
.take_shot = FALSE,
.shot_number = 0
}
#define FALSE
Definition: std.h:5

Dummy C implementation for simulation The V4L2 could also work in simulation, but must be adapted a bit.

Definition at line 32 of file video_thread_nps.c.