Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
video_device.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015
3  *
4  * This file is part of Paparazzi.
5  *
6  * Paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * Paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, see
18  * <http://www.gnu.org/licenses/>.
19  *
20  */
21 
26 #ifndef VIDEO_DEVICE_H
27 #define VIDEO_DEVICE_H
28 
29 #include <stdbool.h>
30 #include <inttypes.h>
32 
33 /* Different video filters */
34 #define VIDEO_FILTER_DEBAYER (0x1 << 0)
35 #define VIDEO_FILTER_ISP (0x1 << 1)
36 
37 // Main video_thread structure
39  volatile bool is_running;
40  struct v4l2_device *dev;
41 };
42 
47  struct crop_t crop;
48  char *dev_name;
49  char *subdev_name;
56  int fps;
57 };
58 extern struct video_config_t dummy_camera;
59 
60 
61 #endif
uint32_t format
Video format.
Definition: video_device.h:50
Definition: image.h:79
struct crop_t crop
Cropped area definition.
Definition: video_device.h:47
struct img_size_t output_size
Output image size.
Definition: video_device.h:45
char * dev_name
path to device
Definition: video_device.h:48
uint8_t filters
filters to use (bitfield with VIDEO_FILTER_x)
Definition: video_device.h:53
struct video_config_t dummy_camera
uint8_t buf_cnt
Amount of V4L2 video device buffers.
Definition: video_device.h:52
struct video_listener * cv_listener
The first computer vision listener in the linked list for this video device.
Definition: video_device.h:55
Image helper functions like resizing, color filter, converters...
struct img_size_t sensor_size
Original sensor size.
Definition: video_device.h:46
unsigned long uint32_t
Definition: types.h:18
char * subdev_name
path to sub device
Definition: video_device.h:49
int fps
Target FPS.
Definition: video_device.h:56
unsigned char uint8_t
Definition: types.h:14
volatile bool is_running
When the device is running.
Definition: video_device.h:39
struct v4l2_device * dev
The V4L2 device that is used for the video stream.
Definition: video_device.h:40
uint32_t subdev_format
Subdevice video format.
Definition: video_device.h:51
V4L2 device settings.
Definition: video_device.h:44
struct video_thread_t thread
Information about the thread this camera is running on.
Definition: video_device.h:54