pixfmt-yuv410.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <refentry>
  2. <refmeta>
  3. <refentrytitle>V4L2_PIX_FMT_YVU410 ('YVU9'), V4L2_PIX_FMT_YUV410 ('YUV9')</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname id="V4L2-PIX-FMT-YVU410"><constant>V4L2_PIX_FMT_YVU410</constant></refname>
  8. <refname id="V4L2-PIX-FMT-YUV410"><constant>V4L2_PIX_FMT_YUV410</constant></refname>
  9. <refpurpose>Planar formats with &frac14; horizontal and
  10. vertical chroma resolution, also known as YUV 4:1:0</refpurpose>
  11. </refnamediv>
  12. <refsect1>
  13. <title>Description</title>
  14. <para>These are planar formats, as opposed to a packed format.
  15. The three components are separated into three sub-images or planes.
  16. The Y plane is first. The Y plane has one byte per pixel. For
  17. <constant>V4L2_PIX_FMT_YVU410</constant>, the Cr plane immediately
  18. follows the Y plane in memory. The Cr plane is &frac14; the width and
  19. &frac14; the height of the Y plane (and of the image). Each Cr belongs
  20. to 16 pixels, a four-by-four square of the image. Following the Cr
  21. plane is the Cb plane, just like the Cr plane.
  22. <constant>V4L2_PIX_FMT_YUV410</constant> is the same, except the Cb
  23. plane comes first, then the Cr plane.</para>
  24. <para>If the Y plane has pad bytes after each row, then the Cr
  25. and Cb planes have &frac14; as many pad bytes after their rows. In
  26. other words, four Cx rows (including padding) are exactly as long as
  27. one Y row (including padding).</para>
  28. <example>
  29. <title><constant>V4L2_PIX_FMT_YVU410</constant> 4 &times; 4
  30. pixel image</title>
  31. <formalpara>
  32. <title>Byte Order.</title>
  33. <para>Each cell is one byte.
  34. <informaltable frame="none">
  35. <tgroup cols="5" align="center">
  36. <colspec align="left" colwidth="2*" />
  37. <tbody valign="top">
  38. <row>
  39. <entry>start&nbsp;+&nbsp;0:</entry>
  40. <entry>Y'<subscript>00</subscript></entry>
  41. <entry>Y'<subscript>01</subscript></entry>
  42. <entry>Y'<subscript>02</subscript></entry>
  43. <entry>Y'<subscript>03</subscript></entry>
  44. </row>
  45. <row>
  46. <entry>start&nbsp;+&nbsp;4:</entry>
  47. <entry>Y'<subscript>10</subscript></entry>
  48. <entry>Y'<subscript>11</subscript></entry>
  49. <entry>Y'<subscript>12</subscript></entry>
  50. <entry>Y'<subscript>13</subscript></entry>
  51. </row>
  52. <row>
  53. <entry>start&nbsp;+&nbsp;8:</entry>
  54. <entry>Y'<subscript>20</subscript></entry>
  55. <entry>Y'<subscript>21</subscript></entry>
  56. <entry>Y'<subscript>22</subscript></entry>
  57. <entry>Y'<subscript>23</subscript></entry>
  58. </row>
  59. <row>
  60. <entry>start&nbsp;+&nbsp;12:</entry>
  61. <entry>Y'<subscript>30</subscript></entry>
  62. <entry>Y'<subscript>31</subscript></entry>
  63. <entry>Y'<subscript>32</subscript></entry>
  64. <entry>Y'<subscript>33</subscript></entry>
  65. </row>
  66. <row>
  67. <entry>start&nbsp;+&nbsp;16:</entry>
  68. <entry>Cr<subscript>00</subscript></entry>
  69. </row>
  70. <row>
  71. <entry>start&nbsp;+&nbsp;17:</entry>
  72. <entry>Cb<subscript>00</subscript></entry>
  73. </row>
  74. </tbody>
  75. </tgroup>
  76. </informaltable>
  77. </para>
  78. </formalpara>
  79. <formalpara>
  80. <title>Color Sample Location.</title>
  81. <para>
  82. <informaltable frame="none">
  83. <tgroup cols="7" align="center">
  84. <tbody valign="top">
  85. <row>
  86. <entry></entry>
  87. <entry>0</entry><entry></entry><entry>1</entry><entry></entry>
  88. <entry>2</entry><entry></entry><entry>3</entry>
  89. </row>
  90. <row>
  91. <entry>0</entry>
  92. <entry>Y</entry><entry></entry><entry>Y</entry><entry></entry>
  93. <entry>Y</entry><entry></entry><entry>Y</entry>
  94. </row>
  95. <row>
  96. <entry></entry>
  97. </row>
  98. <row>
  99. <entry>1</entry>
  100. <entry>Y</entry><entry></entry><entry>Y</entry><entry></entry>
  101. <entry>Y</entry><entry></entry><entry>Y</entry>
  102. </row>
  103. <row>
  104. <entry></entry>
  105. <entry></entry><entry></entry><entry></entry><entry>C</entry>
  106. <entry></entry><entry></entry><entry></entry>
  107. </row>
  108. <row>
  109. <entry>2</entry>
  110. <entry>Y</entry><entry></entry><entry>Y</entry><entry></entry>
  111. <entry>Y</entry><entry></entry><entry>Y</entry>
  112. </row>
  113. <row>
  114. <entry></entry>
  115. </row>
  116. <row>
  117. <entry>3</entry>
  118. <entry>Y</entry><entry></entry><entry>Y</entry><entry></entry>
  119. <entry>Y</entry><entry></entry><entry>Y</entry>
  120. </row>
  121. </tbody>
  122. </tgroup>
  123. </informaltable>
  124. </para>
  125. </formalpara>
  126. </example>
  127. </refsect1>
  128. </refentry>