Commit | Line | Data |
---|---|---|
5377d91f MH |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
3 | .. _V4L2-PIX-FMT-YVYU: | |
4 | ||
5 | ************************** | |
6 | V4L2_PIX_FMT_YVYU ('YVYU') | |
7 | ************************** | |
8 | ||
5377d91f MH |
9 | |
10 | Variation of ``V4L2_PIX_FMT_YUYV`` with different order of samples in | |
11 | memory | |
12 | ||
13 | ||
14 | Description | |
15 | =========== | |
16 | ||
17 | In this format each four bytes is two pixels. Each four bytes is two | |
18 | Y's, a Cb and a Cr. Each Y goes to one of the pixels, and the Cb and Cr | |
19 | belong to both pixels. As you can see, the Cr and Cb components have | |
20 | half the horizontal resolution of the Y component. | |
21 | ||
056d2ee6 | 22 | **Byte Order.** |
5377d91f MH |
23 | Each cell is one byte. |
24 | ||
5bd4bb78 | 25 | |
5377d91f MH |
26 | .. flat-table:: |
27 | :header-rows: 0 | |
28 | :stub-columns: 0 | |
5377d91f MH |
29 | |
30 | ||
31 | - .. row 1 | |
32 | ||
33 | - start + 0: | |
34 | ||
35 | - Y'\ :sub:`00` | |
36 | ||
37 | - Cr\ :sub:`00` | |
38 | ||
39 | - Y'\ :sub:`01` | |
40 | ||
41 | - Cb\ :sub:`00` | |
42 | ||
43 | - Y'\ :sub:`02` | |
44 | ||
45 | - Cr\ :sub:`01` | |
46 | ||
47 | - Y'\ :sub:`03` | |
48 | ||
49 | - Cb\ :sub:`01` | |
50 | ||
51 | - .. row 2 | |
52 | ||
53 | - start + 8: | |
54 | ||
55 | - Y'\ :sub:`10` | |
56 | ||
57 | - Cr\ :sub:`10` | |
58 | ||
59 | - Y'\ :sub:`11` | |
60 | ||
61 | - Cb\ :sub:`10` | |
62 | ||
63 | - Y'\ :sub:`12` | |
64 | ||
65 | - Cr\ :sub:`11` | |
66 | ||
67 | - Y'\ :sub:`13` | |
68 | ||
69 | - Cb\ :sub:`11` | |
70 | ||
71 | - .. row 3 | |
72 | ||
73 | - start + 16: | |
74 | ||
75 | - Y'\ :sub:`20` | |
76 | ||
77 | - Cr\ :sub:`20` | |
78 | ||
79 | - Y'\ :sub:`21` | |
80 | ||
81 | - Cb\ :sub:`20` | |
82 | ||
83 | - Y'\ :sub:`22` | |
84 | ||
85 | - Cr\ :sub:`21` | |
86 | ||
87 | - Y'\ :sub:`23` | |
88 | ||
89 | - Cb\ :sub:`21` | |
90 | ||
91 | - .. row 4 | |
92 | ||
93 | - start + 24: | |
94 | ||
95 | - Y'\ :sub:`30` | |
96 | ||
97 | - Cr\ :sub:`30` | |
98 | ||
99 | - Y'\ :sub:`31` | |
100 | ||
101 | - Cb\ :sub:`30` | |
102 | ||
103 | - Y'\ :sub:`32` | |
104 | ||
105 | - Cr\ :sub:`31` | |
106 | ||
107 | - Y'\ :sub:`33` | |
108 | ||
109 | - Cb\ :sub:`31` | |
110 | ||
111 | ||
112 | **Color Sample Location..** | |
113 | ||
5377d91f MH |
114 | .. flat-table:: |
115 | :header-rows: 0 | |
116 | :stub-columns: 0 | |
117 | ||
118 | ||
119 | - .. row 1 | |
120 | ||
0579e6e3 | 121 | - |
5377d91f MH |
122 | - 0 |
123 | ||
0579e6e3 | 124 | - |
5377d91f MH |
125 | - 1 |
126 | ||
5377d91f MH |
127 | - 2 |
128 | ||
0579e6e3 | 129 | - |
5377d91f MH |
130 | - 3 |
131 | ||
132 | - .. row 2 | |
133 | ||
134 | - 0 | |
135 | ||
136 | - Y | |
137 | ||
138 | - C | |
139 | ||
140 | - Y | |
141 | ||
5377d91f MH |
142 | - Y |
143 | ||
144 | - C | |
145 | ||
146 | - Y | |
147 | ||
148 | - .. row 3 | |
149 | ||
150 | - 1 | |
151 | ||
152 | - Y | |
153 | ||
154 | - C | |
155 | ||
156 | - Y | |
157 | ||
5377d91f MH |
158 | - Y |
159 | ||
160 | - C | |
161 | ||
162 | - Y | |
163 | ||
164 | - .. row 4 | |
165 | ||
166 | - 2 | |
167 | ||
168 | - Y | |
169 | ||
170 | - C | |
171 | ||
172 | - Y | |
173 | ||
5377d91f MH |
174 | - Y |
175 | ||
176 | - C | |
177 | ||
178 | - Y | |
179 | ||
180 | - .. row 5 | |
181 | ||
182 | - 3 | |
183 | ||
184 | - Y | |
185 | ||
186 | - C | |
187 | ||
188 | - Y | |
189 | ||
5377d91f MH |
190 | - Y |
191 | ||
192 | - C | |
193 | ||
194 | - Y |