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_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 
28 #ifndef VIDEO_DEVICE_H
29 #define VIDEO_DEVICE_H
30 
31 #include "std.h"
33 
34 #define VIDEO_FILTER_DEBAYER 0x01
35 
38  int w;
39  int h;
40  char* dev_name;
41  char* subdev_name;
45 };
46 
47 
48 #endif /* VIDEO_DEVICE_H */
uint32_t format
Video format.
Definition: video_device.h:42
int w
Width.
Definition: video_device.h:38
int h
Height.
Definition: video_device.h:39
Capture images from a V4L2 device (Video for Linux 2)
char * dev_name
path to device
Definition: video_device.h:40
uint8_t filters
filters to use (bitfield with VIDEO_FILTER_x)
Definition: video_device.h:44
uint8_t buf_cnt
Amount of V4L2 video device buffers.
Definition: video_device.h:43
unsigned long uint32_t
Definition: types.h:18
char * subdev_name
path to sub device
Definition: video_device.h:41
unsigned char uint8_t
Definition: types.h:14
V4L2 device settings.
Definition: video_device.h:37