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