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