00001 /******************************************************* 00002 * 00003 * Author: Hirokazu Kato 00004 * 00005 * kato@sys.im.hiroshima-cu.ac.jp 00006 * 00007 * Revision: 4.5 00008 * Date: 2002/01/01 00009 * 00010 * 2004/11/17 Grasset adding new parameters for better controls of 00011 * V4L driver 00012 * 2004/11/17 Grasset adding patch done by XXX for supporting YUV 4:2:0 00013 * (adding #define and videoBuffer encoding parameters) 00014 00015 *******************************************************/ 00016 #ifndef AR_VIDEO_LINUX_V4L_H 00017 #define AR_VIDEO_LINUX_V4L_H 00018 #ifdef __cplusplus 00019 extern "C" { 00020 #endif 00021 00022 #include <stdlib.h> 00023 #include <linux/types.h> 00024 #include <linux/videodev.h> 00025 00026 #include <AR/config.h> 00027 #include <AR/ar.h> 00028 00029 typedef struct { 00030 //device controls 00031 char dev[256]; 00032 int channel; 00033 int width; 00034 int height; 00035 int palette; 00036 //image controls 00037 double brightness; 00038 double contrast; 00039 double saturation; 00040 double hue; 00041 double whiteness; 00042 00043 //options controls 00044 int mode; 00045 00046 int debug; 00047 00048 int fd; 00049 int video_cont_num; 00050 ARUint8 *map; 00051 ARUint8 *videoBuffer; 00052 struct video_mbuf vm; 00053 struct video_mmap vmm; 00054 } AR2VideoParamT; 00055 00056 #ifdef __cplusplus 00057 } 00058 #endif 00059 #endif