blob: f39b31f647975d7631f2512b8e40dd8d109328c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/*******************************************************
*
* Author: Hirokazu Kato
*
* kato@sys.im.hiroshima-cu.ac.jp
*
* Revision: 4.5
* Date: 2002/01/01
*
* 2004/11/17 Grasset adding new parameters for better controls of
* V4L driver
* 2004/11/17 Grasset adding patch done by XXX for supporting YUV 4:2:0
* (adding #define and videoBuffer encoding parameters)
*******************************************************/
#ifndef AR_VIDEO_LINUX_V4L_H
#define AR_VIDEO_LINUX_V4L_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
#include <linux/types.h>
#include <linux/videodev.h>
#include <AR/config.h>
#include <AR/ar.h>
typedef struct {
//device controls
char dev[256];
int channel;
int width;
int height;
int palette;
//image controls
double brightness;
double contrast;
double saturation;
double hue;
double whiteness;
//options controls
int mode;
int debug;
int fd;
int video_cont_num;
ARUint8 *map;
ARUint8 *videoBuffer;
struct video_mbuf vm;
struct video_mmap vmm;
} AR2VideoParamT;
#ifdef __cplusplus
}
#endif
#endif
|