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