doc-rst: autogenerate videodev2.h.rst file

This file comes from the uAPI definitions for V4L2, with is dynamic
and updated on almost every Kernel version. So, this file
needs to be auto-updated, as otherwise the documentation will
become obsolete too early.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
Mauro Carvalho Chehab 2016-07-07 11:05:38 -03:00
parent 153234c47c
commit 9f97b3066c
7 changed files with 605 additions and 2310 deletions

View File

@ -2,7 +2,8 @@
PARSER = ../sphinx/parse-headers.pl
UAPI = ../../include/uapi/linux
TARGETS = audio.h.rst ca.h.rst dmx.h.rst frontend.h.rst net.h.rst video.h.rst
TARGETS = audio.h.rst ca.h.rst dmx.h.rst frontend.h.rst net.h.rst video.h.rst \
videodev2.h.rst
htmldocs: ${TARGETS}
@ -24,5 +25,8 @@ net.h.rst: ${PARSER} ${UAPI}/dvb/net.h net.h.rst.exceptions
video.h.rst: ${PARSER} ${UAPI}/dvb/video.h video.h.rst.exceptions
${PARSER} ${UAPI}/dvb/video.h $@ video.h.rst.exceptions
videodev2.h.rst: ${UAPI}/videodev2.h ${PARSER} videodev2.h.rst.exceptions
${PARSER} ${UAPI}/videodev2.h $@ videodev2.h.rst.exceptions
cleandocs:
-rm ${TARGETS}

View File

@ -28,23 +28,23 @@ number, starting at zero, of one audio input or output.
To learn about the number and attributes of the available inputs and
outputs applications can enumerate them with the
:ref:`VIDIOC_ENUMAUDIO` and
:ref:`VIDIOC_ENUMAUDOUT <VIDIOC_ENUMAUDIOout>` ioctl, respectively.
:ref:`VIDIOC_ENUMAUDOUT <VIDIOC_ENUMAUDOUT>` ioctl, respectively.
The struct :ref:`v4l2_audio <v4l2-audio>` returned by the
:ref:`VIDIOC_ENUMAUDIO` ioctl also contains signal
:status information applicable when the current audio input is queried.
The :ref:`VIDIOC_G_AUDIO <VIDIOC_G_AUDIO>` and
:ref:`VIDIOC_G_AUDOUT <VIDIOC_G_AUDIOout>` ioctls report the current
:ref:`VIDIOC_G_AUDOUT <VIDIOC_G_AUDOUT>` ioctls report the current
audio input and output, respectively. Note that, unlike
:ref:`VIDIOC_G_INPUT <VIDIOC_G_INPUT>` and
:ref:`VIDIOC_G_OUTPUT <VIDIOC_G_OUTPUT>` these ioctls return a
structure as :ref:`VIDIOC_ENUMAUDIO` and
:ref:`VIDIOC_ENUMAUDOUT <VIDIOC_ENUMAUDIOout>` do, not just an index.
:ref:`VIDIOC_ENUMAUDOUT <VIDIOC_ENUMAUDOUT>` do, not just an index.
To select an audio input and change its properties applications call the
:ref:`VIDIOC_S_AUDIO <VIDIOC_G_AUDIO>` ioctl. To select an audio
output (which presently has no changeable properties) applications call
the :ref:`VIDIOC_S_AUDOUT <VIDIOC_G_AUDIOout>` ioctl.
the :ref:`VIDIOC_S_AUDOUT <VIDIOC_G_AUDOUT>` ioctl.
Drivers must implement all audio input ioctls when the device has
multiple selectable audio inputs, all audio output ioctls when the

View File

@ -727,8 +727,8 @@ V4L2 2003-06-19
audio input.
The same changes were made to
:ref:`VIDIOC_G_AUDOUT <VIDIOC_G_AUDIOout>` and
:ref:`VIDIOC_ENUMAUDOUT <VIDIOC_ENUMAUDIOout>`.
:ref:`VIDIOC_G_AUDOUT <VIDIOC_G_AUDOUT>` and
:ref:`VIDIOC_ENUMAUDOUT <VIDIOC_ENUMAUDOUT>`.
Until further the "videodev" module will automatically translate
between the old and new ioctls, but drivers and applications must be

View File

@ -1,6 +1,6 @@
.. -*- coding: utf-8; mode: rst -*-
.. _VIDIOC_ENUMAUDIOOUT:
.. _VIDIOC_ENUMAUDOUT:
***********************
ioctl VIDIOC_ENUMAUDOUT
@ -44,7 +44,7 @@ zero, incrementing by one until the driver returns ``EINVAL``.
Note connectors on a TV card to loop back the received audio signal to a
sound card are not audio outputs in this sense.
See :ref:`VIDIOC_G_AUDIOout <VIDIOC_G_AUDIOout>` for a description of struct
See :ref:`VIDIOC_G_AUDIOout <VIDIOC_G_AUDOUT>` for a description of struct
:ref:`v4l2_audioout <v4l2-audioout>`.

View File

@ -1,6 +1,6 @@
.. -*- coding: utf-8; mode: rst -*-
.. _VIDIOC_G_AUDIOOUT:
.. _VIDIOC_G_AUDOUT:
**************************************
ioctl VIDIOC_G_AUDOUT, VIDIOC_S_AUDOUT

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,591 @@
# Ignore header name
ignore define _UAPI__LINUX_VIDEODEV2_H
#
# The cross reference valitator for videodev2.h DocBook never cared
# about enum symbols or defines. Yet, they're all (or almost all?)
# handled inside V4L API sections. So, for now, it is safe to just
# ignore. This should be revisited, as validating it helps to avoid
# having something not documented at the uAPI.
#
# for now, ignore all enum symbols
ignore symbol V4L2_BUF_TYPE_PRIVATE
ignore symbol V4L2_BUF_TYPE_SDR_CAPTURE
ignore symbol V4L2_BUF_TYPE_SDR_OUTPUT
ignore symbol V4L2_BUF_TYPE_SLICED_VBI_CAPTURE
ignore symbol V4L2_BUF_TYPE_SLICED_VBI_OUTPUT
ignore symbol V4L2_BUF_TYPE_VBI_CAPTURE
ignore symbol V4L2_BUF_TYPE_VBI_OUTPUT
ignore symbol V4L2_BUF_TYPE_VIDEO_CAPTURE
ignore symbol V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
ignore symbol V4L2_BUF_TYPE_VIDEO_OUTPUT
ignore symbol V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
ignore symbol V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY
ignore symbol V4L2_BUF_TYPE_VIDEO_OVERLAY
ignore symbol V4L2_COLORSPACE_470_SYSTEM_BG
ignore symbol V4L2_COLORSPACE_470_SYSTEM_M
ignore symbol V4L2_COLORSPACE_ADOBERGB
ignore symbol V4L2_COLORSPACE_BT2020
ignore symbol V4L2_COLORSPACE_BT878
ignore symbol V4L2_COLORSPACE_DCI_P3
ignore symbol V4L2_COLORSPACE_DEFAULT
ignore symbol V4L2_COLORSPACE_JPEG
ignore symbol V4L2_COLORSPACE_RAW
ignore symbol V4L2_COLORSPACE_REC709
ignore symbol V4L2_COLORSPACE_SMPTE170M
ignore symbol V4L2_COLORSPACE_SMPTE240M
ignore symbol V4L2_COLORSPACE_SRGB
ignore symbol V4L2_CTRL_COMPOUND_TYPES
ignore symbol V4L2_CTRL_TYPE_BITMASK
ignore symbol V4L2_CTRL_TYPE_BOOLEAN
ignore symbol V4L2_CTRL_TYPE_BUTTON
ignore symbol V4L2_CTRL_TYPE_CTRL_CLASS
ignore symbol V4L2_CTRL_TYPE_INTEGER
ignore symbol V4L2_CTRL_TYPE_INTEGER64
ignore symbol V4L2_CTRL_TYPE_INTEGER_MENU
ignore symbol V4L2_CTRL_TYPE_MENU
ignore symbol V4L2_CTRL_TYPE_STRING
ignore symbol V4L2_CTRL_TYPE_U16
ignore symbol V4L2_CTRL_TYPE_U32
ignore symbol V4L2_CTRL_TYPE_U8
ignore symbol V4L2_FIELD_ALTERNATE
ignore symbol V4L2_FIELD_ANY
ignore symbol V4L2_FIELD_BOTTOM
ignore symbol V4L2_FIELD_INTERLACED
ignore symbol V4L2_FIELD_INTERLACED_BT
ignore symbol V4L2_FIELD_INTERLACED_TB
ignore symbol V4L2_FIELD_NONE
ignore symbol V4L2_FIELD_SEQ_BT
ignore symbol V4L2_FIELD_SEQ_TB
ignore symbol V4L2_FIELD_TOP
ignore symbol V4L2_FRMIVAL_TYPE_CONTINUOUS
ignore symbol V4L2_FRMIVAL_TYPE_DISCRETE
ignore symbol V4L2_FRMIVAL_TYPE_STEPWISE
ignore symbol V4L2_FRMSIZE_TYPE_CONTINUOUS
ignore symbol V4L2_FRMSIZE_TYPE_DISCRETE
ignore symbol V4L2_FRMSIZE_TYPE_STEPWISE
ignore symbol V4L2_MEMORY_DMABUF
ignore symbol V4L2_MEMORY_MMAP
ignore symbol V4L2_MEMORY_OVERLAY
ignore symbol V4L2_MEMORY_USERPTR
ignore symbol V4L2_PRIORITY_BACKGROUND
ignore symbol V4L2_PRIORITY_DEFAULT
ignore symbol V4L2_PRIORITY_INTERACTIVE
ignore symbol V4L2_PRIORITY_RECORD
ignore symbol V4L2_PRIORITY_UNSET
ignore symbol V4L2_QUANTIZATION_DEFAULT
ignore symbol V4L2_QUANTIZATION_FULL_RANGE
ignore symbol V4L2_QUANTIZATION_LIM_RANGE
ignore symbol V4L2_TUNER_ANALOG_TV
ignore symbol V4L2_TUNER_DIGITAL_TV
ignore symbol V4L2_TUNER_RADIO
ignore symbol V4L2_TUNER_RF
ignore symbol V4L2_TUNER_SDR
ignore symbol V4L2_XFER_FUNC_709
ignore symbol V4L2_XFER_FUNC_ADOBERGB
ignore symbol V4L2_XFER_FUNC_DCI_P3
ignore symbol V4L2_XFER_FUNC_DEFAULT
ignore symbol V4L2_XFER_FUNC_NONE
ignore symbol V4L2_XFER_FUNC_SMPTE2084
ignore symbol V4L2_XFER_FUNC_SMPTE240M
ignore symbol V4L2_XFER_FUNC_SRGB
ignore symbol V4L2_YCBCR_ENC_601
ignore symbol V4L2_YCBCR_ENC_709
ignore symbol V4L2_YCBCR_ENC_BT2020
ignore symbol V4L2_YCBCR_ENC_BT2020_CONST_LUM
ignore symbol V4L2_YCBCR_ENC_DEFAULT
ignore symbol V4L2_YCBCR_ENC_SMPTE240M
ignore symbol V4L2_YCBCR_ENC_SYCC
ignore symbol V4L2_YCBCR_ENC_XV601
ignore symbol V4L2_YCBCR_ENC_XV709
# For now, ignore all defines
ignore define VIDEO_MAX_FRAME
ignore define VIDEO_MAX_PLANES
ignore define v4l2_fourcc
ignore define v4l2_fourcc_be
ignore define V4L2_FIELD_HAS_TOP
ignore define V4L2_FIELD_HAS_BOTTOM
ignore define V4L2_FIELD_HAS_BOTH
ignore define V4L2_FIELD_HAS_T_OR_B
ignore define V4L2_TYPE_IS_MULTIPLANAR
ignore define V4L2_TYPE_IS_OUTPUT
ignore define V4L2_TUNER_ADC
ignore define V4L2_MAP_COLORSPACE_DEFAULT
ignore define V4L2_MAP_XFER_FUNC_DEFAULT
ignore define V4L2_MAP_YCBCR_ENC_DEFAULT
ignore define V4L2_CAP_VIDEO_CAPTURE
ignore define V4L2_CAP_VIDEO_OUTPUT
ignore define V4L2_CAP_VIDEO_OVERLAY
ignore define V4L2_CAP_VBI_CAPTURE
ignore define V4L2_CAP_VBI_OUTPUT
ignore define V4L2_CAP_SLICED_VBI_CAPTURE
ignore define V4L2_CAP_SLICED_VBI_OUTPUT
ignore define V4L2_CAP_RDS_CAPTURE
ignore define V4L2_CAP_VIDEO_OUTPUT_OVERLAY
ignore define V4L2_CAP_HW_FREQ_SEEK
ignore define V4L2_CAP_RDS_OUTPUT
ignore define V4L2_CAP_VIDEO_CAPTURE_MPLANE
ignore define V4L2_CAP_VIDEO_OUTPUT_MPLANE
ignore define V4L2_CAP_VIDEO_M2M_MPLANE
ignore define V4L2_CAP_VIDEO_M2M
ignore define V4L2_CAP_TUNER
ignore define V4L2_CAP_AUDIO
ignore define V4L2_CAP_RADIO
ignore define V4L2_CAP_MODULATOR
ignore define V4L2_CAP_SDR_CAPTURE
ignore define V4L2_CAP_EXT_PIX_FORMAT
ignore define V4L2_CAP_SDR_OUTPUT
ignore define V4L2_CAP_READWRITE
ignore define V4L2_CAP_ASYNCIO
ignore define V4L2_CAP_STREAMING
ignore define V4L2_CAP_DEVICE_CAPS
ignore define V4L2_PIX_FMT_RGB332
ignore define V4L2_PIX_FMT_RGB444
ignore define V4L2_PIX_FMT_ARGB444
ignore define V4L2_PIX_FMT_XRGB444
ignore define V4L2_PIX_FMT_RGB555
ignore define V4L2_PIX_FMT_ARGB555
ignore define V4L2_PIX_FMT_XRGB555
ignore define V4L2_PIX_FMT_RGB565
ignore define V4L2_PIX_FMT_RGB555X
ignore define V4L2_PIX_FMT_ARGB555X
ignore define V4L2_PIX_FMT_XRGB555X
ignore define V4L2_PIX_FMT_RGB565X
ignore define V4L2_PIX_FMT_BGR666
ignore define V4L2_PIX_FMT_BGR24
ignore define V4L2_PIX_FMT_RGB24
ignore define V4L2_PIX_FMT_BGR32
ignore define V4L2_PIX_FMT_ABGR32
ignore define V4L2_PIX_FMT_XBGR32
ignore define V4L2_PIX_FMT_RGB32
ignore define V4L2_PIX_FMT_ARGB32
ignore define V4L2_PIX_FMT_XRGB32
ignore define V4L2_PIX_FMT_GREY
ignore define V4L2_PIX_FMT_Y4
ignore define V4L2_PIX_FMT_Y6
ignore define V4L2_PIX_FMT_Y10
ignore define V4L2_PIX_FMT_Y12
ignore define V4L2_PIX_FMT_Y16
ignore define V4L2_PIX_FMT_Y16_BE
ignore define V4L2_PIX_FMT_Y10BPACK
ignore define V4L2_PIX_FMT_PAL8
ignore define V4L2_PIX_FMT_UV8
ignore define V4L2_PIX_FMT_YUYV
ignore define V4L2_PIX_FMT_YYUV
ignore define V4L2_PIX_FMT_YVYU
ignore define V4L2_PIX_FMT_UYVY
ignore define V4L2_PIX_FMT_VYUY
ignore define V4L2_PIX_FMT_Y41P
ignore define V4L2_PIX_FMT_YUV444
ignore define V4L2_PIX_FMT_YUV555
ignore define V4L2_PIX_FMT_YUV565
ignore define V4L2_PIX_FMT_YUV32
ignore define V4L2_PIX_FMT_HI240
ignore define V4L2_PIX_FMT_HM12
ignore define V4L2_PIX_FMT_M420
ignore define V4L2_PIX_FMT_NV12
ignore define V4L2_PIX_FMT_NV21
ignore define V4L2_PIX_FMT_NV16
ignore define V4L2_PIX_FMT_NV61
ignore define V4L2_PIX_FMT_NV24
ignore define V4L2_PIX_FMT_NV42
ignore define V4L2_PIX_FMT_NV12M
ignore define V4L2_PIX_FMT_NV21M
ignore define V4L2_PIX_FMT_NV16M
ignore define V4L2_PIX_FMT_NV61M
ignore define V4L2_PIX_FMT_NV12MT
ignore define V4L2_PIX_FMT_NV12MT_16X16
ignore define V4L2_PIX_FMT_YUV410
ignore define V4L2_PIX_FMT_YVU410
ignore define V4L2_PIX_FMT_YUV411P
ignore define V4L2_PIX_FMT_YUV420
ignore define V4L2_PIX_FMT_YVU420
ignore define V4L2_PIX_FMT_YUV422P
ignore define V4L2_PIX_FMT_YUV420M
ignore define V4L2_PIX_FMT_YVU420M
ignore define V4L2_PIX_FMT_YUV422M
ignore define V4L2_PIX_FMT_YVU422M
ignore define V4L2_PIX_FMT_YUV444M
ignore define V4L2_PIX_FMT_YVU444M
ignore define V4L2_PIX_FMT_SBGGR8
ignore define V4L2_PIX_FMT_SGBRG8
ignore define V4L2_PIX_FMT_SGRBG8
ignore define V4L2_PIX_FMT_SRGGB8
ignore define V4L2_PIX_FMT_SBGGR10
ignore define V4L2_PIX_FMT_SGBRG10
ignore define V4L2_PIX_FMT_SGRBG10
ignore define V4L2_PIX_FMT_SRGGB10
ignore define V4L2_PIX_FMT_SBGGR10P
ignore define V4L2_PIX_FMT_SGBRG10P
ignore define V4L2_PIX_FMT_SGRBG10P
ignore define V4L2_PIX_FMT_SRGGB10P
ignore define V4L2_PIX_FMT_SBGGR10ALAW8
ignore define V4L2_PIX_FMT_SGBRG10ALAW8
ignore define V4L2_PIX_FMT_SGRBG10ALAW8
ignore define V4L2_PIX_FMT_SRGGB10ALAW8
ignore define V4L2_PIX_FMT_SBGGR10DPCM8
ignore define V4L2_PIX_FMT_SGBRG10DPCM8
ignore define V4L2_PIX_FMT_SGRBG10DPCM8
ignore define V4L2_PIX_FMT_SRGGB10DPCM8
ignore define V4L2_PIX_FMT_SBGGR12
ignore define V4L2_PIX_FMT_SGBRG12
ignore define V4L2_PIX_FMT_SGRBG12
ignore define V4L2_PIX_FMT_SRGGB12
ignore define V4L2_PIX_FMT_SBGGR16
ignore define V4L2_PIX_FMT_MJPEG
ignore define V4L2_PIX_FMT_JPEG
ignore define V4L2_PIX_FMT_DV
ignore define V4L2_PIX_FMT_MPEG
ignore define V4L2_PIX_FMT_H264
ignore define V4L2_PIX_FMT_H264_NO_SC
ignore define V4L2_PIX_FMT_H264_MVC
ignore define V4L2_PIX_FMT_H263
ignore define V4L2_PIX_FMT_MPEG1
ignore define V4L2_PIX_FMT_MPEG2
ignore define V4L2_PIX_FMT_MPEG4
ignore define V4L2_PIX_FMT_XVID
ignore define V4L2_PIX_FMT_VC1_ANNEX_G
ignore define V4L2_PIX_FMT_VC1_ANNEX_L
ignore define V4L2_PIX_FMT_VP8
ignore define V4L2_PIX_FMT_CPIA1
ignore define V4L2_PIX_FMT_WNVA
ignore define V4L2_PIX_FMT_SN9C10X
ignore define V4L2_PIX_FMT_SN9C20X_I420
ignore define V4L2_PIX_FMT_PWC1
ignore define V4L2_PIX_FMT_PWC2
ignore define V4L2_PIX_FMT_ET61X251
ignore define V4L2_PIX_FMT_SPCA501
ignore define V4L2_PIX_FMT_SPCA505
ignore define V4L2_PIX_FMT_SPCA508
ignore define V4L2_PIX_FMT_SPCA561
ignore define V4L2_PIX_FMT_PAC207
ignore define V4L2_PIX_FMT_MR97310A
ignore define V4L2_PIX_FMT_JL2005BCD
ignore define V4L2_PIX_FMT_SN9C2028
ignore define V4L2_PIX_FMT_SQ905C
ignore define V4L2_PIX_FMT_PJPG
ignore define V4L2_PIX_FMT_OV511
ignore define V4L2_PIX_FMT_OV518
ignore define V4L2_PIX_FMT_STV0680
ignore define V4L2_PIX_FMT_TM6000
ignore define V4L2_PIX_FMT_CIT_YYVYUY
ignore define V4L2_PIX_FMT_KONICA420
ignore define V4L2_PIX_FMT_JPGL
ignore define V4L2_PIX_FMT_SE401
ignore define V4L2_PIX_FMT_S5C_UYVY_JPG
ignore define V4L2_PIX_FMT_Y8I
ignore define V4L2_PIX_FMT_Y12I
ignore define V4L2_PIX_FMT_Z16
ignore define V4L2_SDR_FMT_CU8
ignore define V4L2_SDR_FMT_CU16LE
ignore define V4L2_SDR_FMT_CS8
ignore define V4L2_SDR_FMT_CS14LE
ignore define V4L2_SDR_FMT_RU12LE
ignore define V4L2_PIX_FMT_PRIV_MAGIC
ignore define V4L2_PIX_FMT_FLAG_PREMUL_ALPHA
ignore define V4L2_FMT_FLAG_COMPRESSED
ignore define V4L2_FMT_FLAG_EMULATED
ignore define V4L2_TC_TYPE_24FPS
ignore define V4L2_TC_TYPE_25FPS
ignore define V4L2_TC_TYPE_30FPS
ignore define V4L2_TC_TYPE_50FPS
ignore define V4L2_TC_TYPE_60FPS
ignore define V4L2_TC_FLAG_DROPFRAME
ignore define V4L2_TC_FLAG_COLORFRAME
ignore define V4L2_TC_USERBITS_field
ignore define V4L2_TC_USERBITS_USERDEFINED
ignore define V4L2_TC_USERBITS_8BITCHARS
ignore define V4L2_JPEG_MARKER_DHT
ignore define V4L2_JPEG_MARKER_DQT
ignore define V4L2_JPEG_MARKER_DRI
ignore define V4L2_JPEG_MARKER_COM
ignore define V4L2_JPEG_MARKER_APP
ignore define V4L2_BUF_FLAG_MAPPED
ignore define V4L2_BUF_FLAG_QUEUED
ignore define V4L2_BUF_FLAG_DONE
ignore define V4L2_BUF_FLAG_KEYFRAME
ignore define V4L2_BUF_FLAG_PFRAME
ignore define V4L2_BUF_FLAG_BFRAME
ignore define V4L2_BUF_FLAG_ERROR
ignore define V4L2_BUF_FLAG_TIMECODE
ignore define V4L2_BUF_FLAG_PREPARED
ignore define V4L2_BUF_FLAG_NO_CACHE_INVALIDATE
ignore define V4L2_BUF_FLAG_NO_CACHE_CLEAN
ignore define V4L2_BUF_FLAG_TIMESTAMP_MASK
ignore define V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN
ignore define V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
ignore define V4L2_BUF_FLAG_TIMESTAMP_COPY
ignore define V4L2_BUF_FLAG_TSTAMP_SRC_MASK
ignore define V4L2_BUF_FLAG_TSTAMP_SRC_EOF
ignore define V4L2_BUF_FLAG_TSTAMP_SRC_SOE
ignore define V4L2_BUF_FLAG_LAST
ignore define V4L2_FBUF_CAP_EXTERNOVERLAY
ignore define V4L2_FBUF_CAP_CHROMAKEY
ignore define V4L2_FBUF_CAP_LIST_CLIPPING
ignore define V4L2_FBUF_CAP_BITMAP_CLIPPING
ignore define V4L2_FBUF_CAP_LOCAL_ALPHA
ignore define V4L2_FBUF_CAP_GLOBAL_ALPHA
ignore define V4L2_FBUF_CAP_LOCAL_INV_ALPHA
ignore define V4L2_FBUF_CAP_SRC_CHROMAKEY
ignore define V4L2_FBUF_FLAG_PRIMARY
ignore define V4L2_FBUF_FLAG_OVERLAY
ignore define V4L2_FBUF_FLAG_CHROMAKEY
ignore define V4L2_FBUF_FLAG_LOCAL_ALPHA
ignore define V4L2_FBUF_FLAG_GLOBAL_ALPHA
ignore define V4L2_FBUF_FLAG_LOCAL_INV_ALPHA
ignore define V4L2_FBUF_FLAG_SRC_CHROMAKEY
ignore define V4L2_MODE_HIGHQUALITY
ignore define V4L2_CAP_TIMEPERFRAME
ignore define V4L2_STD_PAL_B
ignore define V4L2_STD_PAL_B1
ignore define V4L2_STD_PAL_G
ignore define V4L2_STD_PAL_H
ignore define V4L2_STD_PAL_I
ignore define V4L2_STD_PAL_D
ignore define V4L2_STD_PAL_D1
ignore define V4L2_STD_PAL_K
ignore define V4L2_STD_PAL_M
ignore define V4L2_STD_PAL_N
ignore define V4L2_STD_PAL_Nc
ignore define V4L2_STD_PAL_60
ignore define V4L2_STD_NTSC_M
ignore define V4L2_STD_NTSC_M_JP
ignore define V4L2_STD_NTSC_443
ignore define V4L2_STD_NTSC_M_KR
ignore define V4L2_STD_SECAM_B
ignore define V4L2_STD_SECAM_D
ignore define V4L2_STD_SECAM_G
ignore define V4L2_STD_SECAM_H
ignore define V4L2_STD_SECAM_K
ignore define V4L2_STD_SECAM_K1
ignore define V4L2_STD_SECAM_L
ignore define V4L2_STD_SECAM_LC
ignore define V4L2_STD_ATSC_8_VSB
ignore define V4L2_STD_ATSC_16_VSB
ignore define V4L2_STD_NTSC
ignore define V4L2_STD_SECAM_DK
ignore define V4L2_STD_SECAM
ignore define V4L2_STD_PAL_BG
ignore define V4L2_STD_PAL_DK
ignore define V4L2_STD_PAL
ignore define V4L2_STD_B
ignore define V4L2_STD_G
ignore define V4L2_STD_H
ignore define V4L2_STD_L
ignore define V4L2_STD_GH
ignore define V4L2_STD_DK
ignore define V4L2_STD_BG
ignore define V4L2_STD_MN
ignore define V4L2_STD_MTS
ignore define V4L2_STD_525_60
ignore define V4L2_STD_625_50
ignore define V4L2_STD_ATSC
ignore define V4L2_STD_UNKNOWN
ignore define V4L2_STD_ALL
ignore define V4L2_DV_PROGRESSIVE
ignore define V4L2_DV_INTERLACED
ignore define V4L2_DV_VSYNC_POS_POL
ignore define V4L2_DV_HSYNC_POS_POL
ignore define V4L2_DV_BT_STD_CEA861
ignore define V4L2_DV_BT_STD_DMT
ignore define V4L2_DV_BT_STD_CVT
ignore define V4L2_DV_BT_STD_GTF
ignore define V4L2_DV_FL_REDUCED_BLANKING
ignore define V4L2_DV_FL_CAN_REDUCE_FPS
ignore define V4L2_DV_FL_REDUCED_FPS
ignore define V4L2_DV_FL_HALF_LINE
ignore define V4L2_DV_FL_IS_CE_VIDEO
ignore define V4L2_DV_BT_BLANKING_WIDTH(bt)
ignore define V4L2_DV_BT_FRAME_WIDTH(bt)
ignore define V4L2_DV_BT_BLANKING_HEIGHT(bt)
ignore define V4L2_DV_BT_FRAME_HEIGHT(bt)
ignore define V4L2_DV_BT_656_1120
ignore define V4L2_DV_BT_CAP_INTERLACED
ignore define V4L2_DV_BT_CAP_PROGRESSIVE
ignore define V4L2_DV_BT_CAP_REDUCED_BLANKING
ignore define V4L2_DV_BT_CAP_CUSTOM
ignore define V4L2_INPUT_TYPE_TUNER
ignore define V4L2_INPUT_TYPE_CAMERA
ignore define V4L2_IN_ST_NO_POWER
ignore define V4L2_IN_ST_NO_SIGNAL
ignore define V4L2_IN_ST_NO_COLOR
ignore define V4L2_IN_ST_HFLIP
ignore define V4L2_IN_ST_VFLIP
ignore define V4L2_IN_ST_NO_H_LOCK
ignore define V4L2_IN_ST_COLOR_KILL
ignore define V4L2_IN_ST_NO_SYNC
ignore define V4L2_IN_ST_NO_EQU
ignore define V4L2_IN_ST_NO_CARRIER
ignore define V4L2_IN_ST_MACROVISION
ignore define V4L2_IN_ST_NO_ACCESS
ignore define V4L2_IN_ST_VTR
ignore define V4L2_IN_CAP_DV_TIMINGS
ignore define V4L2_IN_CAP_CUSTOM_TIMINGS
ignore define V4L2_IN_CAP_STD
ignore define V4L2_IN_CAP_NATIVE_SIZE
ignore define V4L2_OUTPUT_TYPE_MODULATOR
ignore define V4L2_OUTPUT_TYPE_ANALOG
ignore define V4L2_OUTPUT_TYPE_ANALOGVGAOVERLAY
ignore define V4L2_OUT_CAP_DV_TIMINGS
ignore define V4L2_OUT_CAP_CUSTOM_TIMINGS
ignore define V4L2_OUT_CAP_STD
ignore define V4L2_OUT_CAP_NATIVE_SIZE
ignore define V4L2_CTRL_ID_MASK
ignore define V4L2_CTRL_ID2CLASS(id)
ignore define V4L2_CTRL_ID2WHICH(id)
ignore define V4L2_CTRL_DRIVER_PRIV(id)
ignore define V4L2_CTRL_MAX_DIMS
ignore define V4L2_CTRL_WHICH_CUR_VAL
ignore define V4L2_CTRL_WHICH_DEF_VAL
ignore define V4L2_CTRL_FLAG_DISABLED
ignore define V4L2_CTRL_FLAG_GRABBED
ignore define V4L2_CTRL_FLAG_READ_ONLY
ignore define V4L2_CTRL_FLAG_UPDATE
ignore define V4L2_CTRL_FLAG_INACTIVE
ignore define V4L2_CTRL_FLAG_SLIDER
ignore define V4L2_CTRL_FLAG_WRITE_ONLY
ignore define V4L2_CTRL_FLAG_VOLATILE
ignore define V4L2_CTRL_FLAG_HAS_PAYLOAD
ignore define V4L2_CTRL_FLAG_EXECUTE_ON_WRITE
ignore define V4L2_CTRL_FLAG_NEXT_CTRL
ignore define V4L2_CTRL_FLAG_NEXT_COMPOUND
ignore define V4L2_CID_MAX_CTRLS
ignore define V4L2_CID_PRIVATE_BASE
ignore define V4L2_TUNER_CAP_LOW
ignore define V4L2_TUNER_CAP_NORM
ignore define V4L2_TUNER_CAP_HWSEEK_BOUNDED
ignore define V4L2_TUNER_CAP_HWSEEK_WRAP
ignore define V4L2_TUNER_CAP_STEREO
ignore define V4L2_TUNER_CAP_LANG2
ignore define V4L2_TUNER_CAP_SAP
ignore define V4L2_TUNER_CAP_LANG1
ignore define V4L2_TUNER_CAP_RDS
ignore define V4L2_TUNER_CAP_RDS_BLOCK_IO
ignore define V4L2_TUNER_CAP_RDS_CONTROLS
ignore define V4L2_TUNER_CAP_FREQ_BANDS
ignore define V4L2_TUNER_CAP_HWSEEK_PROG_LIM
ignore define V4L2_TUNER_CAP_1HZ
ignore define V4L2_TUNER_SUB_MONO
ignore define V4L2_TUNER_SUB_STEREO
ignore define V4L2_TUNER_SUB_LANG2
ignore define V4L2_TUNER_SUB_SAP
ignore define V4L2_TUNER_SUB_LANG1
ignore define V4L2_TUNER_SUB_RDS
ignore define V4L2_TUNER_MODE_MONO
ignore define V4L2_TUNER_MODE_STEREO
ignore define V4L2_TUNER_MODE_LANG2
ignore define V4L2_TUNER_MODE_SAP
ignore define V4L2_TUNER_MODE_LANG1
ignore define V4L2_TUNER_MODE_LANG1_LANG2
ignore define V4L2_BAND_MODULATION_VSB
ignore define V4L2_BAND_MODULATION_FM
ignore define V4L2_BAND_MODULATION_AM
ignore define V4L2_RDS_BLOCK_MSK
ignore define V4L2_RDS_BLOCK_A
ignore define V4L2_RDS_BLOCK_B
ignore define V4L2_RDS_BLOCK_C
ignore define V4L2_RDS_BLOCK_D
ignore define V4L2_RDS_BLOCK_C_ALT
ignore define V4L2_RDS_BLOCK_INVALID
ignore define V4L2_RDS_BLOCK_CORRECTED
ignore define V4L2_RDS_BLOCK_ERROR
ignore define V4L2_AUDCAP_STEREO
ignore define V4L2_AUDCAP_AVL
ignore define V4L2_AUDMODE_AVL
ignore define V4L2_ENC_IDX_FRAME_I
ignore define V4L2_ENC_IDX_FRAME_P
ignore define V4L2_ENC_IDX_FRAME_B
ignore define V4L2_ENC_IDX_FRAME_MASK
ignore define V4L2_ENC_IDX_ENTRIES
ignore define V4L2_ENC_CMD_START
ignore define V4L2_ENC_CMD_STOP
ignore define V4L2_ENC_CMD_PAUSE
ignore define V4L2_ENC_CMD_RESUME
ignore define V4L2_ENC_CMD_STOP_AT_GOP_END
ignore define V4L2_DEC_CMD_START
ignore define V4L2_DEC_CMD_STOP
ignore define V4L2_DEC_CMD_PAUSE
ignore define V4L2_DEC_CMD_RESUME
ignore define V4L2_DEC_CMD_START_MUTE_AUDIO
ignore define V4L2_DEC_CMD_PAUSE_TO_BLACK
ignore define V4L2_DEC_CMD_STOP_TO_BLACK
ignore define V4L2_DEC_CMD_STOP_IMMEDIATELY
ignore define V4L2_DEC_START_FMT_NONE
ignore define V4L2_DEC_START_FMT_GOP
ignore define V4L2_VBI_UNSYNC
ignore define V4L2_VBI_INTERLACED
ignore define V4L2_VBI_ITU_525_F1_START
ignore define V4L2_VBI_ITU_525_F2_START
ignore define V4L2_VBI_ITU_625_F1_START
ignore define V4L2_VBI_ITU_625_F2_START
ignore define V4L2_SLICED_TELETEXT_B
ignore define V4L2_SLICED_VPS
ignore define V4L2_SLICED_CAPTION_525
ignore define V4L2_SLICED_WSS_625
ignore define V4L2_SLICED_VBI_525
ignore define V4L2_SLICED_VBI_625
ignore define V4L2_MPEG_VBI_IVTV_TELETEXT_B
ignore define V4L2_MPEG_VBI_IVTV_CAPTION_525
ignore define V4L2_MPEG_VBI_IVTV_WSS_625
ignore define V4L2_MPEG_VBI_IVTV_VPS
ignore define V4L2_MPEG_VBI_IVTV_MAGIC0
ignore define V4L2_MPEG_VBI_IVTV_MAGIC1
ignore define V4L2_EVENT_ALL
ignore define V4L2_EVENT_VSYNC
ignore define V4L2_EVENT_EOS
ignore define V4L2_EVENT_CTRL
ignore define V4L2_EVENT_FRAME_SYNC
ignore define V4L2_EVENT_SOURCE_CHANGE
ignore define V4L2_EVENT_PRIVATE_START
ignore define V4L2_EVENT_CTRL_CH_VALUE
ignore define V4L2_EVENT_CTRL_CH_FLAGS
ignore define V4L2_EVENT_CTRL_CH_RANGE
ignore define V4L2_EVENT_SRC_CH_RESOLUTION
ignore define V4L2_EVENT_MD_FL_HAVE_FRAME_SEQ
ignore define V4L2_EVENT_SUB_FL_SEND_INITIAL
ignore define V4L2_EVENT_SUB_FL_ALLOW_FEEDBACK
ignore define V4L2_CHIP_MATCH_BRIDGE
ignore define V4L2_CHIP_MATCH_SUBDEV
ignore define V4L2_CHIP_MATCH_HOST
ignore define V4L2_CHIP_MATCH_I2C_DRIVER
ignore define V4L2_CHIP_MATCH_I2C_ADDR
ignore define V4L2_CHIP_MATCH_AC97
ignore define V4L2_CHIP_FL_READABLE
ignore define V4L2_CHIP_FL_WRITABLE
ignore define BASE_VIDIOC_PRIVATE
# Ignore reserved ioctl
ignore ioctl VIDIOC_RESERVED
# Associate ioctls with their counterparts
replace ioctl VIDIOC_DBG_S_REGISTER vidioc_dbg_g_register
replace ioctl VIDIOC_DQBUF vidioc_qbuf
replace ioctl VIDIOC_S_AUDOUT vidioc_g_audout
replace ioctl VIDIOC_S_CROP vidioc_g_crop
replace ioctl VIDIOC_S_CTRL vidioc_g_ctrl
replace ioctl VIDIOC_S_DV_TIMINGS vidioc_g_dv_timings
replace ioctl VIDIOC_S_EDID vidioc_g_edid
replace ioctl VIDIOC_S_EXT_CTRLS vidioc_g_ext_ctrls
replace ioctl VIDIOC_S_FBUF vidioc_g_fbuf
replace ioctl VIDIOC_S_FMT vidioc_g_fmt
replace ioctl VIDIOC_S_FREQUENCY vidioc_g_frequency
replace ioctl VIDIOC_S_INPUT vidioc_g_input
replace ioctl VIDIOC_S_JPEGCOMP vidioc_g_jpegcomp
replace ioctl VIDIOC_S_MODULATOR vidioc_g_modulator
replace ioctl VIDIOC_S_OUTPUT vidioc_g_output
replace ioctl VIDIOC_S_PARM vidioc_g_parm
replace ioctl VIDIOC_S_PRIORITY vidioc_g_priority
replace ioctl VIDIOC_S_SELECTION vidioc_g_selection
replace ioctl VIDIOC_S_STD vidioc_g_std
replace ioctl VIDIOC_S_AUDIO vidioc_g_audio
replace ioctl VIDIOC_S_TUNER vidioc_g_tuner
replace ioctl VIDIOC_TRY_DECODER_CMD vidioc_decoder_cmd
replace ioctl VIDIOC_TRY_ENCODER_CMD vidioc_encoder_cmd
replace ioctl VIDIOC_TRY_EXT_CTRLS vidioc_g_ext_ctrls
replace ioctl VIDIOC_TRY_FMT vidioc_g_fmt
replace ioctl VIDIOC_STREAMOFF vidioc_streamon
replace ioctl VIDIOC_UNSUBSCRIBE_EVENT vidioc_subscribe_event
replace ioctl VIDIOC_QUERY_EXT_CTRL vidioc_queryctrl
replace ioctl VIDIOC_QUERYMENU vidioc_queryctrl