pixfmt-yuv422p.xml 5.2 KB

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