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