| 1 | #ifndef _LINUX_VIDEO_DECODER_H
|
| 2 | #define _LINUX_VIDEO_DECODER_H
|
| 3 |
|
| 4 | #define HAVE_VIDEO_DECODER 1
|
| 5 |
|
| 6 | struct video_decoder_capability {
|
| 7 | __u32 flags;
|
| 8 | #define VIDEO_DECODER_PAL 1
|
| 9 | #define VIDEO_DECODER_NTSC 2
|
| 10 | #define VIDEO_DECODER_SECAM 4
|
| 11 | #define VIDEO_DECODER_AUTO 8
|
| 12 | #define VIDEO_DECODER_CCIR 16
|
| 13 | int inputs;
|
| 14 | int outputs;
|
| 15 | };
|
| 16 |
|
| 17 | |
| 18 | DECODER_GET_STATUS returns the following flags. The only one you need is
|
| 19 | DECODER_STATUS_GOOD, the others are just nice things to know.
|
| 20 |
|
| 21 | #define DECODER_STATUS_GOOD 1
|
| 22 | #define DECODER_STATUS_COLOR 2
|
| 23 | #define DECODER_STATUS_PAL 4
|
| 24 | #define DECODER_STATUS_NTSC 8
|
| 25 | #define DECODER_STATUS_SECAM 16
|
| 26 |
|
| 27 | struct video_decoder_init {
|
| 28 | unsigned char len;
|
| 29 | const unsigned char *data;
|
| 30 | };
|
| 31 |
|
| 32 | #define DECODER_GET_CAPABILITIES _IOR('d', 1, struct video_decoder_capability)
|
| 33 | #define DECODER_GET_STATUS _IOR('d', 2, int)
|
| 34 | #define DECODER_SET_NORM _IOW('d', 3, int)
|
| 35 | #define DECODER_SET_INPUT _IOW('d', 4, int)
|
| 36 | #define DECODER_SET_OUTPUT _IOW('d', 5, int)
|
| 37 | #define DECODER_ENABLE_OUTPUT _IOW('d', 6, int)
|
| 38 | #define DECODER_SET_PICTURE _IOW('d', 7, struct video_picture)
|
| 39 | #define DECODER_SET_GPIO _IOW('d', 8, int)
|
| 40 | #define DECODER_INIT _IOW('d', 9, struct video_decoder_init)
|
| 41 | #define DECODER_SET_VBI_BYPASS _IOW('d', 10, int)
|
| 42 |
|
| 43 | #define DECODER_DUMP _IO('d', 192)
|
| 44 |
|
| 45 |
|
| 46 | #endif
|