Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
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
"
32
#include "
modules/computer_vision/lib/v4l/v4l2.h
"
33
34
#define VIDEO_FILTER_DEBAYER 0x01
35
37
struct
video_config_t
{
38
int
w
;
39
int
h
;
40
char
*
dev_name
;
41
char
*
subdev_name
;
42
uint32_t
format
;
43
uint8_t
buf_cnt
;
44
uint8_t
filters
;
45
};
46
47
48
#endif
/* VIDEO_DEVICE_H */
video_config_t::format
uint32_t format
Video format.
Definition:
video_device.h:42
video_config_t::w
int w
Width.
Definition:
video_device.h:38
video_config_t::h
int h
Height.
Definition:
video_device.h:39
v4l2.h
Capture images from a V4L2 device (Video for Linux 2)
video_config_t::dev_name
char * dev_name
path to device
Definition:
video_device.h:40
video_config_t::filters
uint8_t filters
filters to use (bitfield with VIDEO_FILTER_x)
Definition:
video_device.h:44
video_config_t::buf_cnt
uint8_t buf_cnt
Amount of V4L2 video device buffers.
Definition:
video_device.h:43
uint32_t
unsigned long uint32_t
Definition:
types.h:18
video_config_t::subdev_name
char * subdev_name
path to sub device
Definition:
video_device.h:41
std.h
uint8_t
unsigned char uint8_t
Definition:
types.h:14
video_config_t
V4L2 device settings.
Definition:
video_device.h:37
sw
airborne
peripherals
video_device.h
Generated on Tue Jun 21 2016 14:01:24 for Paparazzi UAS by
1.8.8