1 <refentry id="V4L2-PIX-FMT-YUV422P">
3 <refentrytitle>V4L2_PIX_FMT_YUV422P ('422P')</refentrytitle>
7 <refname><constant>V4L2_PIX_FMT_YUV422P</constant></refname>
8 <refpurpose>Format with ½ horizontal chroma resolution,
9 also known as YUV 4:2:2. Planar layout as opposed to
10 <constant>V4L2_PIX_FMT_YUYV</constant></refpurpose>
13 <title>Description</title>
15 <para>This format is not commonly used. This is a planar
16 version of the YUYV format. The three components are separated into
17 three sub-images or planes. The Y plane is first. The Y plane has one
18 byte per pixel. The Cb plane immediately follows the Y plane in
19 memory. The Cb plane is half the width of the Y plane (and of the
20 image). Each Cb belongs to two pixels. For example,
21 Cb<subscript>0</subscript> belongs to Y'<subscript>00</subscript>,
22 Y'<subscript>01</subscript>. Following the Cb plane is the Cr plane,
23 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 half as many pad bytes after their rows. In other
27 words, two Cx rows (including padding) is exactly as long as one Y row
28 (including padding).</para>
31 <title><constant>V4L2_PIX_FMT_YUV422P</constant> 4 × 4
35 <title>Byte Order.</title>
36 <para>Each cell is one byte.
37 <informaltable frame="none">
38 <tgroup cols="5" align="center">
39 <colspec align="left" colwidth="2*" />
42 <entry>start + 0:</entry>
43 <entry>Y'<subscript>00</subscript></entry>
44 <entry>Y'<subscript>01</subscript></entry>
45 <entry>Y'<subscript>02</subscript></entry>
46 <entry>Y'<subscript>03</subscript></entry>
49 <entry>start + 4:</entry>
50 <entry>Y'<subscript>10</subscript></entry>
51 <entry>Y'<subscript>11</subscript></entry>
52 <entry>Y'<subscript>12</subscript></entry>
53 <entry>Y'<subscript>13</subscript></entry>
56 <entry>start + 8:</entry>
57 <entry>Y'<subscript>20</subscript></entry>
58 <entry>Y'<subscript>21</subscript></entry>
59 <entry>Y'<subscript>22</subscript></entry>
60 <entry>Y'<subscript>23</subscript></entry>
63 <entry>start + 12:</entry>
64 <entry>Y'<subscript>30</subscript></entry>
65 <entry>Y'<subscript>31</subscript></entry>
66 <entry>Y'<subscript>32</subscript></entry>
67 <entry>Y'<subscript>33</subscript></entry>
70 <entry>start + 16:</entry>
71 <entry>Cb<subscript>00</subscript></entry>
72 <entry>Cb<subscript>01</subscript></entry>
75 <entry>start + 18:</entry>
76 <entry>Cb<subscript>10</subscript></entry>
77 <entry>Cb<subscript>11</subscript></entry>
80 <entry>start + 20:</entry>
81 <entry>Cb<subscript>20</subscript></entry>
82 <entry>Cb<subscript>21</subscript></entry>
85 <entry>start + 22:</entry>
86 <entry>Cb<subscript>30</subscript></entry>
87 <entry>Cb<subscript>31</subscript></entry>
90 <entry>start + 24:</entry>
91 <entry>Cr<subscript>00</subscript></entry>
92 <entry>Cr<subscript>01</subscript></entry>
95 <entry>start + 26:</entry>
96 <entry>Cr<subscript>10</subscript></entry>
97 <entry>Cr<subscript>11</subscript></entry>
100 <entry>start + 28:</entry>
101 <entry>Cr<subscript>20</subscript></entry>
102 <entry>Cr<subscript>21</subscript></entry>
105 <entry>start + 30:</entry>
106 <entry>Cr<subscript>30</subscript></entry>
107 <entry>Cr<subscript>31</subscript></entry>
116 <title>Color Sample Location.</title>
118 <informaltable frame="none">
119 <tgroup cols="7" align="center">
123 <entry>0</entry><entry></entry><entry>1</entry><entry></entry>
124 <entry>2</entry><entry></entry><entry>3</entry>
128 <entry>Y</entry><entry>C</entry><entry>Y</entry><entry></entry>
129 <entry>Y</entry><entry>C</entry><entry>Y</entry>
133 <entry>Y</entry><entry>C</entry><entry>Y</entry><entry></entry>
134 <entry>Y</entry><entry>C</entry><entry>Y</entry>
138 <entry>Y</entry><entry>C</entry><entry>Y</entry><entry></entry>
139 <entry>Y</entry><entry>C</entry><entry>Y</entry>
143 <entry>Y</entry><entry>C</entry><entry>Y</entry><entry></entry>
144 <entry>Y</entry><entry>C</entry><entry>Y</entry>
158 sgml-parent-document: "pixfmt.sgml"
159 indent-tabs-mode: nil