1/*
2 * extensions to ioctl_meteor.h for the bt848 cards
3 */
4
5/*
6 * frequency sets
7 */
8#define CHNLSET_NABCST 1
--- 124 unchanged lines hidden (view full) ---
133/*
134 * XXX: more bad magic,
135 * we need to fix the METEORGINPUT to return something public
136 * duplicate them here for now...
137 */
138#define METEOR_DEV0 0x00001000
139#define METEOR_DEV1 0x00002000
140#define METEOR_DEV2 0x00004000
141
142/*
143 * right now I don't know were to put these, but as they are suppose to be
144 * a part of a common video capture interface, these should be relocated to
145 * another place. Probably most of the METEOR_xxx defines need to be
146 * renamed and moved to a common header
147 */
148
149typedef enum { METEOR_PIXTYPE_RGB, METEOR_PIXTYPE_YUV } METEOR_PIXTYPE;
150
151struct meteor_pixfmt {
152 u_int index; /* Index in supported pixfmt list */
153 METEOR_PIXTYPE type; /* What's the board gonna feed us */
154 u_int Bpp; /* Bytes per pixel */
155 u_long masks[3]; /* R,G,B or Y,U,V masks, respectively */
156 unsigned swap_bytes :1; /* Bytes swapped within shorts */
157 unsigned swap_shorts:1; /* Shorts swapped within longs */
158};
159
160
161struct bktr_clip {
162 int x_min;
163 int x_max;
164 int y_min;
165 int y_max;
166};
167
168#define BT848_MAX_CLIP_NODE 100
169struct _bktr_clip {
170 struct bktr_clip x[BT848_MAX_CLIP_NODE];
171};
172
173/*
174 * I'm using METEOR_xxx just because that will be common to other interface
175 * and less of a surprise
176 */
177#define METEORSACTPIXFMT _IOW('x', 64, int )
178#define METEORGACTPIXFMT _IOR('x', 64, int )
179#define METEORGSUPPIXFMT _IOWR('x', 65, struct meteor_pixfmt)
180
181/* set clip list */
182#define BT848SCLIP _IOW('x', 66, struct _bktr_clip )
183#define BT848GCLIP _IOR('x', 66, struct _bktr_clip )
2 * extensions to ioctl_meteor.h for the bt848 cards
3 */
4
5/*
6 * frequency sets
7 */
8#define CHNLSET_NABCST 1
--- 124 unchanged lines hidden (view full) ---
133/*
134 * XXX: more bad magic,
135 * we need to fix the METEORGINPUT to return something public
136 * duplicate them here for now...
137 */
138#define METEOR_DEV0 0x00001000
139#define METEOR_DEV1 0x00002000
140#define METEOR_DEV2 0x00004000
141
142/*
143 * right now I don't know were to put these, but as they are suppose to be
144 * a part of a common video capture interface, these should be relocated to
145 * another place. Probably most of the METEOR_xxx defines need to be
146 * renamed and moved to a common header
147 */
148
149typedef enum { METEOR_PIXTYPE_RGB, METEOR_PIXTYPE_YUV } METEOR_PIXTYPE;
150
151struct meteor_pixfmt {
152 u_int index; /* Index in supported pixfmt list */
153 METEOR_PIXTYPE type; /* What's the board gonna feed us */
154 u_int Bpp; /* Bytes per pixel */
155 u_long masks[3]; /* R,G,B or Y,U,V masks, respectively */
156 unsigned swap_bytes :1; /* Bytes swapped within shorts */
157 unsigned swap_shorts:1; /* Shorts swapped within longs */
158};
159
160
161struct bktr_clip {
162 int x_min;
163 int x_max;
164 int y_min;
165 int y_max;
166};
167
168#define BT848_MAX_CLIP_NODE 100
169struct _bktr_clip {
170 struct bktr_clip x[BT848_MAX_CLIP_NODE];
171};
172
173/*
174 * I'm using METEOR_xxx just because that will be common to other interface
175 * and less of a surprise
176 */
177#define METEORSACTPIXFMT _IOW('x', 64, int )
178#define METEORGACTPIXFMT _IOR('x', 64, int )
179#define METEORGSUPPIXFMT _IOWR('x', 65, struct meteor_pixfmt)
180
181/* set clip list */
182#define BT848SCLIP _IOW('x', 66, struct _bktr_clip )
183#define BT848GCLIP _IOR('x', 66, struct _bktr_clip )