diff options
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/linux/video_decoder.h | 44 | ||||
-rw-r--r-- | linux/include/media/ir-common.h | 3 |
2 files changed, 45 insertions, 2 deletions
diff --git a/linux/include/linux/video_decoder.h b/linux/include/linux/video_decoder.h new file mode 100644 index 000000000..0e9e48b83 --- /dev/null +++ b/linux/include/linux/video_decoder.h @@ -0,0 +1,44 @@ +#ifndef _LINUX_VIDEO_DECODER_H +#define _LINUX_VIDEO_DECODER_H + +struct video_decoder_capability { /* this name is too long */ + __u32 flags; +#define VIDEO_DECODER_PAL 1 /* can decode PAL signal */ +#define VIDEO_DECODER_NTSC 2 /* can decode NTSC */ +#define VIDEO_DECODER_SECAM 4 /* can decode SECAM */ +#define VIDEO_DECODER_AUTO 8 /* can autosense norm */ +#define VIDEO_DECODER_CCIR 16 /* CCIR-601 pixel rate (720 pixels per line) instead of square pixel rate */ + int inputs; /* number of inputs */ + int outputs; /* number of outputs */ +}; + +/* +DECODER_GET_STATUS returns the following flags. The only one you need is +DECODER_STATUS_GOOD, the others are just nice things to know. +*/ +#define DECODER_STATUS_GOOD 1 /* receiving acceptable input */ +#define DECODER_STATUS_COLOR 2 /* receiving color information */ +#define DECODER_STATUS_PAL 4 /* auto detected */ +#define DECODER_STATUS_NTSC 8 /* auto detected */ +#define DECODER_STATUS_SECAM 16 /* auto detected */ + +struct video_decoder_init { + unsigned char len; + const unsigned char *data; +}; + +#define DECODER_GET_CAPABILITIES _IOR('d', 1, struct video_decoder_capability) +#define DECODER_GET_STATUS _IOR('d', 2, int) +#define DECODER_SET_NORM _IOW('d', 3, int) +#define DECODER_SET_INPUT _IOW('d', 4, int) /* 0 <= input < #inputs */ +#define DECODER_SET_OUTPUT _IOW('d', 5, int) /* 0 <= output < #outputs */ +#define DECODER_ENABLE_OUTPUT _IOW('d', 6, int) /* boolean output enable control */ +#define DECODER_SET_PICTURE _IOW('d', 7, struct video_picture) +#define DECODER_SET_GPIO _IOW('d', 8, int) /* switch general purpose pin */ +#define DECODER_INIT _IOW('d', 9, struct video_decoder_init) /* init internal registers at once */ +#define DECODER_SET_VBI_BYPASS _IOW('d', 10, int) /* switch vbi bypass */ + +#define DECODER_DUMP _IO('d', 192) /* debug hook */ + + +#endif diff --git a/linux/include/media/ir-common.h b/linux/include/media/ir-common.h index 296ac10c3..d5de5d46e 100644 --- a/linux/include/media/ir-common.h +++ b/linux/include/media/ir-common.h @@ -1,5 +1,5 @@ /* - * $Id: ir-common.h,v 1.11 2005/08/09 19:05:26 mchehab Exp $ + * $Id: ir-common.h,v 1.12 2005/10/09 18:07:06 mchehab Exp $ * * some common structs and functions to handle infrared remotes via * input layer ... @@ -21,7 +21,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "compat.h" #include <linux/input.h> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) |