#ifndef __LINUX_VIDEODEV_H
#define __LINUX_VIDEODEV_H
#include "Xmd.h"
#define VID_TYPE_CAPTURE 1
#define VID_TYPE_TUNER 2
#define VID_TYPE_TELETEXT 4
#define VID_TYPE_OVERLAY 8
#define VID_TYPE_CHROMAKEY 16
#define VID_TYPE_CLIPPING 32
#define VID_TYPE_FRAMERAM 64
#define VID_TYPE_SCALES 128
#define VID_TYPE_MONOCHROME 256
#define VID_TYPE_SUBCAPTURE 512
struct video_capability
{
char name[32];
int type;
int channels;
int audios;
int maxwidth;
int maxheight;
int minwidth;
int minheight;
};
struct video_picture
{
CARD16 brightness;
CARD16 hue;
CARD16 colour;
CARD16 contrast;
CARD16 whiteness;
CARD16 depth;
CARD16 palette;
#define VIDEO_PALETTE_GREY 1
#define VIDEO_PALETTE_HI240 2
#define VIDEO_PALETTE_RGB565 3
#define VIDEO_PALETTE_RGB24 4
#define VIDEO_PALETTE_RGB32 5
#define VIDEO_PALETTE_RGB555 6
#define VIDEO_PALETTE_YUV422 7
#define VIDEO_PALETTE_YUYV 8
#define VIDEO_PALETTE_UYVY 9
#define VIDEO_PALETTE_YUV420 10
#define VIDEO_PALETTE_YUV411 11
#define VIDEO_PALETTE_RAW 12
#define VIDEO_PALETTE_YUV422P 13
#define VIDEO_PALETTE_YUV411P 14
#define VIDEO_PALETTE_YUV420P 15
#define VIDEO_PALETTE_YUV410P 16
#define VIDEO_PALETTE_PLANAR 13
#define VIDEO_PALETTE_COMPONENT 7
};
struct video_audio
{
int audio;
CARD16 volume;
CARD16 bass, treble;
CARD32 flags;
#define VIDEO_AUDIO_MUTE 1
#define VIDEO_AUDIO_MUTABLE 2
#define VIDEO_AUDIO_VOLUME 4
#define VIDEO_AUDIO_BASS 8
#define VIDEO_AUDIO_TREBLE 16
char name[16];
#define VIDEO_SOUND_MONO 1
#define VIDEO_SOUND_STEREO 2
#define VIDEO_SOUND_LANG1 4
#define VIDEO_SOUND_LANG2 8
CARD16 mode;
CARD16 balance;
CARD16 step;
};
struct video_clip
{
INT32 x,y;
INT32 width, height;
struct video_clip *next;
};
struct video_window
{
CARD32 x,y;
CARD32 width,height;
CARD32 chromakey;
CARD32 flags;
struct video_clip *clips;
int clipcount;
#define VIDEO_WINDOW_INTERLACE 1
#define VIDEO_CLIP_BITMAP -1
#define VIDEO_CLIPMAP_SIZE (128 * 625)
};
struct video_channel
{
int channel;
char name[32];
int tuners;
CARD32 flags;
#define VIDEO_VC_TUNER 1
#define VIDEO_VC_AUDIO 2
CARD16 type;
#define VIDEO_TYPE_TV 1
#define VIDEO_TYPE_CAMERA 2
CARD16 norm;
};
#define VIDEO_MODE_PAL 0
#define VIDEO_MODE_NTSC 1
#define VIDEO_MODE_SECAM 2
#define VIDEO_MODE_AUTO 3
#endif