Merge remote-tracking branch 'mmc-uh/next'
[deliverable/linux.git] / Documentation / media / uapi / v4l / pixfmt-vyuy.rst
CommitLineData
5377d91f
MH
1.. -*- coding: utf-8; mode: rst -*-
2
3.. _V4L2-PIX-FMT-VYUY:
4
5**************************
6V4L2_PIX_FMT_VYUY ('VYUY')
7**************************
8
5377d91f
MH
9
10Variation of ``V4L2_PIX_FMT_YUYV`` with different order of samples in
11memory
12
13
14Description
15===========
16
17In this format each four bytes is two pixels. Each four bytes is two
18Y's, a Cb and a Cr. Each Y goes to one of the pixels, and the Cb and Cr
19belong to both pixels. As you can see, the Cr and Cb components have
20half the horizontal resolution of the Y component.
21
056d2ee6 22**Byte Order.**
5377d91f
MH
23Each 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 - Cr\ :sub:`00`
36
37 - Y'\ :sub:`00`
38
39 - Cb\ :sub:`00`
40
41 - Y'\ :sub:`01`
42
43 - Cr\ :sub:`01`
44
45 - Y'\ :sub:`02`
46
47 - Cb\ :sub:`01`
48
49 - Y'\ :sub:`03`
50
51 - .. row 2
52
53 - start + 8:
54
55 - Cr\ :sub:`10`
56
57 - Y'\ :sub:`10`
58
59 - Cb\ :sub:`10`
60
61 - Y'\ :sub:`11`
62
63 - Cr\ :sub:`11`
64
65 - Y'\ :sub:`12`
66
67 - Cb\ :sub:`11`
68
69 - Y'\ :sub:`13`
70
71 - .. row 3
72
73 - start + 16:
74
75 - Cr\ :sub:`20`
76
77 - Y'\ :sub:`20`
78
79 - Cb\ :sub:`20`
80
81 - Y'\ :sub:`21`
82
83 - Cr\ :sub:`21`
84
85 - Y'\ :sub:`22`
86
87 - Cb\ :sub:`21`
88
89 - Y'\ :sub:`23`
90
91 - .. row 4
92
93 - start + 24:
94
95 - Cr\ :sub:`30`
96
97 - Y'\ :sub:`30`
98
99 - Cb\ :sub:`30`
100
101 - Y'\ :sub:`31`
102
103 - Cr\ :sub:`31`
104
105 - Y'\ :sub:`32`
106
107 - Cb\ :sub:`31`
108
109 - Y'\ :sub:`33`
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
0579e6e3 127 -
5377d91f
MH
128 - 2
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
This page took 0.054177 seconds and 5 git commands to generate.