cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

videodev2.h.rst.exceptions (26498B)


      1# SPDX-License-Identifier: GPL-2.0
      2
      3# Ignore header name
      4ignore define _UAPI__LINUX_VIDEODEV2_H
      5
      6#
      7# The cross reference valitator for videodev2.h DocBook never cared
      8# about enum symbols or defines. Yet, they're all (or almost all?)
      9# handled inside V4L API sections. So, for now, it is safe to just
     10# ignore. This should be revisited, as validating it helps to avoid
     11# having something not documented at the uAPI.
     12#
     13
     14# Those symbols should not be used by uAPI - don't document them
     15ignore symbol V4L2_BUF_TYPE_PRIVATE
     16ignore symbol V4L2_TUNER_DIGITAL_TV
     17ignore symbol V4L2_COLORSPACE_BT878
     18
     19# Documented enum v4l2_field
     20replace symbol V4L2_FIELD_ALTERNATE :c:type:`v4l2_field`
     21replace symbol V4L2_FIELD_ANY :c:type:`v4l2_field`
     22replace symbol V4L2_FIELD_BOTTOM :c:type:`v4l2_field`
     23replace symbol V4L2_FIELD_INTERLACED :c:type:`v4l2_field`
     24replace symbol V4L2_FIELD_INTERLACED_BT :c:type:`v4l2_field`
     25replace symbol V4L2_FIELD_INTERLACED_TB :c:type:`v4l2_field`
     26replace symbol V4L2_FIELD_NONE :c:type:`v4l2_field`
     27replace symbol V4L2_FIELD_SEQ_BT :c:type:`v4l2_field`
     28replace symbol V4L2_FIELD_SEQ_TB :c:type:`v4l2_field`
     29replace symbol V4L2_FIELD_TOP :c:type:`v4l2_field`
     30
     31# Documented enum v4l2_buf_type
     32replace symbol V4L2_BUF_TYPE_META_CAPTURE :c:type:`v4l2_buf_type`
     33replace symbol V4L2_BUF_TYPE_META_OUTPUT :c:type:`v4l2_buf_type`
     34replace symbol V4L2_BUF_TYPE_SDR_CAPTURE :c:type:`v4l2_buf_type`
     35replace symbol V4L2_BUF_TYPE_SDR_OUTPUT :c:type:`v4l2_buf_type`
     36replace symbol V4L2_BUF_TYPE_SLICED_VBI_CAPTURE :c:type:`v4l2_buf_type`
     37replace symbol V4L2_BUF_TYPE_SLICED_VBI_OUTPUT :c:type:`v4l2_buf_type`
     38replace symbol V4L2_BUF_TYPE_VBI_CAPTURE :c:type:`v4l2_buf_type`
     39replace symbol V4L2_BUF_TYPE_VBI_OUTPUT :c:type:`v4l2_buf_type`
     40replace symbol V4L2_BUF_TYPE_VIDEO_CAPTURE :c:type:`v4l2_buf_type`
     41replace symbol V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE :c:type:`v4l2_buf_type`
     42replace symbol V4L2_BUF_TYPE_VIDEO_OUTPUT :c:type:`v4l2_buf_type`
     43replace symbol V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE :c:type:`v4l2_buf_type`
     44replace symbol V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY :c:type:`v4l2_buf_type`
     45replace symbol V4L2_BUF_TYPE_VIDEO_OVERLAY :c:type:`v4l2_buf_type`
     46
     47# Documented enum v4l2_tuner_type
     48replace symbol V4L2_TUNER_ANALOG_TV :c:type:`v4l2_tuner_type`
     49replace symbol V4L2_TUNER_RADIO :c:type:`v4l2_tuner_type`
     50replace symbol V4L2_TUNER_RF :c:type:`v4l2_tuner_type`
     51replace symbol V4L2_TUNER_SDR :c:type:`v4l2_tuner_type`
     52
     53# Documented enum v4l2_memory
     54replace symbol V4L2_MEMORY_DMABUF :c:type:`v4l2_memory`
     55replace symbol V4L2_MEMORY_MMAP :c:type:`v4l2_memory`
     56replace symbol V4L2_MEMORY_OVERLAY :c:type:`v4l2_memory`
     57replace symbol V4L2_MEMORY_USERPTR :c:type:`v4l2_memory`
     58
     59# Documented enum v4l2_colorspace
     60replace symbol V4L2_COLORSPACE_470_SYSTEM_BG :c:type:`v4l2_colorspace`
     61replace symbol V4L2_COLORSPACE_470_SYSTEM_M :c:type:`v4l2_colorspace`
     62replace symbol V4L2_COLORSPACE_OPRGB :c:type:`v4l2_colorspace`
     63replace define V4L2_COLORSPACE_ADOBERGB :c:type:`v4l2_colorspace`
     64replace symbol V4L2_COLORSPACE_BT2020 :c:type:`v4l2_colorspace`
     65replace symbol V4L2_COLORSPACE_DCI_P3 :c:type:`v4l2_colorspace`
     66replace symbol V4L2_COLORSPACE_DEFAULT :c:type:`v4l2_colorspace`
     67replace symbol V4L2_COLORSPACE_JPEG :c:type:`v4l2_colorspace`
     68replace symbol V4L2_COLORSPACE_RAW :c:type:`v4l2_colorspace`
     69replace symbol V4L2_COLORSPACE_REC709 :c:type:`v4l2_colorspace`
     70replace symbol V4L2_COLORSPACE_SMPTE170M :c:type:`v4l2_colorspace`
     71replace symbol V4L2_COLORSPACE_SMPTE240M :c:type:`v4l2_colorspace`
     72replace symbol V4L2_COLORSPACE_SRGB :c:type:`v4l2_colorspace`
     73
     74# Documented enum v4l2_xfer_func
     75replace symbol V4L2_XFER_FUNC_709 :c:type:`v4l2_xfer_func`
     76replace symbol V4L2_XFER_FUNC_OPRGB :c:type:`v4l2_xfer_func`
     77replace define V4L2_XFER_FUNC_ADOBERGB :c:type:`v4l2_xfer_func`
     78replace symbol V4L2_XFER_FUNC_DCI_P3 :c:type:`v4l2_xfer_func`
     79replace symbol V4L2_XFER_FUNC_DEFAULT :c:type:`v4l2_xfer_func`
     80replace symbol V4L2_XFER_FUNC_NONE :c:type:`v4l2_xfer_func`
     81replace symbol V4L2_XFER_FUNC_SMPTE2084 :c:type:`v4l2_xfer_func`
     82replace symbol V4L2_XFER_FUNC_SMPTE240M :c:type:`v4l2_xfer_func`
     83replace symbol V4L2_XFER_FUNC_SRGB :c:type:`v4l2_xfer_func`
     84
     85# Documented enum v4l2_ycbcr_encoding
     86replace symbol V4L2_YCBCR_ENC_601 :c:type:`v4l2_ycbcr_encoding`
     87replace symbol V4L2_YCBCR_ENC_709 :c:type:`v4l2_ycbcr_encoding`
     88replace symbol V4L2_YCBCR_ENC_BT2020 :c:type:`v4l2_ycbcr_encoding`
     89replace symbol V4L2_YCBCR_ENC_BT2020_CONST_LUM :c:type:`v4l2_ycbcr_encoding`
     90replace symbol V4L2_YCBCR_ENC_DEFAULT :c:type:`v4l2_ycbcr_encoding`
     91replace symbol V4L2_YCBCR_ENC_SYCC :c:type:`v4l2_ycbcr_encoding`
     92replace symbol V4L2_YCBCR_ENC_XV601 :c:type:`v4l2_ycbcr_encoding`
     93replace symbol V4L2_YCBCR_ENC_XV709 :c:type:`v4l2_ycbcr_encoding`
     94replace symbol V4L2_YCBCR_ENC_SMPTE240M :c:type:`v4l2_ycbcr_encoding`
     95
     96# Documented enum v4l2_hsv_encoding
     97replace symbol V4L2_HSV_ENC_180 :c:type:`v4l2_hsv_encoding`
     98replace symbol V4L2_HSV_ENC_256 :c:type:`v4l2_hsv_encoding`
     99
    100# Documented enum v4l2_quantization
    101replace symbol V4L2_QUANTIZATION_DEFAULT :c:type:`v4l2_quantization`
    102replace symbol V4L2_QUANTIZATION_FULL_RANGE :c:type:`v4l2_quantization`
    103replace symbol V4L2_QUANTIZATION_LIM_RANGE :c:type:`v4l2_quantization`
    104
    105# Documented enum v4l2_priority
    106replace symbol V4L2_PRIORITY_BACKGROUND :c:type:`v4l2_priority`
    107replace symbol V4L2_PRIORITY_DEFAULT :c:type:`v4l2_priority`
    108replace symbol V4L2_PRIORITY_INTERACTIVE :c:type:`v4l2_priority`
    109replace symbol V4L2_PRIORITY_RECORD :c:type:`v4l2_priority`
    110replace symbol V4L2_PRIORITY_UNSET :c:type:`v4l2_priority`
    111
    112# Documented enum v4l2_frmsizetypes
    113replace symbol V4L2_FRMSIZE_TYPE_CONTINUOUS :c:type:`v4l2_frmsizetypes`
    114replace symbol V4L2_FRMSIZE_TYPE_DISCRETE :c:type:`v4l2_frmsizetypes`
    115replace symbol V4L2_FRMSIZE_TYPE_STEPWISE :c:type:`v4l2_frmsizetypes`
    116
    117# Documented enum frmivaltypes
    118replace symbol V4L2_FRMIVAL_TYPE_CONTINUOUS :c:type:`v4l2_frmivaltypes`
    119replace symbol V4L2_FRMIVAL_TYPE_DISCRETE :c:type:`v4l2_frmivaltypes`
    120replace symbol V4L2_FRMIVAL_TYPE_STEPWISE :c:type:`v4l2_frmivaltypes`
    121
    122# Documented enum :c:type:`v4l2_ctrl_type`
    123replace symbol V4L2_CTRL_COMPOUND_TYPES vidioc_queryctrl
    124
    125replace symbol V4L2_CTRL_TYPE_BITMASK :c:type:`v4l2_ctrl_type`
    126replace symbol V4L2_CTRL_TYPE_BOOLEAN :c:type:`v4l2_ctrl_type`
    127replace symbol V4L2_CTRL_TYPE_BUTTON :c:type:`v4l2_ctrl_type`
    128replace symbol V4L2_CTRL_TYPE_CTRL_CLASS :c:type:`v4l2_ctrl_type`
    129replace symbol V4L2_CTRL_TYPE_INTEGER :c:type:`v4l2_ctrl_type`
    130replace symbol V4L2_CTRL_TYPE_INTEGER64 :c:type:`v4l2_ctrl_type`
    131replace symbol V4L2_CTRL_TYPE_INTEGER_MENU :c:type:`v4l2_ctrl_type`
    132replace symbol V4L2_CTRL_TYPE_MENU :c:type:`v4l2_ctrl_type`
    133replace symbol V4L2_CTRL_TYPE_STRING :c:type:`v4l2_ctrl_type`
    134replace symbol V4L2_CTRL_TYPE_U16 :c:type:`v4l2_ctrl_type`
    135replace symbol V4L2_CTRL_TYPE_U32 :c:type:`v4l2_ctrl_type`
    136replace symbol V4L2_CTRL_TYPE_U8 :c:type:`v4l2_ctrl_type`
    137replace symbol V4L2_CTRL_TYPE_MPEG2_SEQUENCE :c:type:`v4l2_ctrl_type`
    138replace symbol V4L2_CTRL_TYPE_MPEG2_PICTURE :c:type:`v4l2_ctrl_type`
    139replace symbol V4L2_CTRL_TYPE_MPEG2_QUANTISATION :c:type:`v4l2_ctrl_type`
    140replace symbol V4L2_CTRL_TYPE_H264_SPS :c:type:`v4l2_ctrl_type`
    141replace symbol V4L2_CTRL_TYPE_H264_PPS :c:type:`v4l2_ctrl_type`
    142replace symbol V4L2_CTRL_TYPE_H264_SCALING_MATRIX :c:type:`v4l2_ctrl_type`
    143replace symbol V4L2_CTRL_TYPE_H264_PRED_WEIGHTS :c:type:`v4l2_ctrl_type`
    144replace symbol V4L2_CTRL_TYPE_H264_SLICE_PARAMS :c:type:`v4l2_ctrl_type`
    145replace symbol V4L2_CTRL_TYPE_H264_DECODE_PARAMS :c:type:`v4l2_ctrl_type`
    146replace symbol V4L2_CTRL_TYPE_HEVC_SPS :c:type:`v4l2_ctrl_type`
    147replace symbol V4L2_CTRL_TYPE_HEVC_PPS :c:type:`v4l2_ctrl_type`
    148replace symbol V4L2_CTRL_TYPE_HEVC_SLICE_PARAMS :c:type:`v4l2_ctrl_type`
    149replace symbol V4L2_CTRL_TYPE_AREA :c:type:`v4l2_ctrl_type`
    150replace symbol V4L2_CTRL_TYPE_FWHT_PARAMS :c:type:`v4l2_ctrl_type`
    151replace symbol V4L2_CTRL_TYPE_VP8_FRAME :c:type:`v4l2_ctrl_type`
    152replace symbol V4L2_CTRL_TYPE_VP9_COMPRESSED_HDR :c:type:`v4l2_ctrl_type`
    153replace symbol V4L2_CTRL_TYPE_VP9_FRAME :c:type:`v4l2_ctrl_type`
    154replace symbol V4L2_CTRL_TYPE_HDR10_CLL_INFO :c:type:`v4l2_ctrl_type`
    155replace symbol V4L2_CTRL_TYPE_HDR10_MASTERING_DISPLAY :c:type:`v4l2_ctrl_type`
    156
    157# V4L2 capability defines
    158replace define V4L2_CAP_VIDEO_CAPTURE device-capabilities
    159replace define V4L2_CAP_VIDEO_CAPTURE_MPLANE device-capabilities
    160replace define V4L2_CAP_VIDEO_OUTPUT device-capabilities
    161replace define V4L2_CAP_VIDEO_OUTPUT_MPLANE device-capabilities
    162replace define V4L2_CAP_VIDEO_M2M device-capabilities
    163replace define V4L2_CAP_VIDEO_M2M_MPLANE device-capabilities
    164replace define V4L2_CAP_VIDEO_OVERLAY device-capabilities
    165replace define V4L2_CAP_VBI_CAPTURE device-capabilities
    166replace define V4L2_CAP_VBI_OUTPUT device-capabilities
    167replace define V4L2_CAP_SLICED_VBI_CAPTURE device-capabilities
    168replace define V4L2_CAP_SLICED_VBI_OUTPUT device-capabilities
    169replace define V4L2_CAP_RDS_CAPTURE device-capabilities
    170replace define V4L2_CAP_VIDEO_OUTPUT_OVERLAY device-capabilities
    171replace define V4L2_CAP_HW_FREQ_SEEK device-capabilities
    172replace define V4L2_CAP_RDS_OUTPUT device-capabilities
    173replace define V4L2_CAP_TUNER device-capabilities
    174replace define V4L2_CAP_AUDIO device-capabilities
    175replace define V4L2_CAP_RADIO device-capabilities
    176replace define V4L2_CAP_MODULATOR device-capabilities
    177replace define V4L2_CAP_SDR_CAPTURE device-capabilities
    178replace define V4L2_CAP_EXT_PIX_FORMAT device-capabilities
    179replace define V4L2_CAP_SDR_OUTPUT device-capabilities
    180replace define V4L2_CAP_META_CAPTURE device-capabilities
    181replace define V4L2_CAP_READWRITE device-capabilities
    182replace define V4L2_CAP_ASYNCIO device-capabilities
    183replace define V4L2_CAP_STREAMING device-capabilities
    184replace define V4L2_CAP_META_OUTPUT device-capabilities
    185replace define V4L2_CAP_DEVICE_CAPS device-capabilities
    186replace define V4L2_CAP_TOUCH device-capabilities
    187replace define V4L2_CAP_IO_MC device-capabilities
    188
    189# V4L2 pix flags
    190replace define V4L2_PIX_FMT_PRIV_MAGIC :c:type:`v4l2_pix_format`
    191replace define V4L2_PIX_FMT_FLAG_PREMUL_ALPHA format-flags
    192replace define V4L2_PIX_FMT_HM12 :c:type:`v4l2_pix_format`
    193replace define V4L2_PIX_FMT_SUNXI_TILED_NV12 :c:type:`v4l2_pix_format`
    194
    195# V4L2 format flags
    196replace define V4L2_FMT_FLAG_COMPRESSED fmtdesc-flags
    197replace define V4L2_FMT_FLAG_EMULATED fmtdesc-flags
    198replace define V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM fmtdesc-flags
    199replace define V4L2_FMT_FLAG_DYN_RESOLUTION fmtdesc-flags
    200replace define V4L2_FMT_FLAG_ENC_CAP_FRAME_INTERVAL fmtdesc-flags
    201replace define V4L2_FMT_FLAG_CSC_COLORSPACE fmtdesc-flags
    202replace define V4L2_FMT_FLAG_CSC_XFER_FUNC fmtdesc-flags
    203replace define V4L2_FMT_FLAG_CSC_YCBCR_ENC fmtdesc-flags
    204replace define V4L2_FMT_FLAG_CSC_HSV_ENC fmtdesc-flags
    205replace define V4L2_FMT_FLAG_CSC_QUANTIZATION fmtdesc-flags
    206
    207# V4L2 timecode types
    208replace define V4L2_TC_TYPE_24FPS timecode-type
    209replace define V4L2_TC_TYPE_25FPS timecode-type
    210replace define V4L2_TC_TYPE_30FPS timecode-type
    211replace define V4L2_TC_TYPE_50FPS timecode-type
    212replace define V4L2_TC_TYPE_60FPS timecode-type
    213
    214# V4L2 timecode flags
    215replace define V4L2_TC_FLAG_DROPFRAME timecode-flags
    216replace define V4L2_TC_FLAG_COLORFRAME timecode-flags
    217replace define V4L2_TC_USERBITS_field timecode-flags
    218replace define V4L2_TC_USERBITS_USERDEFINED timecode-flags
    219replace define V4L2_TC_USERBITS_8BITCHARS timecode-flags
    220
    221# V4L2 JPEG markers
    222replace define V4L2_JPEG_MARKER_DHT jpeg-markers
    223replace define V4L2_JPEG_MARKER_DQT jpeg-markers
    224replace define V4L2_JPEG_MARKER_DRI jpeg-markers
    225replace define V4L2_JPEG_MARKER_COM jpeg-markers
    226replace define V4L2_JPEG_MARKER_APP jpeg-markers
    227
    228# V4L2 framebuffer caps and flags
    229
    230replace define V4L2_FBUF_CAP_EXTERNOVERLAY framebuffer-cap
    231replace define V4L2_FBUF_CAP_CHROMAKEY framebuffer-cap
    232replace define V4L2_FBUF_CAP_LIST_CLIPPING framebuffer-cap
    233replace define V4L2_FBUF_CAP_BITMAP_CLIPPING framebuffer-cap
    234replace define V4L2_FBUF_CAP_LOCAL_ALPHA framebuffer-cap
    235replace define V4L2_FBUF_CAP_GLOBAL_ALPHA framebuffer-cap
    236replace define V4L2_FBUF_CAP_LOCAL_INV_ALPHA framebuffer-cap
    237replace define V4L2_FBUF_CAP_SRC_CHROMAKEY framebuffer-cap
    238
    239replace define V4L2_FBUF_FLAG_PRIMARY framebuffer-flags
    240replace define V4L2_FBUF_FLAG_OVERLAY framebuffer-flags
    241replace define V4L2_FBUF_FLAG_CHROMAKEY framebuffer-flags
    242replace define V4L2_FBUF_FLAG_LOCAL_ALPHA framebuffer-flags
    243replace define V4L2_FBUF_FLAG_GLOBAL_ALPHA framebuffer-flags
    244replace define V4L2_FBUF_FLAG_LOCAL_INV_ALPHA framebuffer-flags
    245replace define V4L2_FBUF_FLAG_SRC_CHROMAKEY framebuffer-flags
    246
    247# Used on VIDIOC_G_PARM
    248
    249replace define V4L2_MODE_HIGHQUALITY parm-flags
    250replace define V4L2_CAP_TIMEPERFRAME :c:type:`v4l2_captureparm`
    251
    252# The V4L2_STD_foo are all defined at v4l2_std_id table
    253
    254replace define V4L2_STD_PAL_B v4l2-std-id
    255replace define V4L2_STD_PAL_B1 v4l2-std-id
    256replace define V4L2_STD_PAL_G v4l2-std-id
    257replace define V4L2_STD_PAL_H v4l2-std-id
    258replace define V4L2_STD_PAL_I v4l2-std-id
    259replace define V4L2_STD_PAL_D v4l2-std-id
    260replace define V4L2_STD_PAL_D1 v4l2-std-id
    261replace define V4L2_STD_PAL_K v4l2-std-id
    262replace define V4L2_STD_PAL_M v4l2-std-id
    263replace define V4L2_STD_PAL_N v4l2-std-id
    264replace define V4L2_STD_PAL_Nc v4l2-std-id
    265replace define V4L2_STD_PAL_60 v4l2-std-id
    266replace define V4L2_STD_NTSC_M v4l2-std-id
    267replace define V4L2_STD_NTSC_M_JP v4l2-std-id
    268replace define V4L2_STD_NTSC_443 v4l2-std-id
    269replace define V4L2_STD_NTSC_M_KR v4l2-std-id
    270replace define V4L2_STD_SECAM_B v4l2-std-id
    271replace define V4L2_STD_SECAM_D v4l2-std-id
    272replace define V4L2_STD_SECAM_G v4l2-std-id
    273replace define V4L2_STD_SECAM_H v4l2-std-id
    274replace define V4L2_STD_SECAM_K v4l2-std-id
    275replace define V4L2_STD_SECAM_K1 v4l2-std-id
    276replace define V4L2_STD_SECAM_L v4l2-std-id
    277replace define V4L2_STD_SECAM_LC v4l2-std-id
    278replace define V4L2_STD_ATSC_8_VSB v4l2-std-id
    279replace define V4L2_STD_ATSC_16_VSB v4l2-std-id
    280replace define V4L2_STD_NTSC v4l2-std-id
    281replace define V4L2_STD_SECAM_DK v4l2-std-id
    282replace define V4L2_STD_SECAM v4l2-std-id
    283replace define V4L2_STD_PAL_BG v4l2-std-id
    284replace define V4L2_STD_PAL_DK v4l2-std-id
    285replace define V4L2_STD_PAL v4l2-std-id
    286replace define V4L2_STD_B v4l2-std-id
    287replace define V4L2_STD_G v4l2-std-id
    288replace define V4L2_STD_H v4l2-std-id
    289replace define V4L2_STD_L v4l2-std-id
    290replace define V4L2_STD_GH v4l2-std-id
    291replace define V4L2_STD_DK v4l2-std-id
    292replace define V4L2_STD_BG v4l2-std-id
    293replace define V4L2_STD_MN v4l2-std-id
    294replace define V4L2_STD_MTS v4l2-std-id
    295replace define V4L2_STD_525_60 v4l2-std-id
    296replace define V4L2_STD_625_50 v4l2-std-id
    297replace define V4L2_STD_ATSC v4l2-std-id
    298replace define V4L2_STD_UNKNOWN v4l2-std-id
    299replace define V4L2_STD_ALL v4l2-std-id
    300
    301# V4L2 DT BT timings definitions
    302
    303replace define V4L2_DV_PROGRESSIVE :c:type:`v4l2_bt_timings`
    304replace define V4L2_DV_INTERLACED :c:type:`v4l2_bt_timings`
    305
    306replace define V4L2_DV_VSYNC_POS_POL :c:type:`v4l2_bt_timings`
    307replace define V4L2_DV_HSYNC_POS_POL :c:type:`v4l2_bt_timings`
    308
    309replace define V4L2_DV_BT_STD_CEA861 dv-bt-standards
    310replace define V4L2_DV_BT_STD_DMT dv-bt-standards
    311replace define V4L2_DV_BT_STD_CVT dv-bt-standards
    312replace define V4L2_DV_BT_STD_GTF dv-bt-standards
    313replace define V4L2_DV_BT_STD_SDI dv-bt-standards
    314
    315replace define V4L2_DV_FL_REDUCED_BLANKING dv-bt-standards
    316replace define V4L2_DV_FL_CAN_REDUCE_FPS dv-bt-standards
    317replace define V4L2_DV_FL_CAN_DETECT_REDUCED_FPS dv-bt-standards
    318replace define V4L2_DV_FL_REDUCED_FPS dv-bt-standards
    319replace define V4L2_DV_FL_HALF_LINE dv-bt-standards
    320replace define V4L2_DV_FL_IS_CE_VIDEO dv-bt-standards
    321replace define V4L2_DV_FL_FIRST_FIELD_EXTRA_LINE dv-bt-standards
    322replace define V4L2_DV_FL_HAS_PICTURE_ASPECT dv-bt-standards
    323replace define V4L2_DV_FL_HAS_CEA861_VIC dv-bt-standards
    324replace define V4L2_DV_FL_HAS_HDMI_VIC dv-bt-standards
    325
    326replace define V4L2_DV_BT_656_1120 dv-timing-types
    327
    328replace define V4L2_DV_BT_CAP_INTERLACED framebuffer-cap
    329replace define V4L2_DV_BT_CAP_PROGRESSIVE framebuffer-cap
    330replace define V4L2_DV_BT_CAP_REDUCED_BLANKING framebuffer-cap
    331replace define V4L2_DV_BT_CAP_CUSTOM framebuffer-cap
    332
    333# V4L2 input
    334
    335replace define V4L2_INPUT_TYPE_TUNER input-type
    336replace define V4L2_INPUT_TYPE_CAMERA input-type
    337replace define V4L2_INPUT_TYPE_TOUCH input-type
    338
    339replace define V4L2_IN_ST_NO_POWER input-status
    340replace define V4L2_IN_ST_NO_SIGNAL input-status
    341replace define V4L2_IN_ST_NO_COLOR input-status
    342replace define V4L2_IN_ST_HFLIP input-status
    343replace define V4L2_IN_ST_VFLIP input-status
    344replace define V4L2_IN_ST_NO_H_LOCK input-status
    345replace define V4L2_IN_ST_COLOR_KILL input-status
    346replace define V4L2_IN_ST_NO_SYNC input-status
    347replace define V4L2_IN_ST_NO_EQU input-status
    348replace define V4L2_IN_ST_NO_CARRIER input-status
    349replace define V4L2_IN_ST_MACROVISION input-status
    350replace define V4L2_IN_ST_NO_ACCESS input-status
    351replace define V4L2_IN_ST_VTR input-status
    352replace define V4L2_IN_ST_NO_V_LOCK input-status
    353replace define V4L2_IN_ST_NO_STD_LOCK input-status
    354
    355replace define V4L2_IN_CAP_DV_TIMINGS input-capabilities
    356replace define V4L2_IN_CAP_STD input-capabilities
    357replace define V4L2_IN_CAP_NATIVE_SIZE input-capabilities
    358
    359# V4L2 output
    360
    361replace define V4L2_OUTPUT_TYPE_MODULATOR output-type
    362replace define V4L2_OUTPUT_TYPE_ANALOG output-type
    363replace define V4L2_OUTPUT_TYPE_ANALOGVGAOVERLAY output-type
    364
    365replace define V4L2_OUT_CAP_DV_TIMINGS output-capabilities
    366replace define V4L2_OUT_CAP_STD output-capabilities
    367replace define V4L2_OUT_CAP_NATIVE_SIZE output-capabilities
    368
    369# V4L2 control flags
    370
    371replace define V4L2_CTRL_FLAG_DISABLED control-flags
    372replace define V4L2_CTRL_FLAG_GRABBED control-flags
    373replace define V4L2_CTRL_FLAG_READ_ONLY control-flags
    374replace define V4L2_CTRL_FLAG_UPDATE control-flags
    375replace define V4L2_CTRL_FLAG_INACTIVE control-flags
    376replace define V4L2_CTRL_FLAG_SLIDER control-flags
    377replace define V4L2_CTRL_FLAG_WRITE_ONLY control-flags
    378replace define V4L2_CTRL_FLAG_VOLATILE control-flags
    379replace define V4L2_CTRL_FLAG_HAS_PAYLOAD control-flags
    380replace define V4L2_CTRL_FLAG_EXECUTE_ON_WRITE control-flags
    381replace define V4L2_CTRL_FLAG_MODIFY_LAYOUT control-flags
    382
    383replace define V4L2_CTRL_FLAG_NEXT_CTRL control
    384replace define V4L2_CTRL_FLAG_NEXT_COMPOUND control
    385replace define V4L2_CID_PRIVATE_BASE control
    386
    387# V4L2 tuner
    388
    389replace define V4L2_TUNER_CAP_LOW tuner-capability
    390replace define V4L2_TUNER_CAP_NORM tuner-capability
    391replace define V4L2_TUNER_CAP_HWSEEK_BOUNDED tuner-capability
    392replace define V4L2_TUNER_CAP_HWSEEK_WRAP tuner-capability
    393replace define V4L2_TUNER_CAP_STEREO tuner-capability
    394replace define V4L2_TUNER_CAP_LANG2 tuner-capability
    395replace define V4L2_TUNER_CAP_SAP tuner-capability
    396replace define V4L2_TUNER_CAP_LANG1 tuner-capability
    397replace define V4L2_TUNER_CAP_RDS tuner-capability
    398replace define V4L2_TUNER_CAP_RDS_BLOCK_IO tuner-capability
    399replace define V4L2_TUNER_CAP_RDS_CONTROLS tuner-capability
    400replace define V4L2_TUNER_CAP_FREQ_BANDS tuner-capability
    401replace define V4L2_TUNER_CAP_HWSEEK_PROG_LIM tuner-capability
    402replace define V4L2_TUNER_CAP_1HZ tuner-capability
    403
    404replace define V4L2_TUNER_SUB_MONO tuner-rxsubchans
    405replace define V4L2_TUNER_SUB_STEREO tuner-rxsubchans
    406replace define V4L2_TUNER_SUB_LANG2 tuner-rxsubchans
    407replace define V4L2_TUNER_SUB_SAP tuner-rxsubchans
    408replace define V4L2_TUNER_SUB_LANG1 tuner-rxsubchans
    409replace define V4L2_TUNER_SUB_RDS tuner-rxsubchans
    410
    411replace define V4L2_TUNER_MODE_MONO tuner-audmode
    412replace define V4L2_TUNER_MODE_STEREO tuner-audmode
    413replace define V4L2_TUNER_MODE_LANG2 tuner-audmode
    414replace define V4L2_TUNER_MODE_SAP tuner-audmode
    415replace define V4L2_TUNER_MODE_LANG1 tuner-audmode
    416replace define V4L2_TUNER_MODE_LANG1_LANG2 tuner-audmode
    417
    418replace define V4L2_BAND_MODULATION_VSB band-modulation
    419replace define V4L2_BAND_MODULATION_FM band-modulation
    420replace define V4L2_BAND_MODULATION_AM band-modulation
    421
    422replace define V4L2_RDS_BLOCK_MSK v4l2-rds-block
    423replace define V4L2_RDS_BLOCK_A v4l2-rds-block
    424replace define V4L2_RDS_BLOCK_B v4l2-rds-block
    425replace define V4L2_RDS_BLOCK_C v4l2-rds-block
    426replace define V4L2_RDS_BLOCK_D v4l2-rds-block
    427replace define V4L2_RDS_BLOCK_C_ALT v4l2-rds-block
    428replace define V4L2_RDS_BLOCK_INVALID v4l2-rds-block
    429replace define V4L2_RDS_BLOCK_CORRECTED v4l2-rds-block
    430replace define V4L2_RDS_BLOCK_ERROR v4l2-rds-block
    431
    432# V4L2 audio
    433
    434replace define V4L2_AUDCAP_STEREO audio-capability
    435replace define V4L2_AUDCAP_AVL audio-capability
    436
    437replace define V4L2_AUDMODE_AVL audio-mode
    438
    439# MPEG
    440
    441replace define V4L2_ENC_IDX_FRAME_I :c:type:`v4l2_enc_idx`
    442replace define V4L2_ENC_IDX_FRAME_P :c:type:`v4l2_enc_idx`
    443replace define V4L2_ENC_IDX_FRAME_B :c:type:`v4l2_enc_idx`
    444replace define V4L2_ENC_IDX_FRAME_MASK :c:type:`v4l2_enc_idx`
    445replace define V4L2_ENC_IDX_ENTRIES :c:type:`v4l2_enc_idx`
    446
    447replace define V4L2_ENC_CMD_START encoder-cmds
    448replace define V4L2_ENC_CMD_STOP encoder-cmds
    449replace define V4L2_ENC_CMD_PAUSE encoder-cmds
    450replace define V4L2_ENC_CMD_RESUME encoder-cmds
    451
    452replace define V4L2_ENC_CMD_STOP_AT_GOP_END encoder-flags
    453
    454replace define V4L2_DEC_CMD_START decoder-cmds
    455replace define V4L2_DEC_CMD_STOP decoder-cmds
    456replace define V4L2_DEC_CMD_PAUSE decoder-cmds
    457replace define V4L2_DEC_CMD_RESUME decoder-cmds
    458replace define V4L2_DEC_CMD_FLUSH decoder-cmds
    459
    460replace define V4L2_DEC_CMD_START_MUTE_AUDIO decoder-cmds
    461replace define V4L2_DEC_CMD_PAUSE_TO_BLACK decoder-cmds
    462replace define V4L2_DEC_CMD_STOP_TO_BLACK decoder-cmds
    463replace define V4L2_DEC_CMD_STOP_IMMEDIATELY decoder-cmds
    464
    465replace define V4L2_DEC_START_FMT_NONE decoder-cmds
    466replace define V4L2_DEC_START_FMT_GOP decoder-cmds
    467
    468# V4L2 VBI
    469
    470replace define V4L2_VBI_UNSYNC vbifmt-flags
    471replace define V4L2_VBI_INTERLACED vbifmt-flags
    472
    473replace define V4L2_VBI_ITU_525_F1_START :c:type:`v4l2_vbi_format`
    474replace define V4L2_VBI_ITU_525_F2_START :c:type:`v4l2_vbi_format`
    475replace define V4L2_VBI_ITU_625_F1_START :c:type:`v4l2_vbi_format`
    476replace define V4L2_VBI_ITU_625_F2_START :c:type:`v4l2_vbi_format`
    477
    478
    479replace define V4L2_SLICED_TELETEXT_B vbi-services
    480replace define V4L2_SLICED_VPS vbi-services
    481replace define V4L2_SLICED_CAPTION_525 vbi-services
    482replace define V4L2_SLICED_WSS_625 vbi-services
    483replace define V4L2_SLICED_VBI_525 vbi-services
    484replace define V4L2_SLICED_VBI_625 vbi-services
    485
    486replace define V4L2_MPEG_VBI_IVTV_TELETEXT_B ITV0-Line-Identifier-Constants
    487replace define V4L2_MPEG_VBI_IVTV_CAPTION_525 ITV0-Line-Identifier-Constants
    488replace define V4L2_MPEG_VBI_IVTV_WSS_625 ITV0-Line-Identifier-Constants
    489replace define V4L2_MPEG_VBI_IVTV_VPS ITV0-Line-Identifier-Constants
    490
    491replace define V4L2_MPEG_VBI_IVTV_MAGIC0 v4l2-mpeg-vbi-fmt-ivtv-magic
    492replace define V4L2_MPEG_VBI_IVTV_MAGIC1 v4l2-mpeg-vbi-fmt-ivtv-magic
    493
    494# V4L2 events
    495
    496replace define V4L2_EVENT_ALL event-type
    497replace define V4L2_EVENT_VSYNC event-type
    498replace define V4L2_EVENT_EOS event-type
    499replace define V4L2_EVENT_CTRL event-type
    500replace define V4L2_EVENT_FRAME_SYNC event-type
    501replace define V4L2_EVENT_SOURCE_CHANGE event-type
    502replace define V4L2_EVENT_MOTION_DET event-type
    503replace define V4L2_EVENT_PRIVATE_START event-type
    504
    505replace define V4L2_EVENT_CTRL_CH_VALUE ctrl-changes-flags
    506replace define V4L2_EVENT_CTRL_CH_FLAGS ctrl-changes-flags
    507replace define V4L2_EVENT_CTRL_CH_RANGE ctrl-changes-flags
    508
    509replace define V4L2_EVENT_SRC_CH_RESOLUTION src-changes-flags
    510
    511replace define V4L2_EVENT_MD_FL_HAVE_FRAME_SEQ :c:type:`v4l2_event_motion_det`
    512
    513replace define V4L2_EVENT_SUB_FL_SEND_INITIAL event-flags
    514replace define V4L2_EVENT_SUB_FL_ALLOW_FEEDBACK event-flags
    515
    516# V4L2 debugging
    517replace define V4L2_CHIP_MATCH_BRIDGE vidioc_dbg_g_register
    518replace define V4L2_CHIP_MATCH_SUBDEV vidioc_dbg_g_register
    519replace define V4L2_CHIP_MATCH_HOST vidioc_dbg_g_register
    520replace define V4L2_CHIP_MATCH_I2C_DRIVER vidioc_dbg_g_register
    521replace define V4L2_CHIP_MATCH_I2C_ADDR vidioc_dbg_g_register
    522replace define V4L2_CHIP_MATCH_AC97 vidioc_dbg_g_register
    523
    524replace define V4L2_CHIP_FL_READABLE vidioc_dbg_g_register
    525replace define V4L2_CHIP_FL_WRITABLE vidioc_dbg_g_register
    526
    527# Ignore reserved ioctl and ancillary macros
    528
    529ignore define VIDEO_MAX_FRAME
    530ignore define VIDEO_MAX_PLANES
    531ignore define v4l2_fourcc
    532ignore define v4l2_fourcc_be
    533ignore define V4L2_FIELD_HAS_TOP
    534ignore define V4L2_FIELD_HAS_BOTTOM
    535ignore define V4L2_FIELD_HAS_BOTH
    536ignore define V4L2_FIELD_HAS_T_OR_B
    537ignore define V4L2_TYPE_IS_MULTIPLANAR
    538ignore define V4L2_TYPE_IS_OUTPUT
    539ignore define V4L2_TUNER_ADC
    540ignore define V4L2_MAP_COLORSPACE_DEFAULT
    541ignore define V4L2_MAP_XFER_FUNC_DEFAULT
    542ignore define V4L2_MAP_YCBCR_ENC_DEFAULT
    543ignore define V4L2_DV_BT_BLANKING_WIDTH
    544ignore define V4L2_DV_BT_FRAME_WIDTH
    545ignore define V4L2_DV_BT_BLANKING_HEIGHT
    546ignore define V4L2_DV_BT_FRAME_HEIGHT
    547ignore define V4L2_IN_CAP_CUSTOM_TIMINGS
    548ignore define V4L2_CTRL_ID_MASK
    549ignore define V4L2_CTRL_ID2CLASS
    550ignore define V4L2_CTRL_ID2WHICH
    551ignore define V4L2_CTRL_DRIVER_PRIV
    552ignore define V4L2_CTRL_MAX_DIMS
    553ignore define V4L2_CTRL_WHICH_CUR_VAL
    554ignore define V4L2_CTRL_WHICH_DEF_VAL
    555ignore define V4L2_CTRL_WHICH_REQUEST_VAL
    556ignore define V4L2_OUT_CAP_CUSTOM_TIMINGS
    557ignore define V4L2_CID_MAX_CTRLS
    558
    559ignore define BASE_VIDIOC_PRIVATE
    560
    561# Associate ioctls with their counterparts
    562replace ioctl VIDIOC_DBG_S_REGISTER vidioc_dbg_g_register
    563replace ioctl VIDIOC_DQBUF vidioc_qbuf
    564replace ioctl VIDIOC_S_AUDOUT vidioc_g_audout
    565replace ioctl VIDIOC_S_CROP vidioc_g_crop
    566replace ioctl VIDIOC_S_CTRL vidioc_g_ctrl
    567replace ioctl VIDIOC_S_DV_TIMINGS vidioc_g_dv_timings
    568replace ioctl VIDIOC_S_EDID vidioc_g_edid
    569replace ioctl VIDIOC_S_EXT_CTRLS vidioc_g_ext_ctrls
    570replace ioctl VIDIOC_S_FBUF vidioc_g_fbuf
    571replace ioctl VIDIOC_S_FMT vidioc_g_fmt
    572replace ioctl VIDIOC_S_FREQUENCY vidioc_g_frequency
    573replace ioctl VIDIOC_S_INPUT vidioc_g_input
    574replace ioctl VIDIOC_S_JPEGCOMP vidioc_g_jpegcomp
    575replace ioctl VIDIOC_S_MODULATOR vidioc_g_modulator
    576replace ioctl VIDIOC_S_OUTPUT vidioc_g_output
    577replace ioctl VIDIOC_S_PARM vidioc_g_parm
    578replace ioctl VIDIOC_S_PRIORITY vidioc_g_priority
    579replace ioctl VIDIOC_S_SELECTION vidioc_g_selection
    580replace ioctl VIDIOC_S_STD vidioc_g_std
    581replace ioctl VIDIOC_S_AUDIO vidioc_g_audio
    582replace ioctl VIDIOC_S_TUNER vidioc_g_tuner
    583replace ioctl VIDIOC_TRY_DECODER_CMD vidioc_decoder_cmd
    584replace ioctl VIDIOC_TRY_ENCODER_CMD vidioc_encoder_cmd
    585replace ioctl VIDIOC_TRY_EXT_CTRLS vidioc_g_ext_ctrls
    586replace ioctl VIDIOC_TRY_FMT vidioc_g_fmt
    587replace ioctl VIDIOC_STREAMOFF vidioc_streamon
    588replace ioctl VIDIOC_QUERY_EXT_CTRL vidioc_queryctrl
    589replace ioctl VIDIOC_QUERYMENU vidioc_queryctrl