diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-26 12:53:46 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-27 10:06:20 -0400 |
commit | 9993e51c0c47ec69dce1f26c2321af6bb9165e9e (patch) | |
tree | 3febbd2f33f39fa04e7da76a8d8c8e1308b8720b /include/linux/videodev2.h | |
parent | fdd2a7e2dac56a3384068802be46b822f2aed703 (diff) |
V4L/DVB (8502): videodev2.h: CodingStyle cleanups
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include/linux/videodev2.h')
-rw-r--r-- | include/linux/videodev2.h | 378 |
1 files changed, 166 insertions, 212 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 2e66a95e8d32..cc0c8952323b 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
@@ -91,8 +91,8 @@ | |||
91 | */ | 91 | */ |
92 | 92 | ||
93 | /* Four-character-code (FOURCC) */ | 93 | /* Four-character-code (FOURCC) */ |
94 | #define v4l2_fourcc(a,b,c,d)\ | 94 | #define v4l2_fourcc(a, b, c, d)\ |
95 | (((__u32)(a)<<0)|((__u32)(b)<<8)|((__u32)(c)<<16)|((__u32)(d)<<24)) | 95 | ((__u32)(a) | ((__u32)(b) << 8) | ((__u32)(c) << 16) | ((__u32)(d) << 24)) |
96 | 96 | ||
97 | /* | 97 | /* |
98 | * E N U M S | 98 | * E N U M S |
@@ -226,8 +226,7 @@ struct v4l2_fract { | |||
226 | /* | 226 | /* |
227 | * D R I V E R C A P A B I L I T I E S | 227 | * D R I V E R C A P A B I L I T I E S |
228 | */ | 228 | */ |
229 | struct v4l2_capability | 229 | struct v4l2_capability { |
230 | { | ||
231 | __u8 driver[16]; /* i.e. "bttv" */ | 230 | __u8 driver[16]; /* i.e. "bttv" */ |
232 | __u8 card[32]; /* i.e. "Hauppauge WinTV" */ | 231 | __u8 card[32]; /* i.e. "Hauppauge WinTV" */ |
233 | __u8 bus_info[32]; /* "PCI:" + pci_name(pci_dev) */ | 232 | __u8 bus_info[32]; /* "PCI:" + pci_name(pci_dev) */ |
@@ -259,8 +258,7 @@ struct v4l2_capability | |||
259 | /* | 258 | /* |
260 | * V I D E O I M A G E F O R M A T | 259 | * V I D E O I M A G E F O R M A T |
261 | */ | 260 | */ |
262 | struct v4l2_pix_format | 261 | struct v4l2_pix_format { |
263 | { | ||
264 | __u32 width; | 262 | __u32 width; |
265 | __u32 height; | 263 | __u32 height; |
266 | __u32 pixelformat; | 264 | __u32 pixelformat; |
@@ -272,68 +270,67 @@ struct v4l2_pix_format | |||
272 | }; | 270 | }; |
273 | 271 | ||
274 | /* Pixel format FOURCC depth Description */ | 272 | /* Pixel format FOURCC depth Description */ |
275 | #define V4L2_PIX_FMT_RGB332 v4l2_fourcc('R','G','B','1') /* 8 RGB-3-3-2 */ | 273 | #define V4L2_PIX_FMT_RGB332 v4l2_fourcc('R', 'G', 'B', '1') /* 8 RGB-3-3-2 */ |
276 | #define V4L2_PIX_FMT_RGB444 v4l2_fourcc('R','4','4','4') /* 16 xxxxrrrr ggggbbbb */ | 274 | #define V4L2_PIX_FMT_RGB444 v4l2_fourcc('R', '4', '4', '4') /* 16 xxxxrrrr ggggbbbb */ |
277 | #define V4L2_PIX_FMT_RGB555 v4l2_fourcc('R','G','B','O') /* 16 RGB-5-5-5 */ | 275 | #define V4L2_PIX_FMT_RGB555 v4l2_fourcc('R', 'G', 'B', 'O') /* 16 RGB-5-5-5 */ |
278 | #define V4L2_PIX_FMT_RGB565 v4l2_fourcc('R','G','B','P') /* 16 RGB-5-6-5 */ | 276 | #define V4L2_PIX_FMT_RGB565 v4l2_fourcc('R', 'G', 'B', 'P') /* 16 RGB-5-6-5 */ |
279 | #define V4L2_PIX_FMT_RGB555X v4l2_fourcc('R','G','B','Q') /* 16 RGB-5-5-5 BE */ | 277 | #define V4L2_PIX_FMT_RGB555X v4l2_fourcc('R', 'G', 'B', 'Q') /* 16 RGB-5-5-5 BE */ |
280 | #define V4L2_PIX_FMT_RGB565X v4l2_fourcc('R','G','B','R') /* 16 RGB-5-6-5 BE */ | 278 | #define V4L2_PIX_FMT_RGB565X v4l2_fourcc('R', 'G', 'B', 'R') /* 16 RGB-5-6-5 BE */ |
281 | #define V4L2_PIX_FMT_BGR24 v4l2_fourcc('B','G','R','3') /* 24 BGR-8-8-8 */ | 279 | #define V4L2_PIX_FMT_BGR24 v4l2_fourcc('B', 'G', 'R', '3') /* 24 BGR-8-8-8 */ |
282 | #define V4L2_PIX_FMT_RGB24 v4l2_fourcc('R','G','B','3') /* 24 RGB-8-8-8 */ | 280 | #define V4L2_PIX_FMT_RGB24 v4l2_fourcc('R', 'G', 'B', '3') /* 24 RGB-8-8-8 */ |
283 | #define V4L2_PIX_FMT_BGR32 v4l2_fourcc('B','G','R','4') /* 32 BGR-8-8-8-8 */ | 281 | #define V4L2_PIX_FMT_BGR32 v4l2_fourcc('B', 'G', 'R', '4') /* 32 BGR-8-8-8-8 */ |
284 | #define V4L2_PIX_FMT_RGB32 v4l2_fourcc('R','G','B','4') /* 32 RGB-8-8-8-8 */ | 282 | #define V4L2_PIX_FMT_RGB32 v4l2_fourcc('R', 'G', 'B', '4') /* 32 RGB-8-8-8-8 */ |
285 | #define V4L2_PIX_FMT_GREY v4l2_fourcc('G','R','E','Y') /* 8 Greyscale */ | 283 | #define V4L2_PIX_FMT_GREY v4l2_fourcc('G', 'R', 'E', 'Y') /* 8 Greyscale */ |
286 | #define V4L2_PIX_FMT_Y16 v4l2_fourcc('Y','1','6',' ') /* 16 Greyscale */ | 284 | #define V4L2_PIX_FMT_Y16 v4l2_fourcc('Y', '1', '6', ' ') /* 16 Greyscale */ |
287 | #define V4L2_PIX_FMT_PAL8 v4l2_fourcc('P','A','L','8') /* 8 8-bit palette */ | 285 | #define V4L2_PIX_FMT_PAL8 v4l2_fourcc('P', 'A', 'L', '8') /* 8 8-bit palette */ |
288 | #define V4L2_PIX_FMT_YVU410 v4l2_fourcc('Y','V','U','9') /* 9 YVU 4:1:0 */ | 286 | #define V4L2_PIX_FMT_YVU410 v4l2_fourcc('Y', 'V', 'U', '9') /* 9 YVU 4:1:0 */ |
289 | #define V4L2_PIX_FMT_YVU420 v4l2_fourcc('Y','V','1','2') /* 12 YVU 4:2:0 */ | 287 | #define V4L2_PIX_FMT_YVU420 v4l2_fourcc('Y', 'V', '1', '2') /* 12 YVU 4:2:0 */ |
290 | #define V4L2_PIX_FMT_YUYV v4l2_fourcc('Y','U','Y','V') /* 16 YUV 4:2:2 */ | 288 | #define V4L2_PIX_FMT_YUYV v4l2_fourcc('Y', 'U', 'Y', 'V') /* 16 YUV 4:2:2 */ |
291 | #define V4L2_PIX_FMT_UYVY v4l2_fourcc('U','Y','V','Y') /* 16 YUV 4:2:2 */ | 289 | #define V4L2_PIX_FMT_UYVY v4l2_fourcc('U', 'Y', 'V', 'Y') /* 16 YUV 4:2:2 */ |
292 | #define V4L2_PIX_FMT_YUV422P v4l2_fourcc('4','2','2','P') /* 16 YVU422 planar */ | 290 | #define V4L2_PIX_FMT_YUV422P v4l2_fourcc('4', '2', '2', 'P') /* 16 YVU422 planar */ |
293 | #define V4L2_PIX_FMT_YUV411P v4l2_fourcc('4','1','1','P') /* 16 YVU411 planar */ | 291 | #define V4L2_PIX_FMT_YUV411P v4l2_fourcc('4', '1', '1', 'P') /* 16 YVU411 planar */ |
294 | #define V4L2_PIX_FMT_Y41P v4l2_fourcc('Y','4','1','P') /* 12 YUV 4:1:1 */ | 292 | #define V4L2_PIX_FMT_Y41P v4l2_fourcc('Y', '4', '1', 'P') /* 12 YUV 4:1:1 */ |
295 | #define V4L2_PIX_FMT_YUV444 v4l2_fourcc('Y','4','4','4') /* 16 xxxxyyyy uuuuvvvv */ | 293 | #define V4L2_PIX_FMT_YUV444 v4l2_fourcc('Y', '4', '4', '4') /* 16 xxxxyyyy uuuuvvvv */ |
296 | #define V4L2_PIX_FMT_YUV555 v4l2_fourcc('Y','U','V','O') /* 16 YUV-5-5-5 */ | 294 | #define V4L2_PIX_FMT_YUV555 v4l2_fourcc('Y', 'U', 'V', 'O') /* 16 YUV-5-5-5 */ |
297 | #define V4L2_PIX_FMT_YUV565 v4l2_fourcc('Y','U','V','P') /* 16 YUV-5-6-5 */ | 295 | #define V4L2_PIX_FMT_YUV565 v4l2_fourcc('Y', 'U', 'V', 'P') /* 16 YUV-5-6-5 */ |
298 | #define V4L2_PIX_FMT_YUV32 v4l2_fourcc('Y','U','V','4') /* 32 YUV-8-8-8-8 */ | 296 | #define V4L2_PIX_FMT_YUV32 v4l2_fourcc('Y', 'U', 'V', '4') /* 32 YUV-8-8-8-8 */ |
299 | 297 | ||
300 | /* two planes -- one Y, one Cr + Cb interleaved */ | 298 | /* two planes -- one Y, one Cr + Cb interleaved */ |
301 | #define V4L2_PIX_FMT_NV12 v4l2_fourcc('N','V','1','2') /* 12 Y/CbCr 4:2:0 */ | 299 | #define V4L2_PIX_FMT_NV12 v4l2_fourcc('N', 'V', '1', '2') /* 12 Y/CbCr 4:2:0 */ |
302 | #define V4L2_PIX_FMT_NV21 v4l2_fourcc('N','V','2','1') /* 12 Y/CrCb 4:2:0 */ | 300 | #define V4L2_PIX_FMT_NV21 v4l2_fourcc('N', 'V', '2', '1') /* 12 Y/CrCb 4:2:0 */ |
303 | 301 | ||
304 | /* The following formats are not defined in the V4L2 specification */ | 302 | /* The following formats are not defined in the V4L2 specification */ |
305 | #define V4L2_PIX_FMT_YUV410 v4l2_fourcc('Y','U','V','9') /* 9 YUV 4:1:0 */ | 303 | #define V4L2_PIX_FMT_YUV410 v4l2_fourcc('Y', 'U', 'V', '9') /* 9 YUV 4:1:0 */ |
306 | #define V4L2_PIX_FMT_YUV420 v4l2_fourcc('Y','U','1','2') /* 12 YUV 4:2:0 */ | 304 | #define V4L2_PIX_FMT_YUV420 v4l2_fourcc('Y', 'U', '1', '2') /* 12 YUV 4:2:0 */ |
307 | #define V4L2_PIX_FMT_YYUV v4l2_fourcc('Y','Y','U','V') /* 16 YUV 4:2:2 */ | 305 | #define V4L2_PIX_FMT_YYUV v4l2_fourcc('Y', 'Y', 'U', 'V') /* 16 YUV 4:2:2 */ |
308 | #define V4L2_PIX_FMT_HI240 v4l2_fourcc('H','I','2','4') /* 8 8-bit color */ | 306 | #define V4L2_PIX_FMT_HI240 v4l2_fourcc('H', 'I', '2', '4') /* 8 8-bit color */ |
309 | #define V4L2_PIX_FMT_HM12 v4l2_fourcc('H','M','1','2') /* 8 YUV 4:2:0 16x16 macroblocks */ | 307 | #define V4L2_PIX_FMT_HM12 v4l2_fourcc('H', 'M', '1', '2') /* 8 YUV 4:2:0 16x16 macroblocks */ |
310 | 308 | ||
311 | /* see http://www.siliconimaging.com/RGB%20Bayer.htm */ | 309 | /* see http://www.siliconimaging.com/RGB%20Bayer.htm */ |
312 | #define V4L2_PIX_FMT_SBGGR8 v4l2_fourcc('B','A','8','1') /* 8 BGBG.. GRGR.. */ | 310 | #define V4L2_PIX_FMT_SBGGR8 v4l2_fourcc('B', 'A', '8', '1') /* 8 BGBG.. GRGR.. */ |
313 | #define V4L2_PIX_FMT_SGBRG8 v4l2_fourcc('G','B','R','G') /* 8 GBGB.. RGRG.. */ | 311 | #define V4L2_PIX_FMT_SGBRG8 v4l2_fourcc('G', 'B', 'R', 'G') /* 8 GBGB.. RGRG.. */ |
314 | #define V4L2_PIX_FMT_SBGGR16 v4l2_fourcc('B','Y','R','2') /* 16 BGBG.. GRGR.. */ | 312 | #define V4L2_PIX_FMT_SBGGR16 v4l2_fourcc('B', 'Y', 'R', '2') /* 16 BGBG.. GRGR.. */ |
315 | 313 | ||
316 | /* compressed formats */ | 314 | /* compressed formats */ |
317 | #define V4L2_PIX_FMT_MJPEG v4l2_fourcc('M','J','P','G') /* Motion-JPEG */ | 315 | #define V4L2_PIX_FMT_MJPEG v4l2_fourcc('M', 'J', 'P', 'G') /* Motion-JPEG */ |
318 | #define V4L2_PIX_FMT_JPEG v4l2_fourcc('J','P','E','G') /* JFIF JPEG */ | 316 | #define V4L2_PIX_FMT_JPEG v4l2_fourcc('J', 'P', 'E', 'G') /* JFIF JPEG */ |
319 | #define V4L2_PIX_FMT_DV v4l2_fourcc('d','v','s','d') /* 1394 */ | 317 | #define V4L2_PIX_FMT_DV v4l2_fourcc('d', 'v', 's', 'd') /* 1394 */ |
320 | #define V4L2_PIX_FMT_MPEG v4l2_fourcc('M','P','E','G') /* MPEG-1/2/4 */ | 318 | #define V4L2_PIX_FMT_MPEG v4l2_fourcc('M', 'P', 'E', 'G') /* MPEG-1/2/4 */ |
321 | 319 | ||
322 | /* Vendor-specific formats */ | 320 | /* Vendor-specific formats */ |
323 | #define V4L2_PIX_FMT_WNVA v4l2_fourcc('W','N','V','A') /* Winnov hw compress */ | 321 | #define V4L2_PIX_FMT_WNVA v4l2_fourcc('W', 'N', 'V', 'A') /* Winnov hw compress */ |
324 | #define V4L2_PIX_FMT_SN9C10X v4l2_fourcc('S','9','1','0') /* SN9C10x compression */ | 322 | #define V4L2_PIX_FMT_SN9C10X v4l2_fourcc('S', '9', '1', '0') /* SN9C10x compression */ |
325 | #define V4L2_PIX_FMT_PWC1 v4l2_fourcc('P','W','C','1') /* pwc older webcam */ | 323 | #define V4L2_PIX_FMT_PWC1 v4l2_fourcc('P', 'W', 'C', '1') /* pwc older webcam */ |
326 | #define V4L2_PIX_FMT_PWC2 v4l2_fourcc('P','W','C','2') /* pwc newer webcam */ | 324 | #define V4L2_PIX_FMT_PWC2 v4l2_fourcc('P', 'W', 'C', '2') /* pwc newer webcam */ |
327 | #define V4L2_PIX_FMT_ET61X251 v4l2_fourcc('E','6','2','5') /* ET61X251 compression */ | 325 | #define V4L2_PIX_FMT_ET61X251 v4l2_fourcc('E', '6', '2', '5') /* ET61X251 compression */ |
328 | #define V4L2_PIX_FMT_SPCA501 v4l2_fourcc('S','5','0','1') /* YUYV per line */ | 326 | #define V4L2_PIX_FMT_SPCA501 v4l2_fourcc('S', '5', '0', '1') /* YUYV per line */ |
329 | #define V4L2_PIX_FMT_SPCA561 v4l2_fourcc('S','5','6','1') /* compressed GBRG bayer */ | 327 | #define V4L2_PIX_FMT_SPCA561 v4l2_fourcc('S', '5', '6', '1') /* compressed GBRG bayer */ |
330 | #define V4L2_PIX_FMT_PAC207 v4l2_fourcc('P','2','0','7') /* compressed BGGR bayer */ | 328 | #define V4L2_PIX_FMT_PAC207 v4l2_fourcc('P', '2', '0', '7') /* compressed BGGR bayer */ |
331 | 329 | ||
332 | /* | 330 | /* |
333 | * F O R M A T E N U M E R A T I O N | 331 | * F O R M A T E N U M E R A T I O N |
334 | */ | 332 | */ |
335 | struct v4l2_fmtdesc | 333 | struct v4l2_fmtdesc { |
336 | { | ||
337 | __u32 index; /* Format number */ | 334 | __u32 index; /* Format number */ |
338 | enum v4l2_buf_type type; /* buffer type */ | 335 | enum v4l2_buf_type type; /* buffer type */ |
339 | __u32 flags; | 336 | __u32 flags; |
@@ -349,21 +346,18 @@ struct v4l2_fmtdesc | |||
349 | /* | 346 | /* |
350 | * F R A M E S I Z E E N U M E R A T I O N | 347 | * F R A M E S I Z E E N U M E R A T I O N |
351 | */ | 348 | */ |
352 | enum v4l2_frmsizetypes | 349 | enum v4l2_frmsizetypes { |
353 | { | ||
354 | V4L2_FRMSIZE_TYPE_DISCRETE = 1, | 350 | V4L2_FRMSIZE_TYPE_DISCRETE = 1, |
355 | V4L2_FRMSIZE_TYPE_CONTINUOUS = 2, | 351 | V4L2_FRMSIZE_TYPE_CONTINUOUS = 2, |
356 | V4L2_FRMSIZE_TYPE_STEPWISE = 3, | 352 | V4L2_FRMSIZE_TYPE_STEPWISE = 3, |
357 | }; | 353 | }; |
358 | 354 | ||
359 | struct v4l2_frmsize_discrete | 355 | struct v4l2_frmsize_discrete { |
360 | { | ||
361 | __u32 width; /* Frame width [pixel] */ | 356 | __u32 width; /* Frame width [pixel] */ |
362 | __u32 height; /* Frame height [pixel] */ | 357 | __u32 height; /* Frame height [pixel] */ |
363 | }; | 358 | }; |
364 | 359 | ||
365 | struct v4l2_frmsize_stepwise | 360 | struct v4l2_frmsize_stepwise { |
366 | { | ||
367 | __u32 min_width; /* Minimum frame width [pixel] */ | 361 | __u32 min_width; /* Minimum frame width [pixel] */ |
368 | __u32 max_width; /* Maximum frame width [pixel] */ | 362 | __u32 max_width; /* Maximum frame width [pixel] */ |
369 | __u32 step_width; /* Frame width step size [pixel] */ | 363 | __u32 step_width; /* Frame width step size [pixel] */ |
@@ -372,8 +366,7 @@ struct v4l2_frmsize_stepwise | |||
372 | __u32 step_height; /* Frame height step size [pixel] */ | 366 | __u32 step_height; /* Frame height step size [pixel] */ |
373 | }; | 367 | }; |
374 | 368 | ||
375 | struct v4l2_frmsizeenum | 369 | struct v4l2_frmsizeenum { |
376 | { | ||
377 | __u32 index; /* Frame size number */ | 370 | __u32 index; /* Frame size number */ |
378 | __u32 pixel_format; /* Pixel format */ | 371 | __u32 pixel_format; /* Pixel format */ |
379 | __u32 type; /* Frame size type the device supports. */ | 372 | __u32 type; /* Frame size type the device supports. */ |
@@ -389,22 +382,19 @@ struct v4l2_frmsizeenum | |||
389 | /* | 382 | /* |
390 | * F R A M E R A T E E N U M E R A T I O N | 383 | * F R A M E R A T E E N U M E R A T I O N |
391 | */ | 384 | */ |
392 | enum v4l2_frmivaltypes | 385 | enum v4l2_frmivaltypes { |
393 | { | ||
394 | V4L2_FRMIVAL_TYPE_DISCRETE = 1, | 386 | V4L2_FRMIVAL_TYPE_DISCRETE = 1, |
395 | V4L2_FRMIVAL_TYPE_CONTINUOUS = 2, | 387 | V4L2_FRMIVAL_TYPE_CONTINUOUS = 2, |
396 | V4L2_FRMIVAL_TYPE_STEPWISE = 3, | 388 | V4L2_FRMIVAL_TYPE_STEPWISE = 3, |
397 | }; | 389 | }; |
398 | 390 | ||
399 | struct v4l2_frmival_stepwise | 391 | struct v4l2_frmival_stepwise { |
400 | { | ||
401 | struct v4l2_fract min; /* Minimum frame interval [s] */ | 392 | struct v4l2_fract min; /* Minimum frame interval [s] */ |
402 | struct v4l2_fract max; /* Maximum frame interval [s] */ | 393 | struct v4l2_fract max; /* Maximum frame interval [s] */ |
403 | struct v4l2_fract step; /* Frame interval step size [s] */ | 394 | struct v4l2_fract step; /* Frame interval step size [s] */ |
404 | }; | 395 | }; |
405 | 396 | ||
406 | struct v4l2_frmivalenum | 397 | struct v4l2_frmivalenum { |
407 | { | ||
408 | __u32 index; /* Frame format index */ | 398 | __u32 index; /* Frame format index */ |
409 | __u32 pixel_format; /* Pixel format */ | 399 | __u32 pixel_format; /* Pixel format */ |
410 | __u32 width; /* Frame width */ | 400 | __u32 width; /* Frame width */ |
@@ -423,8 +413,7 @@ struct v4l2_frmivalenum | |||
423 | /* | 413 | /* |
424 | * T I M E C O D E | 414 | * T I M E C O D E |
425 | */ | 415 | */ |
426 | struct v4l2_timecode | 416 | struct v4l2_timecode { |
427 | { | ||
428 | __u32 type; | 417 | __u32 type; |
429 | __u32 flags; | 418 | __u32 flags; |
430 | __u8 frames; | 419 | __u8 frames; |
@@ -449,8 +438,7 @@ struct v4l2_timecode | |||
449 | #define V4L2_TC_USERBITS_8BITCHARS 0x0008 | 438 | #define V4L2_TC_USERBITS_8BITCHARS 0x0008 |
450 | /* The above is based on SMPTE timecodes */ | 439 | /* The above is based on SMPTE timecodes */ |
451 | 440 | ||
452 | struct v4l2_jpegcompression | 441 | struct v4l2_jpegcompression { |
453 | { | ||
454 | int quality; | 442 | int quality; |
455 | 443 | ||
456 | int APPn; /* Number of APP segment to be written, | 444 | int APPn; /* Number of APP segment to be written, |
@@ -482,16 +470,14 @@ struct v4l2_jpegcompression | |||
482 | /* | 470 | /* |
483 | * M E M O R Y - M A P P I N G B U F F E R S | 471 | * M E M O R Y - M A P P I N G B U F F E R S |
484 | */ | 472 | */ |
485 | struct v4l2_requestbuffers | 473 | struct v4l2_requestbuffers { |
486 | { | ||
487 | __u32 count; | 474 | __u32 count; |
488 | enum v4l2_buf_type type; | 475 | enum v4l2_buf_type type; |
489 | enum v4l2_memory memory; | 476 | enum v4l2_memory memory; |
490 | __u32 reserved[2]; | 477 | __u32 reserved[2]; |
491 | }; | 478 | }; |
492 | 479 | ||
493 | struct v4l2_buffer | 480 | struct v4l2_buffer { |
494 | { | ||
495 | __u32 index; | 481 | __u32 index; |
496 | enum v4l2_buf_type type; | 482 | enum v4l2_buf_type type; |
497 | __u32 bytesused; | 483 | __u32 bytesused; |
@@ -525,13 +511,12 @@ struct v4l2_buffer | |||
525 | /* | 511 | /* |
526 | * O V E R L A Y P R E V I E W | 512 | * O V E R L A Y P R E V I E W |
527 | */ | 513 | */ |
528 | struct v4l2_framebuffer | 514 | struct v4l2_framebuffer { |
529 | { | ||
530 | __u32 capability; | 515 | __u32 capability; |
531 | __u32 flags; | 516 | __u32 flags; |
532 | /* FIXME: in theory we should pass something like PCI device + memory | 517 | /* FIXME: in theory we should pass something like PCI device + memory |
533 | * region + offset instead of some physical address */ | 518 | * region + offset instead of some physical address */ |
534 | void* base; | 519 | void *base; |
535 | struct v4l2_pix_format fmt; | 520 | struct v4l2_pix_format fmt; |
536 | }; | 521 | }; |
537 | /* Flags for the 'capability' field. Read only */ | 522 | /* Flags for the 'capability' field. Read only */ |
@@ -550,14 +535,12 @@ struct v4l2_framebuffer | |||
550 | #define V4L2_FBUF_FLAG_GLOBAL_ALPHA 0x0010 | 535 | #define V4L2_FBUF_FLAG_GLOBAL_ALPHA 0x0010 |
551 | #define V4L2_FBUF_FLAG_LOCAL_INV_ALPHA 0x0020 | 536 | #define V4L2_FBUF_FLAG_LOCAL_INV_ALPHA 0x0020 |
552 | 537 | ||
553 | struct v4l2_clip | 538 | struct v4l2_clip { |
554 | { | ||
555 | struct v4l2_rect c; | 539 | struct v4l2_rect c; |
556 | struct v4l2_clip __user *next; | 540 | struct v4l2_clip __user *next; |
557 | }; | 541 | }; |
558 | 542 | ||
559 | struct v4l2_window | 543 | struct v4l2_window { |
560 | { | ||
561 | struct v4l2_rect w; | 544 | struct v4l2_rect w; |
562 | enum v4l2_field field; | 545 | enum v4l2_field field; |
563 | __u32 chromakey; | 546 | __u32 chromakey; |
@@ -570,8 +553,7 @@ struct v4l2_window | |||
570 | /* | 553 | /* |
571 | * C A P T U R E P A R A M E T E R S | 554 | * C A P T U R E P A R A M E T E R S |
572 | */ | 555 | */ |
573 | struct v4l2_captureparm | 556 | struct v4l2_captureparm { |
574 | { | ||
575 | __u32 capability; /* Supported modes */ | 557 | __u32 capability; /* Supported modes */ |
576 | __u32 capturemode; /* Current mode */ | 558 | __u32 capturemode; /* Current mode */ |
577 | struct v4l2_fract timeperframe; /* Time per frame in .1us units */ | 559 | struct v4l2_fract timeperframe; /* Time per frame in .1us units */ |
@@ -584,8 +566,7 @@ struct v4l2_captureparm | |||
584 | #define V4L2_MODE_HIGHQUALITY 0x0001 /* High quality imaging mode */ | 566 | #define V4L2_MODE_HIGHQUALITY 0x0001 /* High quality imaging mode */ |
585 | #define V4L2_CAP_TIMEPERFRAME 0x1000 /* timeperframe field is supported */ | 567 | #define V4L2_CAP_TIMEPERFRAME 0x1000 /* timeperframe field is supported */ |
586 | 568 | ||
587 | struct v4l2_outputparm | 569 | struct v4l2_outputparm { |
588 | { | ||
589 | __u32 capability; /* Supported modes */ | 570 | __u32 capability; /* Supported modes */ |
590 | __u32 outputmode; /* Current mode */ | 571 | __u32 outputmode; /* Current mode */ |
591 | struct v4l2_fract timeperframe; /* Time per frame in seconds */ | 572 | struct v4l2_fract timeperframe; /* Time per frame in seconds */ |
@@ -702,8 +683,7 @@ typedef __u64 v4l2_std_id; | |||
702 | #define V4L2_STD_ALL (V4L2_STD_525_60 |\ | 683 | #define V4L2_STD_ALL (V4L2_STD_525_60 |\ |
703 | V4L2_STD_625_50) | 684 | V4L2_STD_625_50) |
704 | 685 | ||
705 | struct v4l2_standard | 686 | struct v4l2_standard { |
706 | { | ||
707 | __u32 index; | 687 | __u32 index; |
708 | v4l2_std_id id; | 688 | v4l2_std_id id; |
709 | __u8 name[24]; | 689 | __u8 name[24]; |
@@ -715,8 +695,7 @@ struct v4l2_standard | |||
715 | /* | 695 | /* |
716 | * V I D E O I N P U T S | 696 | * V I D E O I N P U T S |
717 | */ | 697 | */ |
718 | struct v4l2_input | 698 | struct v4l2_input { |
719 | { | ||
720 | __u32 index; /* Which input */ | 699 | __u32 index; /* Which input */ |
721 | __u8 name[32]; /* Label */ | 700 | __u8 name[32]; /* Label */ |
722 | __u32 type; /* Type of input */ | 701 | __u32 type; /* Type of input */ |
@@ -753,8 +732,7 @@ struct v4l2_input | |||
753 | /* | 732 | /* |
754 | * V I D E O O U T P U T S | 733 | * V I D E O O U T P U T S |
755 | */ | 734 | */ |
756 | struct v4l2_output | 735 | struct v4l2_output { |
757 | { | ||
758 | __u32 index; /* Which output */ | 736 | __u32 index; /* Which output */ |
759 | __u8 name[32]; /* Label */ | 737 | __u8 name[32]; /* Label */ |
760 | __u32 type; /* Type of output */ | 738 | __u32 type; /* Type of output */ |
@@ -771,14 +749,12 @@ struct v4l2_output | |||
771 | /* | 749 | /* |
772 | * C O N T R O L S | 750 | * C O N T R O L S |
773 | */ | 751 | */ |
774 | struct v4l2_control | 752 | struct v4l2_control { |
775 | { | ||
776 | __u32 id; | 753 | __u32 id; |
777 | __s32 value; | 754 | __s32 value; |
778 | }; | 755 | }; |
779 | 756 | ||
780 | struct v4l2_ext_control | 757 | struct v4l2_ext_control { |
781 | { | ||
782 | __u32 id; | 758 | __u32 id; |
783 | __u32 reserved2[2]; | 759 | __u32 reserved2[2]; |
784 | union { | 760 | union { |
@@ -788,8 +764,7 @@ struct v4l2_ext_control | |||
788 | }; | 764 | }; |
789 | } __attribute__ ((packed)); | 765 | } __attribute__ ((packed)); |
790 | 766 | ||
791 | struct v4l2_ext_controls | 767 | struct v4l2_ext_controls { |
792 | { | ||
793 | __u32 ctrl_class; | 768 | __u32 ctrl_class; |
794 | __u32 count; | 769 | __u32 count; |
795 | __u32 error_idx; | 770 | __u32 error_idx; |
@@ -807,8 +782,7 @@ struct v4l2_ext_controls | |||
807 | #define V4L2_CTRL_DRIVER_PRIV(id) (((id) & 0xffff) >= 0x1000) | 782 | #define V4L2_CTRL_DRIVER_PRIV(id) (((id) & 0xffff) >= 0x1000) |
808 | 783 | ||
809 | /* Used in the VIDIOC_QUERYCTRL ioctl for querying controls */ | 784 | /* Used in the VIDIOC_QUERYCTRL ioctl for querying controls */ |
810 | struct v4l2_queryctrl | 785 | struct v4l2_queryctrl { |
811 | { | ||
812 | __u32 id; | 786 | __u32 id; |
813 | enum v4l2_ctrl_type type; | 787 | enum v4l2_ctrl_type type; |
814 | __u8 name[32]; /* Whatever */ | 788 | __u8 name[32]; /* Whatever */ |
@@ -821,8 +795,7 @@ struct v4l2_queryctrl | |||
821 | }; | 795 | }; |
822 | 796 | ||
823 | /* Used in the VIDIOC_QUERYMENU ioctl for querying menu items */ | 797 | /* Used in the VIDIOC_QUERYMENU ioctl for querying menu items */ |
824 | struct v4l2_querymenu | 798 | struct v4l2_querymenu { |
825 | { | ||
826 | __u32 id; | 799 | __u32 id; |
827 | __u32 index; | 800 | __u32 index; |
828 | __u8 name[32]; /* Whatever */ | 801 | __u8 name[32]; /* Whatever */ |
@@ -1104,8 +1077,7 @@ enum v4l2_exposure_auto_type { | |||
1104 | /* | 1077 | /* |
1105 | * T U N I N G | 1078 | * T U N I N G |
1106 | */ | 1079 | */ |
1107 | struct v4l2_tuner | 1080 | struct v4l2_tuner { |
1108 | { | ||
1109 | __u32 index; | 1081 | __u32 index; |
1110 | __u8 name[32]; | 1082 | __u8 name[32]; |
1111 | enum v4l2_tuner_type type; | 1083 | enum v4l2_tuner_type type; |
@@ -1119,8 +1091,7 @@ struct v4l2_tuner | |||
1119 | __u32 reserved[4]; | 1091 | __u32 reserved[4]; |
1120 | }; | 1092 | }; |
1121 | 1093 | ||
1122 | struct v4l2_modulator | 1094 | struct v4l2_modulator { |
1123 | { | ||
1124 | __u32 index; | 1095 | __u32 index; |
1125 | __u8 name[32]; | 1096 | __u8 name[32]; |
1126 | __u32 capability; | 1097 | __u32 capability; |
@@ -1153,8 +1124,7 @@ struct v4l2_modulator | |||
1153 | #define V4L2_TUNER_MODE_LANG1 0x0003 | 1124 | #define V4L2_TUNER_MODE_LANG1 0x0003 |
1154 | #define V4L2_TUNER_MODE_LANG1_LANG2 0x0004 | 1125 | #define V4L2_TUNER_MODE_LANG1_LANG2 0x0004 |
1155 | 1126 | ||
1156 | struct v4l2_frequency | 1127 | struct v4l2_frequency { |
1157 | { | ||
1158 | __u32 tuner; | 1128 | __u32 tuner; |
1159 | enum v4l2_tuner_type type; | 1129 | enum v4l2_tuner_type type; |
1160 | __u32 frequency; | 1130 | __u32 frequency; |
@@ -1172,8 +1142,7 @@ struct v4l2_hw_freq_seek { | |||
1172 | /* | 1142 | /* |
1173 | * A U D I O | 1143 | * A U D I O |
1174 | */ | 1144 | */ |
1175 | struct v4l2_audio | 1145 | struct v4l2_audio { |
1176 | { | ||
1177 | __u32 index; | 1146 | __u32 index; |
1178 | __u8 name[32]; | 1147 | __u8 name[32]; |
1179 | __u32 capability; | 1148 | __u32 capability; |
@@ -1188,8 +1157,7 @@ struct v4l2_audio | |||
1188 | /* Flags for the 'mode' field */ | 1157 | /* Flags for the 'mode' field */ |
1189 | #define V4L2_AUDMODE_AVL 0x00001 | 1158 | #define V4L2_AUDMODE_AVL 0x00001 |
1190 | 1159 | ||
1191 | struct v4l2_audioout | 1160 | struct v4l2_audioout { |
1192 | { | ||
1193 | __u32 index; | 1161 | __u32 index; |
1194 | __u8 name[32]; | 1162 | __u8 name[32]; |
1195 | __u32 capability; | 1163 | __u32 capability; |
@@ -1253,8 +1221,7 @@ struct v4l2_encoder_cmd { | |||
1253 | */ | 1221 | */ |
1254 | 1222 | ||
1255 | /* Raw VBI */ | 1223 | /* Raw VBI */ |
1256 | struct v4l2_vbi_format | 1224 | struct v4l2_vbi_format { |
1257 | { | ||
1258 | __u32 sampling_rate; /* in 1 Hz */ | 1225 | __u32 sampling_rate; /* in 1 Hz */ |
1259 | __u32 offset; | 1226 | __u32 offset; |
1260 | __u32 samples_per_line; | 1227 | __u32 samples_per_line; |
@@ -1266,8 +1233,8 @@ struct v4l2_vbi_format | |||
1266 | }; | 1233 | }; |
1267 | 1234 | ||
1268 | /* VBI flags */ | 1235 | /* VBI flags */ |
1269 | #define V4L2_VBI_UNSYNC (1<< 0) | 1236 | #define V4L2_VBI_UNSYNC (1 << 0) |
1270 | #define V4L2_VBI_INTERLACED (1<< 1) | 1237 | #define V4L2_VBI_INTERLACED (1 << 1) |
1271 | 1238 | ||
1272 | /* Sliced VBI | 1239 | /* Sliced VBI |
1273 | * | 1240 | * |
@@ -1276,8 +1243,7 @@ struct v4l2_vbi_format | |||
1276 | * notice in the definitive implementation. | 1243 | * notice in the definitive implementation. |
1277 | */ | 1244 | */ |
1278 | 1245 | ||
1279 | struct v4l2_sliced_vbi_format | 1246 | struct v4l2_sliced_vbi_format { |
1280 | { | ||
1281 | __u16 service_set; | 1247 | __u16 service_set; |
1282 | /* service_lines[0][...] specifies lines 0-23 (1-23 used) of the first field | 1248 | /* service_lines[0][...] specifies lines 0-23 (1-23 used) of the first field |
1283 | service_lines[1][...] specifies lines 0-23 (1-23 used) of the second field | 1249 | service_lines[1][...] specifies lines 0-23 (1-23 used) of the second field |
@@ -1301,8 +1267,7 @@ struct v4l2_sliced_vbi_format | |||
1301 | #define V4L2_SLICED_VBI_525 (V4L2_SLICED_CAPTION_525) | 1267 | #define V4L2_SLICED_VBI_525 (V4L2_SLICED_CAPTION_525) |
1302 | #define V4L2_SLICED_VBI_625 (V4L2_SLICED_TELETEXT_B | V4L2_SLICED_VPS | V4L2_SLICED_WSS_625) | 1268 | #define V4L2_SLICED_VBI_625 (V4L2_SLICED_TELETEXT_B | V4L2_SLICED_VPS | V4L2_SLICED_WSS_625) |
1303 | 1269 | ||
1304 | struct v4l2_sliced_vbi_cap | 1270 | struct v4l2_sliced_vbi_cap { |
1305 | { | ||
1306 | __u16 service_set; | 1271 | __u16 service_set; |
1307 | /* service_lines[0][...] specifies lines 0-23 (1-23 used) of the first field | 1272 | /* service_lines[0][...] specifies lines 0-23 (1-23 used) of the first field |
1308 | service_lines[1][...] specifies lines 0-23 (1-23 used) of the second field | 1273 | service_lines[1][...] specifies lines 0-23 (1-23 used) of the second field |
@@ -1313,8 +1278,7 @@ struct v4l2_sliced_vbi_cap | |||
1313 | __u32 reserved[3]; /* must be 0 */ | 1278 | __u32 reserved[3]; /* must be 0 */ |
1314 | }; | 1279 | }; |
1315 | 1280 | ||
1316 | struct v4l2_sliced_vbi_data | 1281 | struct v4l2_sliced_vbi_data { |
1317 | { | ||
1318 | __u32 id; | 1282 | __u32 id; |
1319 | __u32 field; /* 0: first field, 1: second field */ | 1283 | __u32 field; /* 0: first field, 1: second field */ |
1320 | __u32 line; /* 1-23 */ | 1284 | __u32 line; /* 1-23 */ |
@@ -1328,27 +1292,23 @@ struct v4l2_sliced_vbi_data | |||
1328 | 1292 | ||
1329 | /* Stream data format | 1293 | /* Stream data format |
1330 | */ | 1294 | */ |
1331 | struct v4l2_format | 1295 | struct v4l2_format { |
1332 | { | ||
1333 | enum v4l2_buf_type type; | 1296 | enum v4l2_buf_type type; |
1334 | union | 1297 | union { |
1335 | { | 1298 | struct v4l2_pix_format pix; /* V4L2_BUF_TYPE_VIDEO_CAPTURE */ |
1336 | struct v4l2_pix_format pix; // V4L2_BUF_TYPE_VIDEO_CAPTURE | 1299 | struct v4l2_window win; /* V4L2_BUF_TYPE_VIDEO_OVERLAY */ |
1337 | struct v4l2_window win; // V4L2_BUF_TYPE_VIDEO_OVERLAY | 1300 | struct v4l2_vbi_format vbi; /* V4L2_BUF_TYPE_VBI_CAPTURE */ |
1338 | struct v4l2_vbi_format vbi; // V4L2_BUF_TYPE_VBI_CAPTURE | 1301 | struct v4l2_sliced_vbi_format sliced; /* V4L2_BUF_TYPE_SLICED_VBI_CAPTURE */ |
1339 | struct v4l2_sliced_vbi_format sliced; // V4L2_BUF_TYPE_SLICED_VBI_CAPTURE | 1302 | __u8 raw_data[200]; /* user-defined */ |
1340 | __u8 raw_data[200]; // user-defined | ||
1341 | } fmt; | 1303 | } fmt; |
1342 | }; | 1304 | }; |
1343 | 1305 | ||
1344 | 1306 | ||
1345 | /* Stream type-dependent parameters | 1307 | /* Stream type-dependent parameters |
1346 | */ | 1308 | */ |
1347 | struct v4l2_streamparm | 1309 | struct v4l2_streamparm { |
1348 | { | ||
1349 | enum v4l2_buf_type type; | 1310 | enum v4l2_buf_type type; |
1350 | union | 1311 | union { |
1351 | { | ||
1352 | struct v4l2_captureparm capture; | 1312 | struct v4l2_captureparm capture; |
1353 | struct v4l2_outputparm output; | 1313 | struct v4l2_outputparm output; |
1354 | __u8 raw_data[200]; /* user-defined */ | 1314 | __u8 raw_data[200]; /* user-defined */ |
@@ -1386,92 +1346,86 @@ struct v4l2_chip_ident { | |||
1386 | * I O C T L C O D E S F O R V I D E O D E V I C E S | 1346 | * I O C T L C O D E S F O R V I D E O D E V I C E S |
1387 | * | 1347 | * |
1388 | */ | 1348 | */ |
1389 | #define VIDIOC_QUERYCAP _IOR ('V', 0, struct v4l2_capability) | 1349 | #define VIDIOC_QUERYCAP _IOR('V', 0, struct v4l2_capability) |
1390 | #define VIDIOC_RESERVED _IO ('V', 1) | 1350 | #define VIDIOC_RESERVED _IO('V', 1) |
1391 | #define VIDIOC_ENUM_FMT _IOWR ('V', 2, struct v4l2_fmtdesc) | 1351 | #define VIDIOC_ENUM_FMT _IOWR('V', 2, struct v4l2_fmtdesc) |
1392 | #define VIDIOC_G_FMT _IOWR ('V', 4, struct v4l2_format) | 1352 | #define VIDIOC_G_FMT _IOWR('V', 4, struct v4l2_format) |
1393 | #define VIDIOC_S_FMT _IOWR ('V', 5, struct v4l2_format) | 1353 | #define VIDIOC_S_FMT _IOWR('V', 5, struct v4l2_format) |
1394 | #define VIDIOC_REQBUFS _IOWR ('V', 8, struct v4l2_requestbuffers) | 1354 | #define VIDIOC_REQBUFS _IOWR('V', 8, struct v4l2_requestbuffers) |
1395 | #define VIDIOC_QUERYBUF _IOWR ('V', 9, struct v4l2_buffer) | 1355 | #define VIDIOC_QUERYBUF _IOWR('V', 9, struct v4l2_buffer) |
1396 | #define VIDIOC_G_FBUF _IOR ('V', 10, struct v4l2_framebuffer) | 1356 | #define VIDIOC_G_FBUF _IOR('V', 10, struct v4l2_framebuffer) |
1397 | #define VIDIOC_S_FBUF _IOW ('V', 11, struct v4l2_framebuffer) | 1357 | #define VIDIOC_S_FBUF _IOW('V', 11, struct v4l2_framebuffer) |
1398 | #define VIDIOC_OVERLAY _IOW ('V', 14, int) | 1358 | #define VIDIOC_OVERLAY _IOW('V', 14, int) |
1399 | #define VIDIOC_QBUF _IOWR ('V', 15, struct v4l2_buffer) | 1359 | #define VIDIOC_QBUF _IOWR('V', 15, struct v4l2_buffer) |
1400 | #define VIDIOC_DQBUF _IOWR ('V', 17, struct v4l2_buffer) | 1360 | #define VIDIOC_DQBUF _IOWR('V', 17, struct v4l2_buffer) |
1401 | #define VIDIOC_STREAMON _IOW ('V', 18, int) | 1361 | #define VIDIOC_STREAMON _IOW('V', 18, int) |
1402 | #define VIDIOC_STREAMOFF _IOW ('V', 19, int) | 1362 | #define VIDIOC_STREAMOFF _IOW('V', 19, int) |
1403 | #define VIDIOC_G_PARM _IOWR ('V', 21, struct v4l2_streamparm) | 1363 | #define VIDIOC_G_PARM _IOWR('V', 21, struct v4l2_streamparm) |
1404 | #define VIDIOC_S_PARM _IOWR ('V', 22, struct v4l2_streamparm) | 1364 | #define VIDIOC_S_PARM _IOWR('V', 22, struct v4l2_streamparm) |
1405 | #define VIDIOC_G_STD _IOR ('V', 23, v4l2_std_id) | 1365 | #define VIDIOC_G_STD _IOR('V', 23, v4l2_std_id) |
1406 | #define VIDIOC_S_STD _IOW ('V', 24, v4l2_std_id) | 1366 | #define VIDIOC_S_STD _IOW('V', 24, v4l2_std_id) |
1407 | #define VIDIOC_ENUMSTD _IOWR ('V', 25, struct v4l2_standard) | 1367 | #define VIDIOC_ENUMSTD _IOWR('V', 25, struct v4l2_standard) |
1408 | #define VIDIOC_ENUMINPUT _IOWR ('V', 26, struct v4l2_input) | 1368 | #define VIDIOC_ENUMINPUT _IOWR('V', 26, struct v4l2_input) |
1409 | #define VIDIOC_G_CTRL _IOWR ('V', 27, struct v4l2_control) | 1369 | #define VIDIOC_G_CTRL _IOWR('V', 27, struct v4l2_control) |
1410 | #define VIDIOC_S_CTRL _IOWR ('V', 28, struct v4l2_control) | 1370 | #define VIDIOC_S_CTRL _IOWR('V', 28, struct v4l2_control) |
1411 | #define VIDIOC_G_TUNER _IOWR ('V', 29, struct v4l2_tuner) | 1371 | #define VIDIOC_G_TUNER _IOWR('V', 29, struct v4l2_tuner) |
1412 | #define VIDIOC_S_TUNER _IOW ('V', 30, struct v4l2_tuner) | 1372 | #define VIDIOC_S_TUNER _IOW('V', 30, struct v4l2_tuner) |
1413 | #define VIDIOC_G_AUDIO _IOR ('V', 33, struct v4l2_audio) | 1373 | #define VIDIOC_G_AUDIO _IOR('V', 33, struct v4l2_audio) |
1414 | #define VIDIOC_S_AUDIO _IOW ('V', 34, struct v4l2_audio) | 1374 | #define VIDIOC_S_AUDIO _IOW('V', 34, struct v4l2_audio) |
1415 | #define VIDIOC_QUERYCTRL _IOWR ('V', 36, struct v4l2_queryctrl) | 1375 | #define VIDIOC_QUERYCTRL _IOWR('V', 36, struct v4l2_queryctrl) |
1416 | #define VIDIOC_QUERYMENU _IOWR ('V', 37, struct v4l2_querymenu) | 1376 | #define VIDIOC_QUERYMENU _IOWR('V', 37, struct v4l2_querymenu) |
1417 | #define VIDIOC_G_INPUT _IOR ('V', 38, int) | 1377 | #define VIDIOC_G_INPUT _IOR('V', 38, int) |
1418 | #define VIDIOC_S_INPUT _IOWR ('V', 39, int) | 1378 | #define VIDIOC_S_INPUT _IOWR('V', 39, int) |
1419 | #define VIDIOC_G_OUTPUT _IOR ('V', 46, int) | 1379 | #define VIDIOC_G_OUTPUT _IOR('V', 46, int) |
1420 | #define VIDIOC_S_OUTPUT _IOWR ('V', 47, int) | 1380 | #define VIDIOC_S_OUTPUT _IOWR('V', 47, int) |
1421 | #define VIDIOC_ENUMOUTPUT _IOWR ('V', 48, struct v4l2_output) | 1381 | #define VIDIOC_ENUMOUTPUT _IOWR('V', 48, struct v4l2_output) |
1422 | #define VIDIOC_G_AUDOUT _IOR ('V', 49, struct v4l2_audioout) | 1382 | #define VIDIOC_G_AUDOUT _IOR('V', 49, struct v4l2_audioout) |
1423 | #define VIDIOC_S_AUDOUT _IOW ('V', 50, struct v4l2_audioout) | 1383 | #define VIDIOC_S_AUDOUT _IOW('V', 50, struct v4l2_audioout) |
1424 | #define VIDIOC_G_MODULATOR _IOWR ('V', 54, struct v4l2_modulator) | 1384 | #define VIDIOC_G_MODULATOR _IOWR('V', 54, struct v4l2_modulator) |
1425 | #define VIDIOC_S_MODULATOR _IOW ('V', 55, struct v4l2_modulator) | 1385 | #define VIDIOC_S_MODULATOR _IOW('V', 55, struct v4l2_modulator) |
1426 | #define VIDIOC_G_FREQUENCY _IOWR ('V', 56, struct v4l2_frequency) | 1386 | #define VIDIOC_G_FREQUENCY _IOWR('V', 56, struct v4l2_frequency) |
1427 | #define VIDIOC_S_FREQUENCY _IOW ('V', 57, struct v4l2_frequency) | 1387 | #define VIDIOC_S_FREQUENCY _IOW('V', 57, struct v4l2_frequency) |
1428 | #define VIDIOC_CROPCAP _IOWR ('V', 58, struct v4l2_cropcap) | 1388 | #define VIDIOC_CROPCAP _IOWR('V', 58, struct v4l2_cropcap) |
1429 | #define VIDIOC_G_CROP _IOWR ('V', 59, struct v4l2_crop) | 1389 | #define VIDIOC_G_CROP _IOWR('V', 59, struct v4l2_crop) |
1430 | #define VIDIOC_S_CROP _IOW ('V', 60, struct v4l2_crop) | 1390 | #define VIDIOC_S_CROP _IOW('V', 60, struct v4l2_crop) |
1431 | #define VIDIOC_G_JPEGCOMP _IOR ('V', 61, struct v4l2_jpegcompression) | 1391 | #define VIDIOC_G_JPEGCOMP _IOR('V', 61, struct v4l2_jpegcompression) |
1432 | #define VIDIOC_S_JPEGCOMP _IOW ('V', 62, struct v4l2_jpegcompression) | 1392 | #define VIDIOC_S_JPEGCOMP _IOW('V', 62, struct v4l2_jpegcompression) |
1433 | #define VIDIOC_QUERYSTD _IOR ('V', 63, v4l2_std_id) | 1393 | #define VIDIOC_QUERYSTD _IOR('V', 63, v4l2_std_id) |
1434 | #define VIDIOC_TRY_FMT _IOWR ('V', 64, struct v4l2_format) | 1394 | #define VIDIOC_TRY_FMT _IOWR('V', 64, struct v4l2_format) |
1435 | #define VIDIOC_ENUMAUDIO _IOWR ('V', 65, struct v4l2_audio) | 1395 | #define VIDIOC_ENUMAUDIO _IOWR('V', 65, struct v4l2_audio) |
1436 | #define VIDIOC_ENUMAUDOUT _IOWR ('V', 66, struct v4l2_audioout) | 1396 | #define VIDIOC_ENUMAUDOUT _IOWR('V', 66, struct v4l2_audioout) |
1437 | #define VIDIOC_G_PRIORITY _IOR ('V', 67, enum v4l2_priority) | 1397 | #define VIDIOC_G_PRIORITY _IOR('V', 67, enum v4l2_priority) |
1438 | #define VIDIOC_S_PRIORITY _IOW ('V', 68, enum v4l2_priority) | 1398 | #define VIDIOC_S_PRIORITY _IOW('V', 68, enum v4l2_priority) |
1439 | #define VIDIOC_G_SLICED_VBI_CAP _IOWR ('V', 69, struct v4l2_sliced_vbi_cap) | 1399 | #define VIDIOC_G_SLICED_VBI_CAP _IOWR('V', 69, struct v4l2_sliced_vbi_cap) |
1440 | #define VIDIOC_LOG_STATUS _IO ('V', 70) | 1400 | #define VIDIOC_LOG_STATUS _IO('V', 70) |
1441 | #define VIDIOC_G_EXT_CTRLS _IOWR ('V', 71, struct v4l2_ext_controls) | 1401 | #define VIDIOC_G_EXT_CTRLS _IOWR('V', 71, struct v4l2_ext_controls) |
1442 | #define VIDIOC_S_EXT_CTRLS _IOWR ('V', 72, struct v4l2_ext_controls) | 1402 | #define VIDIOC_S_EXT_CTRLS _IOWR('V', 72, struct v4l2_ext_controls) |
1443 | #define VIDIOC_TRY_EXT_CTRLS _IOWR ('V', 73, struct v4l2_ext_controls) | 1403 | #define VIDIOC_TRY_EXT_CTRLS _IOWR('V', 73, struct v4l2_ext_controls) |
1444 | #if 1 | 1404 | #if 1 |
1445 | #define VIDIOC_ENUM_FRAMESIZES _IOWR ('V', 74, struct v4l2_frmsizeenum) | 1405 | #define VIDIOC_ENUM_FRAMESIZES _IOWR('V', 74, struct v4l2_frmsizeenum) |
1446 | #define VIDIOC_ENUM_FRAMEINTERVALS _IOWR ('V', 75, struct v4l2_frmivalenum) | 1406 | #define VIDIOC_ENUM_FRAMEINTERVALS _IOWR('V', 75, struct v4l2_frmivalenum) |
1447 | #define VIDIOC_G_ENC_INDEX _IOR ('V', 76, struct v4l2_enc_idx) | 1407 | #define VIDIOC_G_ENC_INDEX _IOR('V', 76, struct v4l2_enc_idx) |
1448 | #define VIDIOC_ENCODER_CMD _IOWR ('V', 77, struct v4l2_encoder_cmd) | 1408 | #define VIDIOC_ENCODER_CMD _IOWR('V', 77, struct v4l2_encoder_cmd) |
1449 | #define VIDIOC_TRY_ENCODER_CMD _IOWR ('V', 78, struct v4l2_encoder_cmd) | 1409 | #define VIDIOC_TRY_ENCODER_CMD _IOWR('V', 78, struct v4l2_encoder_cmd) |
1450 | 1410 | ||
1451 | /* Experimental, only implemented if CONFIG_VIDEO_ADV_DEBUG is defined */ | 1411 | /* Experimental, only implemented if CONFIG_VIDEO_ADV_DEBUG is defined */ |
1452 | #define VIDIOC_DBG_S_REGISTER _IOW ('V', 79, struct v4l2_register) | 1412 | #define VIDIOC_DBG_S_REGISTER _IOW('V', 79, struct v4l2_register) |
1453 | #define VIDIOC_DBG_G_REGISTER _IOWR ('V', 80, struct v4l2_register) | 1413 | #define VIDIOC_DBG_G_REGISTER _IOWR('V', 80, struct v4l2_register) |
1454 | 1414 | ||
1455 | #define VIDIOC_G_CHIP_IDENT _IOWR ('V', 81, struct v4l2_chip_ident) | 1415 | #define VIDIOC_G_CHIP_IDENT _IOWR('V', 81, struct v4l2_chip_ident) |
1456 | #endif | 1416 | #endif |
1457 | #define VIDIOC_S_HW_FREQ_SEEK _IOW ('V', 82, struct v4l2_hw_freq_seek) | 1417 | #define VIDIOC_S_HW_FREQ_SEEK _IOW('V', 82, struct v4l2_hw_freq_seek) |
1458 | 1418 | ||
1459 | #ifdef __OLD_VIDIOC_ | 1419 | #ifdef __OLD_VIDIOC_ |
1460 | /* for compatibility, will go away some day */ | 1420 | /* for compatibility, will go away some day */ |
1461 | #define VIDIOC_OVERLAY_OLD _IOWR ('V', 14, int) | 1421 | #define VIDIOC_OVERLAY_OLD _IOWR('V', 14, int) |
1462 | #define VIDIOC_S_PARM_OLD _IOW ('V', 22, struct v4l2_streamparm) | 1422 | #define VIDIOC_S_PARM_OLD _IOW('V', 22, struct v4l2_streamparm) |
1463 | #define VIDIOC_S_CTRL_OLD _IOW ('V', 28, struct v4l2_control) | 1423 | #define VIDIOC_S_CTRL_OLD _IOW('V', 28, struct v4l2_control) |
1464 | #define VIDIOC_G_AUDIO_OLD _IOWR ('V', 33, struct v4l2_audio) | 1424 | #define VIDIOC_G_AUDIO_OLD _IOWR('V', 33, struct v4l2_audio) |
1465 | #define VIDIOC_G_AUDOUT_OLD _IOWR ('V', 49, struct v4l2_audioout) | 1425 | #define VIDIOC_G_AUDOUT_OLD _IOWR('V', 49, struct v4l2_audioout) |
1466 | #define VIDIOC_CROPCAP_OLD _IOR ('V', 58, struct v4l2_cropcap) | 1426 | #define VIDIOC_CROPCAP_OLD _IOR('V', 58, struct v4l2_cropcap) |
1467 | #endif | 1427 | #endif |
1468 | 1428 | ||
1469 | #define BASE_VIDIOC_PRIVATE 192 /* 192-255 are private */ | 1429 | #define BASE_VIDIOC_PRIVATE 192 /* 192-255 are private */ |
1470 | 1430 | ||
1471 | #endif /* __LINUX_VIDEODEV2_H */ | 1431 | #endif /* __LINUX_VIDEODEV2_H */ |
1472 | |||
1473 | /* | ||
1474 | * Local variables: | ||
1475 | * c-basic-offset: 8 | ||
1476 | * End: | ||
1477 | */ | ||