Go to the documentation of this file.
56 #ifndef _UAPI__LINUX_VIDEODEV2_H
57 #define _UAPI__LINUX_VIDEODEV2_H
62 #include <linux/compiler.h>
64 #include <linux/types.h>
72 #define VIDEO_MAX_FRAME 32
73 #define VIDEO_MAX_PLANES 8
80 #define VID_TYPE_CAPTURE 1
81 #define VID_TYPE_TUNER 2
82 #define VID_TYPE_TELETEXT 4
83 #define VID_TYPE_OVERLAY 8
84 #define VID_TYPE_CHROMAKEY 16
85 #define VID_TYPE_CLIPPING 32
86 #define VID_TYPE_FRAMERAM 64
87 #define VID_TYPE_SCALES 128
88 #define VID_TYPE_MONOCHROME 256
89 #define VID_TYPE_SUBCAPTURE 512
90 #define VID_TYPE_MPEG_DECODER 1024
91 #define VID_TYPE_MPEG_ENCODER 2048
92 #define VID_TYPE_MJPEG_DECODER 4096
93 #define VID_TYPE_MJPEG_ENCODER 8192
101 #define v4l2_fourcc(a, b, c, d)\
102 ((__u32)(a) | ((__u32)(b) << 8) | ((__u32)(c) << 16) | ((__u32)(d) << 24))
128 #define V4L2_FIELD_HAS_TOP(field) \
129 ((field) == V4L2_FIELD_TOP ||\
130 (field) == V4L2_FIELD_INTERLACED ||\
131 (field) == V4L2_FIELD_INTERLACED_TB ||\
132 (field) == V4L2_FIELD_INTERLACED_BT ||\
133 (field) == V4L2_FIELD_SEQ_TB ||\
134 (field) == V4L2_FIELD_SEQ_BT)
135 #define V4L2_FIELD_HAS_BOTTOM(field) \
136 ((field) == V4L2_FIELD_BOTTOM ||\
137 (field) == V4L2_FIELD_INTERLACED ||\
138 (field) == V4L2_FIELD_INTERLACED_TB ||\
139 (field) == V4L2_FIELD_INTERLACED_BT ||\
140 (field) == V4L2_FIELD_SEQ_TB ||\
141 (field) == V4L2_FIELD_SEQ_BT)
142 #define V4L2_FIELD_HAS_BOTH(field) \
143 ((field) == V4L2_FIELD_INTERLACED ||\
144 (field) == V4L2_FIELD_INTERLACED_TB ||\
145 (field) == V4L2_FIELD_INTERLACED_BT ||\
146 (field) == V4L2_FIELD_SEQ_TB ||\
147 (field) == V4L2_FIELD_SEQ_BT)
167 #define V4L2_TYPE_IS_MULTIPLANAR(type) \
168 ((type) == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE \
169 || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE)
171 #define V4L2_TYPE_IS_OUTPUT(type) \
172 ((type) == V4L2_BUF_TYPE_VIDEO_OUTPUT \
173 || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE \
174 || (type) == V4L2_BUF_TYPE_VIDEO_OVERLAY \
175 || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY \
176 || (type) == V4L2_BUF_TYPE_VBI_OUTPUT \
177 || (type) == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT)
261 #define V4L2_CAP_VIDEO_CAPTURE 0x00000001
262 #define V4L2_CAP_VIDEO_OUTPUT 0x00000002
263 #define V4L2_CAP_VIDEO_OVERLAY 0x00000004
264 #define V4L2_CAP_VBI_CAPTURE 0x00000010
265 #define V4L2_CAP_VBI_OUTPUT 0x00000020
266 #define V4L2_CAP_SLICED_VBI_CAPTURE 0x00000040
267 #define V4L2_CAP_SLICED_VBI_OUTPUT 0x00000080
268 #define V4L2_CAP_RDS_CAPTURE 0x00000100
269 #define V4L2_CAP_VIDEO_OUTPUT_OVERLAY 0x00000200
270 #define V4L2_CAP_HW_FREQ_SEEK 0x00000400
271 #define V4L2_CAP_RDS_OUTPUT 0x00000800
274 #define V4L2_CAP_VIDEO_CAPTURE_MPLANE 0x00001000
276 #define V4L2_CAP_VIDEO_OUTPUT_MPLANE 0x00002000
278 #define V4L2_CAP_VIDEO_M2M_MPLANE 0x00004000
280 #define V4L2_CAP_VIDEO_M2M 0x00008000
282 #define V4L2_CAP_TUNER 0x00010000
283 #define V4L2_CAP_AUDIO 0x00020000
284 #define V4L2_CAP_RADIO 0x00040000
285 #define V4L2_CAP_MODULATOR 0x00080000
287 #define V4L2_CAP_READWRITE 0x01000000
288 #define V4L2_CAP_ASYNCIO 0x02000000
289 #define V4L2_CAP_STREAMING 0x04000000
291 #define V4L2_CAP_DEVICE_CAPS 0x80000000
310 #define V4L2_PIX_FMT_RGB332 v4l2_fourcc('R', 'G', 'B', '1')
311 #define V4L2_PIX_FMT_RGB444 v4l2_fourcc('R', '4', '4', '4')
312 #define V4L2_PIX_FMT_RGB555 v4l2_fourcc('R', 'G', 'B', 'O')
313 #define V4L2_PIX_FMT_RGB565 v4l2_fourcc('R', 'G', 'B', 'P')
314 #define V4L2_PIX_FMT_RGB555X v4l2_fourcc('R', 'G', 'B', 'Q')
315 #define V4L2_PIX_FMT_RGB565X v4l2_fourcc('R', 'G', 'B', 'R')
316 #define V4L2_PIX_FMT_BGR666 v4l2_fourcc('B', 'G', 'R', 'H')
317 #define V4L2_PIX_FMT_BGR24 v4l2_fourcc('B', 'G', 'R', '3')
318 #define V4L2_PIX_FMT_RGB24 v4l2_fourcc('R', 'G', 'B', '3')
319 #define V4L2_PIX_FMT_BGR32 v4l2_fourcc('B', 'G', 'R', '4')
320 #define V4L2_PIX_FMT_RGB32 v4l2_fourcc('R', 'G', 'B', '4')
323 #define V4L2_PIX_FMT_GREY v4l2_fourcc('G', 'R', 'E', 'Y')
324 #define V4L2_PIX_FMT_Y4 v4l2_fourcc('Y', '0', '4', ' ')
325 #define V4L2_PIX_FMT_Y6 v4l2_fourcc('Y', '0', '6', ' ')
326 #define V4L2_PIX_FMT_Y10 v4l2_fourcc('Y', '1', '0', ' ')
327 #define V4L2_PIX_FMT_Y12 v4l2_fourcc('Y', '1', '2', ' ')
328 #define V4L2_PIX_FMT_Y16 v4l2_fourcc('Y', '1', '6', ' ')
331 #define V4L2_PIX_FMT_Y10BPACK v4l2_fourcc('Y', '1', '0', 'B')
334 #define V4L2_PIX_FMT_PAL8 v4l2_fourcc('P', 'A', 'L', '8')
337 #define V4L2_PIX_FMT_YVU410 v4l2_fourcc('Y', 'V', 'U', '9')
338 #define V4L2_PIX_FMT_YVU420 v4l2_fourcc('Y', 'V', '1', '2')
339 #define V4L2_PIX_FMT_YUYV v4l2_fourcc('Y', 'U', 'Y', 'V')
340 #define V4L2_PIX_FMT_YYUV v4l2_fourcc('Y', 'Y', 'U', 'V')
341 #define V4L2_PIX_FMT_YVYU v4l2_fourcc('Y', 'V', 'Y', 'U')
342 #define V4L2_PIX_FMT_UYVY v4l2_fourcc('U', 'Y', 'V', 'Y')
343 #define V4L2_PIX_FMT_VYUY v4l2_fourcc('V', 'Y', 'U', 'Y')
344 #define V4L2_PIX_FMT_YUV422P v4l2_fourcc('4', '2', '2', 'P')
345 #define V4L2_PIX_FMT_YUV411P v4l2_fourcc('4', '1', '1', 'P')
346 #define V4L2_PIX_FMT_Y41P v4l2_fourcc('Y', '4', '1', 'P')
347 #define V4L2_PIX_FMT_YUV444 v4l2_fourcc('Y', '4', '4', '4')
348 #define V4L2_PIX_FMT_YUV555 v4l2_fourcc('Y', 'U', 'V', 'O')
349 #define V4L2_PIX_FMT_YUV565 v4l2_fourcc('Y', 'U', 'V', 'P')
350 #define V4L2_PIX_FMT_YUV32 v4l2_fourcc('Y', 'U', 'V', '4')
351 #define V4L2_PIX_FMT_YUV410 v4l2_fourcc('Y', 'U', 'V', '9')
352 #define V4L2_PIX_FMT_YUV420 v4l2_fourcc('Y', 'U', '1', '2')
353 #define V4L2_PIX_FMT_HI240 v4l2_fourcc('H', 'I', '2', '4')
354 #define V4L2_PIX_FMT_HM12 v4l2_fourcc('H', 'M', '1', '2')
355 #define V4L2_PIX_FMT_M420 v4l2_fourcc('M', '4', '2', '0')
358 #define V4L2_PIX_FMT_NV12 v4l2_fourcc('N', 'V', '1', '2')
359 #define V4L2_PIX_FMT_NV21 v4l2_fourcc('N', 'V', '2', '1')
360 #define V4L2_PIX_FMT_NV16 v4l2_fourcc('N', 'V', '1', '6')
361 #define V4L2_PIX_FMT_NV61 v4l2_fourcc('N', 'V', '6', '1')
362 #define V4L2_PIX_FMT_NV24 v4l2_fourcc('N', 'V', '2', '4')
363 #define V4L2_PIX_FMT_NV42 v4l2_fourcc('N', 'V', '4', '2')
366 #define V4L2_PIX_FMT_NV12M v4l2_fourcc('N', 'M', '1', '2')
367 #define V4L2_PIX_FMT_NV21M v4l2_fourcc('N', 'M', '2', '1')
368 #define V4L2_PIX_FMT_NV12MT v4l2_fourcc('T', 'M', '1', '2')
369 #define V4L2_PIX_FMT_NV12MT_16X16 v4l2_fourcc('V', 'M', '1', '2')
372 #define V4L2_PIX_FMT_YUV420M v4l2_fourcc('Y', 'M', '1', '2')
373 #define V4L2_PIX_FMT_YVU420M v4l2_fourcc('Y', 'M', '2', '1')
376 #define V4L2_PIX_FMT_SBGGR8 v4l2_fourcc('B', 'A', '8', '1')
377 #define V4L2_PIX_FMT_SGBRG8 v4l2_fourcc('G', 'B', 'R', 'G')
378 #define V4L2_PIX_FMT_SGRBG8 v4l2_fourcc('G', 'R', 'B', 'G')
379 #define V4L2_PIX_FMT_SRGGB8 v4l2_fourcc('R', 'G', 'G', 'B')
380 #define V4L2_PIX_FMT_SBGGR10 v4l2_fourcc('B', 'G', '1', '0')
381 #define V4L2_PIX_FMT_SGBRG10 v4l2_fourcc('G', 'B', '1', '0')
382 #define V4L2_PIX_FMT_SGRBG10 v4l2_fourcc('B', 'A', '1', '0')
383 #define V4L2_PIX_FMT_SRGGB10 v4l2_fourcc('R', 'G', '1', '0')
384 #define V4L2_PIX_FMT_SBGGR12 v4l2_fourcc('B', 'G', '1', '2')
385 #define V4L2_PIX_FMT_SGBRG12 v4l2_fourcc('G', 'B', '1', '2')
386 #define V4L2_PIX_FMT_SGRBG12 v4l2_fourcc('B', 'A', '1', '2')
387 #define V4L2_PIX_FMT_SRGGB12 v4l2_fourcc('R', 'G', '1', '2')
389 #define V4L2_PIX_FMT_SBGGR10DPCM8 v4l2_fourcc('b', 'B', 'A', '8')
390 #define V4L2_PIX_FMT_SGBRG10DPCM8 v4l2_fourcc('b', 'G', 'A', '8')
391 #define V4L2_PIX_FMT_SGRBG10DPCM8 v4l2_fourcc('B', 'D', '1', '0')
392 #define V4L2_PIX_FMT_SRGGB10DPCM8 v4l2_fourcc('b', 'R', 'A', '8')
397 #define V4L2_PIX_FMT_SBGGR16 v4l2_fourcc('B', 'Y', 'R', '2')
400 #define V4L2_PIX_FMT_MJPEG v4l2_fourcc('M', 'J', 'P', 'G')
401 #define V4L2_PIX_FMT_JPEG v4l2_fourcc('J', 'P', 'E', 'G')
402 #define V4L2_PIX_FMT_DV v4l2_fourcc('d', 'v', 's', 'd')
403 #define V4L2_PIX_FMT_MPEG v4l2_fourcc('M', 'P', 'E', 'G')
404 #define V4L2_PIX_FMT_H264 v4l2_fourcc('H', '2', '6', '4')
405 #define V4L2_PIX_FMT_H264_NO_SC v4l2_fourcc('A', 'V', 'C', '1')
406 #define V4L2_PIX_FMT_H264_MVC v4l2_fourcc('M', '2', '6', '4')
407 #define V4L2_PIX_FMT_H263 v4l2_fourcc('H', '2', '6', '3')
408 #define V4L2_PIX_FMT_MPEG1 v4l2_fourcc('M', 'P', 'G', '1')
409 #define V4L2_PIX_FMT_MPEG2 v4l2_fourcc('M', 'P', 'G', '2')
410 #define V4L2_PIX_FMT_MPEG4 v4l2_fourcc('M', 'P', 'G', '4')
411 #define V4L2_PIX_FMT_XVID v4l2_fourcc('X', 'V', 'I', 'D')
412 #define V4L2_PIX_FMT_VC1_ANNEX_G v4l2_fourcc('V', 'C', '1', 'G')
413 #define V4L2_PIX_FMT_VC1_ANNEX_L v4l2_fourcc('V', 'C', '1', 'L')
414 #define V4L2_PIX_FMT_VP8 v4l2_fourcc('V', 'P', '8', '0')
417 #define V4L2_PIX_FMT_CPIA1 v4l2_fourcc('C', 'P', 'I', 'A')
418 #define V4L2_PIX_FMT_WNVA v4l2_fourcc('W', 'N', 'V', 'A')
419 #define V4L2_PIX_FMT_SN9C10X v4l2_fourcc('S', '9', '1', '0')
420 #define V4L2_PIX_FMT_SN9C20X_I420 v4l2_fourcc('S', '9', '2', '0')
421 #define V4L2_PIX_FMT_PWC1 v4l2_fourcc('P', 'W', 'C', '1')
422 #define V4L2_PIX_FMT_PWC2 v4l2_fourcc('P', 'W', 'C', '2')
423 #define V4L2_PIX_FMT_ET61X251 v4l2_fourcc('E', '6', '2', '5')
424 #define V4L2_PIX_FMT_SPCA501 v4l2_fourcc('S', '5', '0', '1')
425 #define V4L2_PIX_FMT_SPCA505 v4l2_fourcc('S', '5', '0', '5')
426 #define V4L2_PIX_FMT_SPCA508 v4l2_fourcc('S', '5', '0', '8')
427 #define V4L2_PIX_FMT_SPCA561 v4l2_fourcc('S', '5', '6', '1')
428 #define V4L2_PIX_FMT_PAC207 v4l2_fourcc('P', '2', '0', '7')
429 #define V4L2_PIX_FMT_MR97310A v4l2_fourcc('M', '3', '1', '0')
430 #define V4L2_PIX_FMT_JL2005BCD v4l2_fourcc('J', 'L', '2', '0')
431 #define V4L2_PIX_FMT_SN9C2028 v4l2_fourcc('S', 'O', 'N', 'X')
432 #define V4L2_PIX_FMT_SQ905C v4l2_fourcc('9', '0', '5', 'C')
433 #define V4L2_PIX_FMT_PJPG v4l2_fourcc('P', 'J', 'P', 'G')
434 #define V4L2_PIX_FMT_OV511 v4l2_fourcc('O', '5', '1', '1')
435 #define V4L2_PIX_FMT_OV518 v4l2_fourcc('O', '5', '1', '8')
436 #define V4L2_PIX_FMT_STV0680 v4l2_fourcc('S', '6', '8', '0')
437 #define V4L2_PIX_FMT_TM6000 v4l2_fourcc('T', 'M', '6', '0')
438 #define V4L2_PIX_FMT_CIT_YYVYUY v4l2_fourcc('C', 'I', 'T', 'V')
439 #define V4L2_PIX_FMT_KONICA420 v4l2_fourcc('K', 'O', 'N', 'I')
440 #define V4L2_PIX_FMT_JPGL v4l2_fourcc('J', 'P', 'G', 'L')
441 #define V4L2_PIX_FMT_SE401 v4l2_fourcc('S', '4', '0', '1')
442 #define V4L2_PIX_FMT_S5C_UYVY_JPG v4l2_fourcc('S', '5', 'C', 'I')
456 #define V4L2_FMT_FLAG_COMPRESSED 0x0001
457 #define V4L2_FMT_FLAG_EMULATED 0x0002
542 #define V4L2_TC_TYPE_24FPS 1
543 #define V4L2_TC_TYPE_25FPS 2
544 #define V4L2_TC_TYPE_30FPS 3
545 #define V4L2_TC_TYPE_50FPS 4
546 #define V4L2_TC_TYPE_60FPS 5
549 #define V4L2_TC_FLAG_DROPFRAME 0x0001
550 #define V4L2_TC_FLAG_COLORFRAME 0x0002
551 #define V4L2_TC_USERBITS_field 0x000C
552 #define V4L2_TC_USERBITS_USERDEFINED 0x0000
553 #define V4L2_TC_USERBITS_8BITCHARS 0x0008
577 #define V4L2_JPEG_MARKER_DHT (1<<3)
578 #define V4L2_JPEG_MARKER_DQT (1<<4)
579 #define V4L2_JPEG_MARKER_DRI (1<<5)
580 #define V4L2_JPEG_MARKER_COM (1<<6)
581 #define V4L2_JPEG_MARKER_APP (1<<7)
676 #define V4L2_BUF_FLAG_MAPPED 0x0001
677 #define V4L2_BUF_FLAG_QUEUED 0x0002
678 #define V4L2_BUF_FLAG_DONE 0x0004
679 #define V4L2_BUF_FLAG_KEYFRAME 0x0008
680 #define V4L2_BUF_FLAG_PFRAME 0x0010
681 #define V4L2_BUF_FLAG_BFRAME 0x0020
683 #define V4L2_BUF_FLAG_ERROR 0x0040
684 #define V4L2_BUF_FLAG_TIMECODE 0x0100
685 #define V4L2_BUF_FLAG_PREPARED 0x0400
687 #define V4L2_BUF_FLAG_NO_CACHE_INVALIDATE 0x0800
688 #define V4L2_BUF_FLAG_NO_CACHE_CLEAN 0x1000
702 #define V4L2_FBUF_CAP_EXTERNOVERLAY 0x0001
703 #define V4L2_FBUF_CAP_CHROMAKEY 0x0002
704 #define V4L2_FBUF_CAP_LIST_CLIPPING 0x0004
705 #define V4L2_FBUF_CAP_BITMAP_CLIPPING 0x0008
706 #define V4L2_FBUF_CAP_LOCAL_ALPHA 0x0010
707 #define V4L2_FBUF_CAP_GLOBAL_ALPHA 0x0020
708 #define V4L2_FBUF_CAP_LOCAL_INV_ALPHA 0x0040
709 #define V4L2_FBUF_CAP_SRC_CHROMAKEY 0x0080
711 #define V4L2_FBUF_FLAG_PRIMARY 0x0001
712 #define V4L2_FBUF_FLAG_OVERLAY 0x0002
713 #define V4L2_FBUF_FLAG_CHROMAKEY 0x0004
714 #define V4L2_FBUF_FLAG_LOCAL_ALPHA 0x0008
715 #define V4L2_FBUF_FLAG_GLOBAL_ALPHA 0x0010
716 #define V4L2_FBUF_FLAG_LOCAL_INV_ALPHA 0x0020
717 #define V4L2_FBUF_FLAG_SRC_CHROMAKEY 0x0040
747 #define V4L2_MODE_HIGHQUALITY 0x0001
748 #define V4L2_CAP_TIMEPERFRAME 0x1000
803 #define V4L2_STD_PAL_B ((v4l2_std_id)0x00000001)
804 #define V4L2_STD_PAL_B1 ((v4l2_std_id)0x00000002)
805 #define V4L2_STD_PAL_G ((v4l2_std_id)0x00000004)
806 #define V4L2_STD_PAL_H ((v4l2_std_id)0x00000008)
807 #define V4L2_STD_PAL_I ((v4l2_std_id)0x00000010)
808 #define V4L2_STD_PAL_D ((v4l2_std_id)0x00000020)
809 #define V4L2_STD_PAL_D1 ((v4l2_std_id)0x00000040)
810 #define V4L2_STD_PAL_K ((v4l2_std_id)0x00000080)
812 #define V4L2_STD_PAL_M ((v4l2_std_id)0x00000100)
813 #define V4L2_STD_PAL_N ((v4l2_std_id)0x00000200)
814 #define V4L2_STD_PAL_Nc ((v4l2_std_id)0x00000400)
815 #define V4L2_STD_PAL_60 ((v4l2_std_id)0x00000800)
817 #define V4L2_STD_NTSC_M ((v4l2_std_id)0x00001000)
818 #define V4L2_STD_NTSC_M_JP ((v4l2_std_id)0x00002000)
819 #define V4L2_STD_NTSC_443 ((v4l2_std_id)0x00004000)
820 #define V4L2_STD_NTSC_M_KR ((v4l2_std_id)0x00008000)
822 #define V4L2_STD_SECAM_B ((v4l2_std_id)0x00010000)
823 #define V4L2_STD_SECAM_D ((v4l2_std_id)0x00020000)
824 #define V4L2_STD_SECAM_G ((v4l2_std_id)0x00040000)
825 #define V4L2_STD_SECAM_H ((v4l2_std_id)0x00080000)
826 #define V4L2_STD_SECAM_K ((v4l2_std_id)0x00100000)
827 #define V4L2_STD_SECAM_K1 ((v4l2_std_id)0x00200000)
828 #define V4L2_STD_SECAM_L ((v4l2_std_id)0x00400000)
829 #define V4L2_STD_SECAM_LC ((v4l2_std_id)0x00800000)
832 #define V4L2_STD_ATSC_8_VSB ((v4l2_std_id)0x01000000)
833 #define V4L2_STD_ATSC_16_VSB ((v4l2_std_id)0x02000000)
853 #define V4L2_STD_NTSC (V4L2_STD_NTSC_M |\
854 V4L2_STD_NTSC_M_JP |\
857 #define V4L2_STD_SECAM_DK (V4L2_STD_SECAM_D |\
861 #define V4L2_STD_SECAM (V4L2_STD_SECAM_B |\
868 #define V4L2_STD_PAL_BG (V4L2_STD_PAL_B |\
871 #define V4L2_STD_PAL_DK (V4L2_STD_PAL_D |\
879 #define V4L2_STD_PAL (V4L2_STD_PAL_BG |\
884 #define V4L2_STD_B (V4L2_STD_PAL_B |\
887 #define V4L2_STD_G (V4L2_STD_PAL_G |\
889 #define V4L2_STD_H (V4L2_STD_PAL_H |\
891 #define V4L2_STD_L (V4L2_STD_SECAM_L |\
893 #define V4L2_STD_GH (V4L2_STD_G |\
895 #define V4L2_STD_DK (V4L2_STD_PAL_DK |\
897 #define V4L2_STD_BG (V4L2_STD_B |\
899 #define V4L2_STD_MN (V4L2_STD_PAL_M |\
905 #define V4L2_STD_MTS (V4L2_STD_NTSC_M |\
911 #define V4L2_STD_525_60 (V4L2_STD_PAL_M |\
916 #define V4L2_STD_625_50 (V4L2_STD_PAL |\
921 #define V4L2_STD_ATSC (V4L2_STD_ATSC_8_VSB |\
922 V4L2_STD_ATSC_16_VSB)
924 #define V4L2_STD_UNKNOWN 0
925 #define V4L2_STD_ALL (V4L2_STD_525_60 |\
963 #define V4L2_DV_INVALID 0
964 #define V4L2_DV_480P59_94 1
965 #define V4L2_DV_576P50 2
966 #define V4L2_DV_720P24 3
967 #define V4L2_DV_720P25 4
968 #define V4L2_DV_720P30 5
969 #define V4L2_DV_720P50 6
970 #define V4L2_DV_720P59_94 7
971 #define V4L2_DV_720P60 8
972 #define V4L2_DV_1080I29_97 9
973 #define V4L2_DV_1080I30 10
974 #define V4L2_DV_1080I25 11
975 #define V4L2_DV_1080I50 12
976 #define V4L2_DV_1080I60 13
977 #define V4L2_DV_1080P24 14
978 #define V4L2_DV_1080P25 15
979 #define V4L2_DV_1080P30 16
980 #define V4L2_DV_1080P50 17
981 #define V4L2_DV_1080P60 18
1040 #define V4L2_DV_PROGRESSIVE 0
1041 #define V4L2_DV_INTERLACED 1
1044 #define V4L2_DV_VSYNC_POS_POL 0x00000001
1045 #define V4L2_DV_HSYNC_POS_POL 0x00000002
1048 #define V4L2_DV_BT_STD_CEA861 (1 << 0)
1049 #define V4L2_DV_BT_STD_DMT (1 << 1)
1050 #define V4L2_DV_BT_STD_CVT (1 << 2)
1051 #define V4L2_DV_BT_STD_GTF (1 << 3)
1059 #define V4L2_DV_FL_REDUCED_BLANKING (1 << 0)
1063 #define V4L2_DV_FL_CAN_REDUCE_FPS (1 << 1)
1071 #define V4L2_DV_FL_REDUCED_FPS (1 << 2)
1076 #define V4L2_DV_FL_HALF_LINE (1 << 0)
1092 #define V4L2_DV_BT_656_1120 0
1130 #define V4L2_DV_BT_CAP_INTERLACED (1 << 0)
1132 #define V4L2_DV_BT_CAP_PROGRESSIVE (1 << 1)
1134 #define V4L2_DV_BT_CAP_REDUCED_BLANKING (1 << 2)
1136 #define V4L2_DV_BT_CAP_CUSTOM (1 << 3)
1168 #define V4L2_INPUT_TYPE_TUNER 1
1169 #define V4L2_INPUT_TYPE_CAMERA 2
1172 #define V4L2_IN_ST_NO_POWER 0x00000001
1173 #define V4L2_IN_ST_NO_SIGNAL 0x00000002
1174 #define V4L2_IN_ST_NO_COLOR 0x00000004
1178 #define V4L2_IN_ST_HFLIP 0x00000010
1179 #define V4L2_IN_ST_VFLIP 0x00000020
1182 #define V4L2_IN_ST_NO_H_LOCK 0x00000100
1183 #define V4L2_IN_ST_COLOR_KILL 0x00000200
1186 #define V4L2_IN_ST_NO_SYNC 0x00010000
1187 #define V4L2_IN_ST_NO_EQU 0x00020000
1188 #define V4L2_IN_ST_NO_CARRIER 0x00040000
1191 #define V4L2_IN_ST_MACROVISION 0x01000000
1192 #define V4L2_IN_ST_NO_ACCESS 0x02000000
1193 #define V4L2_IN_ST_VTR 0x04000000
1196 #define V4L2_IN_CAP_PRESETS 0x00000001
1197 #define V4L2_IN_CAP_DV_TIMINGS 0x00000002
1198 #define V4L2_IN_CAP_CUSTOM_TIMINGS V4L2_IN_CAP_DV_TIMINGS
1199 #define V4L2_IN_CAP_STD 0x00000004
1215 #define V4L2_OUTPUT_TYPE_MODULATOR 1
1216 #define V4L2_OUTPUT_TYPE_ANALOG 2
1217 #define V4L2_OUTPUT_TYPE_ANALOGVGAOVERLAY 3
1220 #define V4L2_OUT_CAP_PRESETS 0x00000001
1221 #define V4L2_OUT_CAP_DV_TIMINGS 0x00000002
1222 #define V4L2_OUT_CAP_CUSTOM_TIMINGS V4L2_OUT_CAP_DV_TIMINGS
1223 #define V4L2_OUT_CAP_STD 0x00000004
1252 #define V4L2_CTRL_ID_MASK (0x0fffffff)
1253 #define V4L2_CTRL_ID2CLASS(id) ((id) & 0x0fff0000UL)
1254 #define V4L2_CTRL_DRIVER_PRIV(id) (((id) & 0xffff) >= 0x1000)
1293 #define V4L2_CTRL_FLAG_DISABLED 0x0001
1294 #define V4L2_CTRL_FLAG_GRABBED 0x0002
1295 #define V4L2_CTRL_FLAG_READ_ONLY 0x0004
1296 #define V4L2_CTRL_FLAG_UPDATE 0x0008
1297 #define V4L2_CTRL_FLAG_INACTIVE 0x0010
1298 #define V4L2_CTRL_FLAG_SLIDER 0x0020
1299 #define V4L2_CTRL_FLAG_WRITE_ONLY 0x0040
1300 #define V4L2_CTRL_FLAG_VOLATILE 0x0080
1303 #define V4L2_CTRL_FLAG_NEXT_CTRL 0x80000000
1306 #define V4L2_CID_MAX_CTRLS 1024
1308 #define V4L2_CID_PRIVATE_BASE 0x08000000
1312 #define V4L2_CID_DV_CLASS_BASE (V4L2_CTRL_CLASS_DV | 0x900)
1313 #define V4L2_CID_DV_CLASS (V4L2_CTRL_CLASS_DV | 1)
1315 #define V4L2_CID_DV_TX_HOTPLUG (V4L2_CID_DV_CLASS_BASE + 1)
1316 #define V4L2_CID_DV_TX_RXSENSE (V4L2_CID_DV_CLASS_BASE + 2)
1317 #define V4L2_CID_DV_TX_EDID_PRESENT (V4L2_CID_DV_CLASS_BASE + 3)
1318 #define V4L2_CID_DV_TX_MODE (V4L2_CID_DV_CLASS_BASE + 4)
1323 #define V4L2_CID_DV_TX_RGB_RANGE (V4L2_CID_DV_CLASS_BASE + 5)
1330 #define V4L2_CID_DV_RX_POWER_PRESENT (V4L2_CID_DV_CLASS_BASE + 100)
1331 #define V4L2_CID_DV_RX_RGB_RANGE (V4L2_CID_DV_CLASS_BASE + 101)
1361 #define V4L2_TUNER_CAP_LOW 0x0001
1362 #define V4L2_TUNER_CAP_NORM 0x0002
1363 #define V4L2_TUNER_CAP_HWSEEK_BOUNDED 0x0004
1364 #define V4L2_TUNER_CAP_HWSEEK_WRAP 0x0008
1365 #define V4L2_TUNER_CAP_STEREO 0x0010
1366 #define V4L2_TUNER_CAP_LANG2 0x0020
1367 #define V4L2_TUNER_CAP_SAP 0x0020
1368 #define V4L2_TUNER_CAP_LANG1 0x0040
1369 #define V4L2_TUNER_CAP_RDS 0x0080
1370 #define V4L2_TUNER_CAP_RDS_BLOCK_IO 0x0100
1371 #define V4L2_TUNER_CAP_RDS_CONTROLS 0x0200
1372 #define V4L2_TUNER_CAP_FREQ_BANDS 0x0400
1373 #define V4L2_TUNER_CAP_HWSEEK_PROG_LIM 0x0800
1376 #define V4L2_TUNER_SUB_MONO 0x0001
1377 #define V4L2_TUNER_SUB_STEREO 0x0002
1378 #define V4L2_TUNER_SUB_LANG2 0x0004
1379 #define V4L2_TUNER_SUB_SAP 0x0004
1380 #define V4L2_TUNER_SUB_LANG1 0x0008
1381 #define V4L2_TUNER_SUB_RDS 0x0010
1384 #define V4L2_TUNER_MODE_MONO 0x0000
1385 #define V4L2_TUNER_MODE_STEREO 0x0001
1386 #define V4L2_TUNER_MODE_LANG2 0x0002
1387 #define V4L2_TUNER_MODE_SAP 0x0002
1388 #define V4L2_TUNER_MODE_LANG1 0x0003
1389 #define V4L2_TUNER_MODE_LANG1_LANG2 0x0004
1398 #define V4L2_BAND_MODULATION_VSB (1 << 1)
1399 #define V4L2_BAND_MODULATION_FM (1 << 2)
1400 #define V4L2_BAND_MODULATION_AM (1 << 3)
1434 #define V4L2_RDS_BLOCK_MSK 0x7
1435 #define V4L2_RDS_BLOCK_A 0
1436 #define V4L2_RDS_BLOCK_B 1
1437 #define V4L2_RDS_BLOCK_C 2
1438 #define V4L2_RDS_BLOCK_D 3
1439 #define V4L2_RDS_BLOCK_C_ALT 4
1440 #define V4L2_RDS_BLOCK_INVALID 7
1442 #define V4L2_RDS_BLOCK_CORRECTED 0x40
1443 #define V4L2_RDS_BLOCK_ERROR 0x80
1457 #define V4L2_AUDCAP_STEREO 0x00001
1458 #define V4L2_AUDCAP_AVL 0x00002
1461 #define V4L2_AUDMODE_AVL 0x00001
1477 #define V4L2_ENC_IDX_FRAME_I (0)
1478 #define V4L2_ENC_IDX_FRAME_P (1)
1479 #define V4L2_ENC_IDX_FRAME_B (2)
1480 #define V4L2_ENC_IDX_FRAME_MASK (0xf)
1490 #define V4L2_ENC_IDX_ENTRIES (64)
1499 #define V4L2_ENC_CMD_START (0)
1500 #define V4L2_ENC_CMD_STOP (1)
1501 #define V4L2_ENC_CMD_PAUSE (2)
1502 #define V4L2_ENC_CMD_RESUME (3)
1505 #define V4L2_ENC_CMD_STOP_AT_GOP_END (1 << 0)
1518 #define V4L2_DEC_CMD_START (0)
1519 #define V4L2_DEC_CMD_STOP (1)
1520 #define V4L2_DEC_CMD_PAUSE (2)
1521 #define V4L2_DEC_CMD_RESUME (3)
1524 #define V4L2_DEC_CMD_START_MUTE_AUDIO (1 << 0)
1527 #define V4L2_DEC_CMD_PAUSE_TO_BLACK (1 << 0)
1530 #define V4L2_DEC_CMD_STOP_TO_BLACK (1 << 0)
1531 #define V4L2_DEC_CMD_STOP_IMMEDIATELY (1 << 1)
1536 #define V4L2_DEC_START_FMT_NONE (0)
1538 #define V4L2_DEC_START_FMT_GOP (1)
1587 #define V4L2_VBI_UNSYNC (1 << 0)
1588 #define V4L2_VBI_INTERLACED (1 << 1)
1610 #define V4L2_SLICED_TELETEXT_B (0x0001)
1612 #define V4L2_SLICED_VPS (0x0400)
1614 #define V4L2_SLICED_CAPTION_525 (0x1000)
1616 #define V4L2_SLICED_WSS_625 (0x4000)
1618 #define V4L2_SLICED_VBI_525 (V4L2_SLICED_CAPTION_525)
1619 #define V4L2_SLICED_VBI_625 (V4L2_SLICED_TELETEXT_B | V4L2_SLICED_VPS | V4L2_SLICED_WSS_625)
1657 #define V4L2_MPEG_VBI_IVTV_TELETEXT_B (1)
1658 #define V4L2_MPEG_VBI_IVTV_CAPTION_525 (4)
1659 #define V4L2_MPEG_VBI_IVTV_WSS_625 (5)
1660 #define V4L2_MPEG_VBI_IVTV_VPS (7)
1676 #define V4L2_MPEG_VBI_IVTV_MAGIC0 "itv0"
1677 #define V4L2_MPEG_VBI_IVTV_MAGIC1 "ITV0"
1763 #define V4L2_EVENT_ALL 0
1764 #define V4L2_EVENT_VSYNC 1
1765 #define V4L2_EVENT_EOS 2
1766 #define V4L2_EVENT_CTRL 3
1767 #define V4L2_EVENT_FRAME_SYNC 4
1768 #define V4L2_EVENT_PRIVATE_START 0x08000000
1777 #define V4L2_EVENT_CTRL_CH_VALUE (1 << 0)
1778 #define V4L2_EVENT_CTRL_CH_FLAGS (1 << 1)
1813 #define V4L2_EVENT_SUB_FL_SEND_INITIAL (1 << 0)
1814 #define V4L2_EVENT_SUB_FL_ALLOW_FEEDBACK (1 << 1)
1832 #define V4L2_CHIP_MATCH_HOST 0
1833 #define V4L2_CHIP_MATCH_I2C_DRIVER 1
1834 #define V4L2_CHIP_MATCH_I2C_ADDR 2
1835 #define V4L2_CHIP_MATCH_AC97 3
1880 #define VIDIOC_QUERYCAP _IOR('V', 0, struct v4l2_capability)
1881 #define VIDIOC_RESERVED _IO('V', 1)
1882 #define VIDIOC_ENUM_FMT _IOWR('V', 2, struct v4l2_fmtdesc)
1883 #define VIDIOC_G_FMT _IOWR('V', 4, struct v4l2_format)
1884 #define VIDIOC_S_FMT _IOWR('V', 5, struct v4l2_format)
1885 #define VIDIOC_REQBUFS _IOWR('V', 8, struct v4l2_requestbuffers)
1886 #define VIDIOC_QUERYBUF _IOWR('V', 9, struct v4l2_buffer)
1887 #define VIDIOC_G_FBUF _IOR('V', 10, struct v4l2_framebuffer)
1888 #define VIDIOC_S_FBUF _IOW('V', 11, struct v4l2_framebuffer)
1889 #define VIDIOC_OVERLAY _IOW('V', 14, int)
1890 #define VIDIOC_QBUF _IOWR('V', 15, struct v4l2_buffer)
1891 #define VIDIOC_DQBUF _IOWR('V', 17, struct v4l2_buffer)
1892 #define VIDIOC_STREAMON _IOW('V', 18, int)
1893 #define VIDIOC_STREAMOFF _IOW('V', 19, int)
1894 #define VIDIOC_G_PARM _IOWR('V', 21, struct v4l2_streamparm)
1895 #define VIDIOC_S_PARM _IOWR('V', 22, struct v4l2_streamparm)
1896 #define VIDIOC_G_STD _IOR('V', 23, v4l2_std_id)
1897 #define VIDIOC_S_STD _IOW('V', 24, v4l2_std_id)
1898 #define VIDIOC_ENUMSTD _IOWR('V', 25, struct v4l2_standard)
1899 #define VIDIOC_ENUMINPUT _IOWR('V', 26, struct v4l2_input)
1900 #define VIDIOC_G_CTRL _IOWR('V', 27, struct v4l2_control)
1901 #define VIDIOC_S_CTRL _IOWR('V', 28, struct v4l2_control)
1902 #define VIDIOC_G_TUNER _IOWR('V', 29, struct v4l2_tuner)
1903 #define VIDIOC_S_TUNER _IOW('V', 30, struct v4l2_tuner)
1904 #define VIDIOC_G_AUDIO _IOR('V', 33, struct v4l2_audio)
1905 #define VIDIOC_S_AUDIO _IOW('V', 34, struct v4l2_audio)
1906 #define VIDIOC_QUERYCTRL _IOWR('V', 36, struct v4l2_queryctrl)
1907 #define VIDIOC_QUERYMENU _IOWR('V', 37, struct v4l2_querymenu)
1908 #define VIDIOC_G_INPUT _IOR('V', 38, int)
1909 #define VIDIOC_S_INPUT _IOWR('V', 39, int)
1910 #define VIDIOC_G_OUTPUT _IOR('V', 46, int)
1911 #define VIDIOC_S_OUTPUT _IOWR('V', 47, int)
1912 #define VIDIOC_ENUMOUTPUT _IOWR('V', 48, struct v4l2_output)
1913 #define VIDIOC_G_AUDOUT _IOR('V', 49, struct v4l2_audioout)
1914 #define VIDIOC_S_AUDOUT _IOW('V', 50, struct v4l2_audioout)
1915 #define VIDIOC_G_MODULATOR _IOWR('V', 54, struct v4l2_modulator)
1916 #define VIDIOC_S_MODULATOR _IOW('V', 55, struct v4l2_modulator)
1917 #define VIDIOC_G_FREQUENCY _IOWR('V', 56, struct v4l2_frequency)
1918 #define VIDIOC_S_FREQUENCY _IOW('V', 57, struct v4l2_frequency)
1919 #define VIDIOC_CROPCAP _IOWR('V', 58, struct v4l2_cropcap)
1920 #define VIDIOC_G_CROP _IOWR('V', 59, struct v4l2_crop)
1921 #define VIDIOC_S_CROP _IOW('V', 60, struct v4l2_crop)
1922 #define VIDIOC_G_JPEGCOMP _IOR('V', 61, struct v4l2_jpegcompression)
1923 #define VIDIOC_S_JPEGCOMP _IOW('V', 62, struct v4l2_jpegcompression)
1924 #define VIDIOC_QUERYSTD _IOR('V', 63, v4l2_std_id)
1925 #define VIDIOC_TRY_FMT _IOWR('V', 64, struct v4l2_format)
1926 #define VIDIOC_ENUMAUDIO _IOWR('V', 65, struct v4l2_audio)
1927 #define VIDIOC_ENUMAUDOUT _IOWR('V', 66, struct v4l2_audioout)
1928 #define VIDIOC_G_PRIORITY _IOR('V', 67, __u32)
1929 #define VIDIOC_S_PRIORITY _IOW('V', 68, __u32)
1930 #define VIDIOC_G_SLICED_VBI_CAP _IOWR('V', 69, struct v4l2_sliced_vbi_cap)
1931 #define VIDIOC_LOG_STATUS _IO('V', 70)
1932 #define VIDIOC_G_EXT_CTRLS _IOWR('V', 71, struct v4l2_ext_controls)
1933 #define VIDIOC_S_EXT_CTRLS _IOWR('V', 72, struct v4l2_ext_controls)
1934 #define VIDIOC_TRY_EXT_CTRLS _IOWR('V', 73, struct v4l2_ext_controls)
1936 #define VIDIOC_ENUM_FRAMESIZES _IOWR('V', 74, struct v4l2_frmsizeenum)
1937 #define VIDIOC_ENUM_FRAMEINTERVALS _IOWR('V', 75, struct v4l2_frmivalenum)
1938 #define VIDIOC_G_ENC_INDEX _IOR('V', 76, struct v4l2_enc_idx)
1939 #define VIDIOC_ENCODER_CMD _IOWR('V', 77, struct v4l2_encoder_cmd)
1940 #define VIDIOC_TRY_ENCODER_CMD _IOWR('V', 78, struct v4l2_encoder_cmd)
1947 #define VIDIOC_DBG_S_REGISTER _IOW('V', 79, struct v4l2_dbg_register)
1948 #define VIDIOC_DBG_G_REGISTER _IOWR('V', 80, struct v4l2_dbg_register)
1952 #define VIDIOC_DBG_G_CHIP_IDENT _IOWR('V', 81, struct v4l2_dbg_chip_ident)
1955 #define VIDIOC_S_HW_FREQ_SEEK _IOW('V', 82, struct v4l2_hw_freq_seek)
1959 #define VIDIOC_ENUM_DV_PRESETS _IOWR('V', 83, struct v4l2_dv_enum_preset)
1960 #define VIDIOC_S_DV_PRESET _IOWR('V', 84, struct v4l2_dv_preset)
1961 #define VIDIOC_G_DV_PRESET _IOWR('V', 85, struct v4l2_dv_preset)
1962 #define VIDIOC_QUERY_DV_PRESET _IOR('V', 86, struct v4l2_dv_preset)
1963 #define VIDIOC_S_DV_TIMINGS _IOWR('V', 87, struct v4l2_dv_timings)
1964 #define VIDIOC_G_DV_TIMINGS _IOWR('V', 88, struct v4l2_dv_timings)
1965 #define VIDIOC_DQEVENT _IOR('V', 89, struct v4l2_event)
1966 #define VIDIOC_SUBSCRIBE_EVENT _IOW('V', 90, struct v4l2_event_subscription)
1967 #define VIDIOC_UNSUBSCRIBE_EVENT _IOW('V', 91, struct v4l2_event_subscription)
1971 #define VIDIOC_CREATE_BUFS _IOWR('V', 92, struct v4l2_create_buffers)
1972 #define VIDIOC_PREPARE_BUF _IOWR('V', 93, struct v4l2_buffer)
1975 #define VIDIOC_G_SELECTION _IOWR('V', 94, struct v4l2_selection)
1976 #define VIDIOC_S_SELECTION _IOWR('V', 95, struct v4l2_selection)
1980 #define VIDIOC_DECODER_CMD _IOWR('V', 96, struct v4l2_decoder_cmd)
1981 #define VIDIOC_TRY_DECODER_CMD _IOWR('V', 97, struct v4l2_decoder_cmd)
1985 #define VIDIOC_ENUM_DV_TIMINGS _IOWR('V', 98, struct v4l2_enum_dv_timings)
1986 #define VIDIOC_QUERY_DV_TIMINGS _IOR('V', 99, struct v4l2_dv_timings)
1987 #define VIDIOC_DV_TIMINGS_CAP _IOWR('V', 100, struct v4l2_dv_timings_cap)
1991 #define VIDIOC_ENUM_FREQ_BANDS _IOWR('V', 101, struct v4l2_frequency_band)
1996 #define BASE_VIDIOC_PRIVATE 192