videodev2.h.rst.exceptions 27 KB

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