pixfmt-nv16.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <refentry>
  2. <refmeta>
  3. <refentrytitle>V4L2_PIX_FMT_NV16 ('NV16'), V4L2_PIX_FMT_NV61 ('NV61')</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname id="V4L2-PIX-FMT-NV16"><constant>V4L2_PIX_FMT_NV16</constant></refname>
  8. <refname id="V4L2-PIX-FMT-NV61"><constant>V4L2_PIX_FMT_NV61</constant></refname>
  9. <refpurpose>Formats with &frac12; horizontal
  10. chroma resolution, also known as YUV 4:2:2. One luminance and one
  11. chrominance plane with alternating chroma samples as opposed to
  12. <constant>V4L2_PIX_FMT_YVU420</constant></refpurpose>
  13. </refnamediv>
  14. <refsect1>
  15. <title>Description</title>
  16. <para>These are two-plane versions of the YUV 4:2:2 format.
  17. The three components are separated into two sub-images or planes. The
  18. Y plane is first. The Y plane has one byte per pixel. For
  19. <constant>V4L2_PIX_FMT_NV16</constant>, a combined CbCr plane
  20. immediately follows the Y plane in memory. The CbCr plane is the same
  21. width and height, in bytes, as the Y plane (and of the image).
  22. Each CbCr pair belongs to two pixels. For example,
  23. Cb<subscript>0</subscript>/Cr<subscript>0</subscript> belongs to
  24. Y'<subscript>00</subscript>, Y'<subscript>01</subscript>.
  25. <constant>V4L2_PIX_FMT_NV61</constant> is the same except the Cb and
  26. Cr bytes are swapped, the CrCb plane starts with a Cr byte.</para>
  27. <para>If the Y plane has pad bytes after each row, then the
  28. CbCr plane has as many pad bytes after its rows.</para>
  29. <example>
  30. <title><constant>V4L2_PIX_FMT_NV16</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. <entry>Cr<subscript>00</subscript></entry>
  71. <entry>Cb<subscript>01</subscript></entry>
  72. <entry>Cr<subscript>01</subscript></entry>
  73. </row>
  74. <row>
  75. <entry>start&nbsp;+&nbsp;20:</entry>
  76. <entry>Cb<subscript>10</subscript></entry>
  77. <entry>Cr<subscript>10</subscript></entry>
  78. <entry>Cb<subscript>11</subscript></entry>
  79. <entry>Cr<subscript>11</subscript></entry>
  80. </row>
  81. <row>
  82. <entry>start&nbsp;+&nbsp;24:</entry>
  83. <entry>Cb<subscript>20</subscript></entry>
  84. <entry>Cr<subscript>20</subscript></entry>
  85. <entry>Cb<subscript>21</subscript></entry>
  86. <entry>Cr<subscript>21</subscript></entry>
  87. </row>
  88. <row>
  89. <entry>start&nbsp;+&nbsp;28:</entry>
  90. <entry>Cb<subscript>30</subscript></entry>
  91. <entry>Cr<subscript>30</subscript></entry>
  92. <entry>Cb<subscript>31</subscript></entry>
  93. <entry>Cr<subscript>31</subscript></entry>
  94. </row>
  95. </tbody>
  96. </tgroup>
  97. </informaltable>
  98. </para>
  99. </formalpara>
  100. <formalpara>
  101. <title>Color Sample Location.</title>
  102. <para>
  103. <informaltable frame="none">
  104. <tgroup cols="7" align="center">
  105. <tbody valign="top">
  106. <row>
  107. <entry></entry>
  108. <entry>0</entry><entry></entry><entry>1</entry><entry></entry>
  109. <entry>2</entry><entry></entry><entry>3</entry>
  110. </row>
  111. <row>
  112. <entry>0</entry>
  113. <entry>Y</entry><entry></entry><entry>Y</entry><entry></entry>
  114. <entry>Y</entry><entry></entry><entry>Y</entry>
  115. </row>
  116. <row>
  117. <entry></entry>
  118. <entry></entry><entry>C</entry><entry></entry><entry></entry>
  119. <entry></entry><entry>C</entry><entry></entry>
  120. </row>
  121. <row>
  122. <entry>1</entry>
  123. <entry>Y</entry><entry></entry><entry>Y</entry><entry></entry>
  124. <entry>Y</entry><entry></entry><entry>Y</entry>
  125. </row>
  126. <row>
  127. <entry></entry>
  128. <entry></entry><entry>C</entry><entry></entry><entry></entry>
  129. <entry></entry><entry>C</entry><entry></entry>
  130. </row>
  131. <row>
  132. <entry></entry>
  133. </row>
  134. <row>
  135. <entry>2</entry>
  136. <entry>Y</entry><entry></entry><entry>Y</entry><entry></entry>
  137. <entry>Y</entry><entry></entry><entry>Y</entry>
  138. </row>
  139. <row>
  140. <entry></entry>
  141. <entry></entry><entry>C</entry><entry></entry><entry></entry>
  142. <entry></entry><entry>C</entry><entry></entry>
  143. </row>
  144. <row>
  145. <entry>3</entry>
  146. <entry>Y</entry><entry></entry><entry>Y</entry><entry></entry>
  147. <entry>Y</entry><entry></entry><entry>Y</entry>
  148. </row>
  149. <row>
  150. <entry></entry>
  151. <entry></entry><entry>C</entry><entry></entry><entry></entry>
  152. <entry></entry><entry>C</entry><entry></entry>
  153. </row>
  154. </tbody>
  155. </tgroup>
  156. </informaltable>
  157. </para>
  158. </formalpara>
  159. </example>
  160. </refsect1>
  161. </refentry>