Merge remote-tracking branch 'tpmdd/next'
[deliverable/linux.git] / Documentation / media / uapi / v4l / pixfmt-vyuy.rst
1 .. -*- coding: utf-8; mode: rst -*-
2
3 .. _V4L2-PIX-FMT-VYUY:
4
5 **************************
6 V4L2_PIX_FMT_VYUY ('VYUY')
7 **************************
8
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
22 **Byte Order.**
23 Each cell is one byte.
24
25
26 .. flat-table::
27 :header-rows: 0
28 :stub-columns: 0
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
114 .. flat-table::
115 :header-rows: 0
116 :stub-columns: 0
117
118
119 - .. row 1
120
121 -
122 - 0
123
124 -
125 - 1
126
127 -
128 - 2
129
130 - 3
131
132 - .. row 2
133
134 - 0
135
136 - Y
137
138 - C
139
140 - Y
141
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
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
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
190 - Y
191
192 - C
193
194 - Y
This page took 0.035427 seconds and 5 git commands to generate.