PageRenderTime 52ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/Documentation/media/uapi/v4l/pixfmt-reserved.rst

https://gitlab.com/kush/linux
ReStructuredText | 283 lines | 230 code | 53 blank | 0 comment | 0 complexity | 2d9cf57378a4e91e87d9a50a15aece23 MD5 | raw file
  1. .. Permission is granted to copy, distribute and/or modify this
  2. .. document under the terms of the GNU Free Documentation License,
  3. .. Version 1.1 or any later version published by the Free Software
  4. .. Foundation, with no Invariant Sections, no Front-Cover Texts
  5. .. and no Back-Cover Texts. A copy of the license is included at
  6. .. Documentation/media/uapi/fdl-appendix.rst.
  7. ..
  8. .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
  9. .. _pixfmt-reserved:
  10. ***************************
  11. Reserved Format Identifiers
  12. ***************************
  13. These formats are not defined by this specification, they are just
  14. listed for reference and to avoid naming conflicts. If you want to
  15. register your own format, send an e-mail to the linux-media mailing list
  16. `https://linuxtv.org/lists.php <https://linuxtv.org/lists.php>`__
  17. for inclusion in the ``videodev2.h`` file. If you want to share your
  18. format with other developers add a link to your documentation and send a
  19. copy to the linux-media mailing list for inclusion in this section. If
  20. you think your format should be listed in a standard format section
  21. please make a proposal on the linux-media mailing list.
  22. .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
  23. .. _reserved-formats:
  24. .. flat-table:: Reserved Image Formats
  25. :header-rows: 1
  26. :stub-columns: 0
  27. :widths: 3 1 4
  28. * - Identifier
  29. - Code
  30. - Details
  31. * .. _V4L2-PIX-FMT-DV:
  32. - ``V4L2_PIX_FMT_DV``
  33. - 'dvsd'
  34. - unknown
  35. * .. _V4L2-PIX-FMT-ET61X251:
  36. - ``V4L2_PIX_FMT_ET61X251``
  37. - 'E625'
  38. - Compressed format of the ET61X251 driver.
  39. * .. _V4L2-PIX-FMT-HI240:
  40. - ``V4L2_PIX_FMT_HI240``
  41. - 'HI24'
  42. - 8 bit RGB format used by the BTTV driver.
  43. * .. _V4L2-PIX-FMT-HM12:
  44. - ``V4L2_PIX_FMT_HM12``
  45. - 'HM12'
  46. - YUV 4:2:0 format used by the IVTV driver,
  47. `http://www.ivtvdriver.org/ <http://www.ivtvdriver.org/>`__
  48. The format is documented in the kernel sources in the file
  49. ``Documentation/media/v4l-drivers/cx2341x.rst``
  50. * .. _V4L2-PIX-FMT-CPIA1:
  51. - ``V4L2_PIX_FMT_CPIA1``
  52. - 'CPIA'
  53. - YUV format used by the gspca cpia1 driver.
  54. * .. _V4L2-PIX-FMT-JPGL:
  55. - ``V4L2_PIX_FMT_JPGL``
  56. - 'JPGL'
  57. - JPEG-Light format (Pegasus Lossless JPEG) used in Divio webcams NW
  58. 80x.
  59. * .. _V4L2-PIX-FMT-SPCA501:
  60. - ``V4L2_PIX_FMT_SPCA501``
  61. - 'S501'
  62. - YUYV per line used by the gspca driver.
  63. * .. _V4L2-PIX-FMT-SPCA505:
  64. - ``V4L2_PIX_FMT_SPCA505``
  65. - 'S505'
  66. - YYUV per line used by the gspca driver.
  67. * .. _V4L2-PIX-FMT-SPCA508:
  68. - ``V4L2_PIX_FMT_SPCA508``
  69. - 'S508'
  70. - YUVY per line used by the gspca driver.
  71. * .. _V4L2-PIX-FMT-SPCA561:
  72. - ``V4L2_PIX_FMT_SPCA561``
  73. - 'S561'
  74. - Compressed GBRG Bayer format used by the gspca driver.
  75. * .. _V4L2-PIX-FMT-PAC207:
  76. - ``V4L2_PIX_FMT_PAC207``
  77. - 'P207'
  78. - Compressed BGGR Bayer format used by the gspca driver.
  79. * .. _V4L2-PIX-FMT-MR97310A:
  80. - ``V4L2_PIX_FMT_MR97310A``
  81. - 'M310'
  82. - Compressed BGGR Bayer format used by the gspca driver.
  83. * .. _V4L2-PIX-FMT-JL2005BCD:
  84. - ``V4L2_PIX_FMT_JL2005BCD``
  85. - 'JL20'
  86. - JPEG compressed RGGB Bayer format used by the gspca driver.
  87. * .. _V4L2-PIX-FMT-OV511:
  88. - ``V4L2_PIX_FMT_OV511``
  89. - 'O511'
  90. - OV511 JPEG format used by the gspca driver.
  91. * .. _V4L2-PIX-FMT-OV518:
  92. - ``V4L2_PIX_FMT_OV518``
  93. - 'O518'
  94. - OV518 JPEG format used by the gspca driver.
  95. * .. _V4L2-PIX-FMT-PJPG:
  96. - ``V4L2_PIX_FMT_PJPG``
  97. - 'PJPG'
  98. - Pixart 73xx JPEG format used by the gspca driver.
  99. * .. _V4L2-PIX-FMT-SE401:
  100. - ``V4L2_PIX_FMT_SE401``
  101. - 'S401'
  102. - Compressed RGB format used by the gspca se401 driver
  103. * .. _V4L2-PIX-FMT-SQ905C:
  104. - ``V4L2_PIX_FMT_SQ905C``
  105. - '905C'
  106. - Compressed RGGB bayer format used by the gspca driver.
  107. * .. _V4L2-PIX-FMT-MJPEG:
  108. - ``V4L2_PIX_FMT_MJPEG``
  109. - 'MJPG'
  110. - Compressed format used by the Zoran driver
  111. * .. _V4L2-PIX-FMT-PWC1:
  112. - ``V4L2_PIX_FMT_PWC1``
  113. - 'PWC1'
  114. - Compressed format of the PWC driver.
  115. * .. _V4L2-PIX-FMT-PWC2:
  116. - ``V4L2_PIX_FMT_PWC2``
  117. - 'PWC2'
  118. - Compressed format of the PWC driver.
  119. * .. _V4L2-PIX-FMT-SN9C10X:
  120. - ``V4L2_PIX_FMT_SN9C10X``
  121. - 'S910'
  122. - Compressed format of the SN9C102 driver.
  123. * .. _V4L2-PIX-FMT-SN9C20X-I420:
  124. - ``V4L2_PIX_FMT_SN9C20X_I420``
  125. - 'S920'
  126. - YUV 4:2:0 format of the gspca sn9c20x driver.
  127. * .. _V4L2-PIX-FMT-SN9C2028:
  128. - ``V4L2_PIX_FMT_SN9C2028``
  129. - 'SONX'
  130. - Compressed GBRG bayer format of the gspca sn9c2028 driver.
  131. * .. _V4L2-PIX-FMT-STV0680:
  132. - ``V4L2_PIX_FMT_STV0680``
  133. - 'S680'
  134. - Bayer format of the gspca stv0680 driver.
  135. * .. _V4L2-PIX-FMT-WNVA:
  136. - ``V4L2_PIX_FMT_WNVA``
  137. - 'WNVA'
  138. - Used by the Winnov Videum driver,
  139. `http://www.thedirks.org/winnov/ <http://www.thedirks.org/winnov/>`__
  140. * .. _V4L2-PIX-FMT-TM6000:
  141. - ``V4L2_PIX_FMT_TM6000``
  142. - 'TM60'
  143. - Used by Trident tm6000
  144. * .. _V4L2-PIX-FMT-CIT-YYVYUY:
  145. - ``V4L2_PIX_FMT_CIT_YYVYUY``
  146. - 'CITV'
  147. - Used by xirlink CIT, found at IBM webcams.
  148. Uses one line of Y then 1 line of VYUY
  149. * .. _V4L2-PIX-FMT-KONICA420:
  150. - ``V4L2_PIX_FMT_KONICA420``
  151. - 'KONI'
  152. - Used by Konica webcams.
  153. YUV420 planar in blocks of 256 pixels.
  154. * .. _V4L2-PIX-FMT-YYUV:
  155. - ``V4L2_PIX_FMT_YYUV``
  156. - 'YYUV'
  157. - unknown
  158. * .. _V4L2-PIX-FMT-Y4:
  159. - ``V4L2_PIX_FMT_Y4``
  160. - 'Y04 '
  161. - Old 4-bit greyscale format. Only the most significant 4 bits of
  162. each byte are used, the other bits are set to 0.
  163. * .. _V4L2-PIX-FMT-Y6:
  164. - ``V4L2_PIX_FMT_Y6``
  165. - 'Y06 '
  166. - Old 6-bit greyscale format. Only the most significant 6 bits of
  167. each byte are used, the other bits are set to 0.
  168. * .. _V4L2-PIX-FMT-S5C-UYVY-JPG:
  169. - ``V4L2_PIX_FMT_S5C_UYVY_JPG``
  170. - 'S5CI'
  171. - Two-planar format used by Samsung S5C73MX cameras. The first plane
  172. contains interleaved JPEG and UYVY image data, followed by meta
  173. data in form of an array of offsets to the UYVY data blocks. The
  174. actual pointer array follows immediately the interleaved JPEG/UYVY
  175. data, the number of entries in this array equals the height of the
  176. UYVY image. Each entry is a 4-byte unsigned integer in big endian
  177. order and it's an offset to a single pixel line of the UYVY image.
  178. The first plane can start either with JPEG or UYVY data chunk. The
  179. size of a single UYVY block equals the UYVY image's width
  180. multiplied by 2. The size of a JPEG chunk depends on the image and
  181. can vary with each line.
  182. The second plane, at an offset of 4084 bytes, contains a 4-byte
  183. offset to the pointer array in the first plane. This offset is
  184. followed by a 4-byte value indicating size of the pointer array.
  185. All numbers in the second plane are also in big endian order.
  186. Remaining data in the second plane is undefined. The information
  187. in the second plane allows to easily find location of the pointer
  188. array, which can be different for each frame. The size of the
  189. pointer array is constant for given UYVY image height.
  190. In order to extract UYVY and JPEG frames an application can
  191. initially set a data pointer to the start of first plane and then
  192. add an offset from the first entry of the pointers table. Such a
  193. pointer indicates start of an UYVY image pixel line. Whole UYVY
  194. line can be copied to a separate buffer. These steps should be
  195. repeated for each line, i.e. the number of entries in the pointer
  196. array. Anything what's in between the UYVY lines is JPEG data and
  197. should be concatenated to form the JPEG stream.
  198. * .. _V4L2-PIX-FMT-MT21C:
  199. - ``V4L2_PIX_FMT_MT21C``
  200. - 'MT21'
  201. - Compressed two-planar YVU420 format used by Mediatek MT8173.
  202. The compression is lossless.
  203. It is an opaque intermediate format and the MDP hardware must be
  204. used to convert ``V4L2_PIX_FMT_MT21C`` to ``V4L2_PIX_FMT_NV12M``,
  205. ``V4L2_PIX_FMT_YUV420M`` or ``V4L2_PIX_FMT_YVU420``.
  206. * .. _V4L2-PIX-FMT-SUNXI-TILED-NV12:
  207. - ``V4L2_PIX_FMT_SUNXI_TILED_NV12``
  208. - 'ST12'
  209. - Two-planar NV12-based format used by the video engine found on Allwinner
  210. (codenamed sunxi) platforms, with 32x32 tiles for the luminance plane
  211. and 32x64 tiles for the chrominance plane. The data in each tile is
  212. stored in linear order, within the tile bounds. Each tile follows the
  213. previous one linearly in memory (from left to right, top to bottom).
  214. The associated buffer dimensions are aligned to match an integer number
  215. of tiles, resulting in 32-aligned resolutions for the luminance plane
  216. and 16-aligned resolutions for the chrominance plane (with 2x2
  217. subsampling).
  218. .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
  219. .. _format-flags:
  220. .. flat-table:: Format Flags
  221. :header-rows: 0
  222. :stub-columns: 0
  223. :widths: 3 1 4
  224. * - ``V4L2_PIX_FMT_FLAG_PREMUL_ALPHA``
  225. - 0x00000001
  226. - The color values are premultiplied by the alpha channel value. For
  227. example, if a light blue pixel with 50% transparency was described
  228. by RGBA values (128, 192, 255, 128), the same pixel described with
  229. premultiplied colors would be described by RGBA values (64, 96,
  230. 128, 128)