blob: e466052b68b23962ea15357f2ec81829a5e19bec [file] [log] [blame]
Markus Heiser5377d912016-06-30 15:18:56 +02001.. -*- coding: utf-8; mode: rst -*-
2
3.. _V4L2-PIX-FMT-YVYU:
4
5**************************
6V4L2_PIX_FMT_YVYU ('YVYU')
7**************************
8
9*man V4L2_PIX_FMT_YVYU(2)*
10
11Variation of ``V4L2_PIX_FMT_YUYV`` with different order of samples in
12memory
13
14
15Description
16===========
17
18In this format each four bytes is two pixels. Each four bytes is two
19Y's, a Cb and a Cr. Each Y goes to one of the pixels, and the Cb and Cr
20belong to both pixels. As you can see, the Cr and Cb components have
21half the horizontal resolution of the Y component.
22
Mauro Carvalho Chehab056d2ee2016-07-04 13:58:01 -030023**Byte Order.**
Markus Heiser5377d912016-06-30 15:18:56 +020024Each cell is one byte.
25
Markus Heiser5377d912016-06-30 15:18:56 +020026.. 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 - Y'\ :sub:`00`
37
38 - Cr\ :sub:`00`
39
40 - Y'\ :sub:`01`
41
42 - Cb\ :sub:`00`
43
44 - Y'\ :sub:`02`
45
46 - Cr\ :sub:`01`
47
48 - Y'\ :sub:`03`
49
50 - Cb\ :sub:`01`
51
52 - .. row 2
53
54 - start + 8:
55
56 - Y'\ :sub:`10`
57
58 - Cr\ :sub:`10`
59
60 - Y'\ :sub:`11`
61
62 - Cb\ :sub:`10`
63
64 - Y'\ :sub:`12`
65
66 - Cr\ :sub:`11`
67
68 - Y'\ :sub:`13`
69
70 - Cb\ :sub:`11`
71
72 - .. row 3
73
74 - start + 16:
75
76 - Y'\ :sub:`20`
77
78 - Cr\ :sub:`20`
79
80 - Y'\ :sub:`21`
81
82 - Cb\ :sub:`20`
83
84 - Y'\ :sub:`22`
85
86 - Cr\ :sub:`21`
87
88 - Y'\ :sub:`23`
89
90 - Cb\ :sub:`21`
91
92 - .. row 4
93
94 - start + 24:
95
96 - Y'\ :sub:`30`
97
98 - Cr\ :sub:`30`
99
100 - Y'\ :sub:`31`
101
102 - Cb\ :sub:`30`
103
104 - Y'\ :sub:`32`
105
106 - Cr\ :sub:`31`
107
108 - Y'\ :sub:`33`
109
110 - Cb\ :sub:`31`
111
112
113**Color Sample Location..**
114
Markus Heiser5377d912016-06-30 15:18:56 +0200115.. flat-table::
116 :header-rows: 0
117 :stub-columns: 0
118
119
120 - .. row 1
121
Mauro Carvalho Chehab0579e6e2016-07-04 16:25:48 -0300122 -
Markus Heiser5377d912016-06-30 15:18:56 +0200123 - 0
124
Mauro Carvalho Chehab0579e6e2016-07-04 16:25:48 -0300125 -
Markus Heiser5377d912016-06-30 15:18:56 +0200126 - 1
127
Markus Heiser5377d912016-06-30 15:18:56 +0200128 - 2
129
Mauro Carvalho Chehab0579e6e2016-07-04 16:25:48 -0300130 -
Markus Heiser5377d912016-06-30 15:18:56 +0200131 - 3
132
133 - .. row 2
134
135 - 0
136
137 - Y
138
139 - C
140
141 - Y
142
Markus Heiser5377d912016-06-30 15:18:56 +0200143 - Y
144
145 - C
146
147 - Y
148
149 - .. row 3
150
151 - 1
152
153 - Y
154
155 - C
156
157 - Y
158
Markus Heiser5377d912016-06-30 15:18:56 +0200159 - Y
160
161 - C
162
163 - Y
164
165 - .. row 4
166
167 - 2
168
169 - Y
170
171 - C
172
173 - Y
174
Markus Heiser5377d912016-06-30 15:18:56 +0200175 - Y
176
177 - C
178
179 - Y
180
181 - .. row 5
182
183 - 3
184
185 - Y
186
187 - C
188
189 - Y
190
Markus Heiser5377d912016-06-30 15:18:56 +0200191 - Y
192
193 - C
194
195 - Y