pixfmt-yuv411p.xml 4.9 KB

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