Merge branch 'for-viro' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi...
[deliverable/linux.git] / Documentation / media / uapi / v4l / pixfmt-yuv410.rst
CommitLineData
5377d91f
MH
1.. -*- coding: utf-8; mode: rst -*-
2
3.. _V4L2-PIX-FMT-YVU410:
9aff73d2 4.. _v4l2-pix-fmt-yuv410:
5377d91f
MH
5
6**********************************************************
7V4L2_PIX_FMT_YVU410 ('YVU9'), V4L2_PIX_FMT_YUV410 ('YUV9')
8**********************************************************
9
10*man V4L2_PIX_FMT_YVU410(2)*
11
12V4L2_PIX_FMT_YUV410
13Planar formats with ¼ horizontal and vertical chroma resolution, also
14known as YUV 4:1:0
15
16
17Description
18===========
19
20These are planar formats, as opposed to a packed format. The three
21components are separated into three sub-images or planes. The Y plane is
22first. The Y plane has one byte per pixel. For ``V4L2_PIX_FMT_YVU410``,
23the Cr plane immediately follows the Y plane in memory. The Cr plane is
24¼ the width and ¼ the height of the Y plane (and of the image). Each Cr
25belongs to 16 pixels, a four-by-four square of the image. Following the
26Cr plane is the Cb plane, just like the Cr plane.
27``V4L2_PIX_FMT_YUV410`` is the same, except the Cb plane comes first,
28then the Cr plane.
29
30If the Y plane has pad bytes after each row, then the Cr and Cb planes
31have ¼ as many pad bytes after their rows. In other words, four Cx rows
32(including padding) are exactly as long as one Y row (including
33padding).
34
056d2ee6 35**Byte Order.**
5377d91f
MH
36Each cell is one byte.
37
38
39
40.. flat-table::
41 :header-rows: 0
42 :stub-columns: 0
43 :widths: 2 1 1 1 1
44
45
46 - .. row 1
47
48 - start + 0:
49
50 - Y'\ :sub:`00`
51
52 - Y'\ :sub:`01`
53
54 - Y'\ :sub:`02`
55
56 - Y'\ :sub:`03`
57
58 - .. row 2
59
60 - start + 4:
61
62 - Y'\ :sub:`10`
63
64 - Y'\ :sub:`11`
65
66 - Y'\ :sub:`12`
67
68 - Y'\ :sub:`13`
69
70 - .. row 3
71
72 - start + 8:
73
74 - Y'\ :sub:`20`
75
76 - Y'\ :sub:`21`
77
78 - Y'\ :sub:`22`
79
80 - Y'\ :sub:`23`
81
82 - .. row 4
83
84 - start + 12:
85
86 - Y'\ :sub:`30`
87
88 - Y'\ :sub:`31`
89
90 - Y'\ :sub:`32`
91
92 - Y'\ :sub:`33`
93
94 - .. row 5
95
96 - start + 16:
97
98 - Cr\ :sub:`00`
99
100 - .. row 6
101
102 - start + 17:
103
104 - Cb\ :sub:`00`
105
106
107**Color Sample Location..**
108
109
110
111.. flat-table::
112 :header-rows: 0
113 :stub-columns: 0
114
115
116 - .. row 1
117
0579e6e3 118 -
5377d91f
MH
119 - 0
120
0579e6e3 121 -
5377d91f
MH
122 - 1
123
0579e6e3 124 -
5377d91f
MH
125 - 2
126
0579e6e3 127 -
5377d91f
MH
128 - 3
129
130 - .. row 2
131
132 - 0
133
134 - Y
135
0579e6e3 136 -
5377d91f
MH
137 - Y
138
0579e6e3 139 -
5377d91f
MH
140 - Y
141
0579e6e3 142 -
5377d91f
MH
143 - Y
144
145 - .. row 3
146
0579e6e3 147 -
5377d91f
MH
148
149 - .. row 4
150
151 - 1
152
153 - Y
154
0579e6e3 155 -
5377d91f
MH
156 - Y
157
0579e6e3 158 -
5377d91f
MH
159 - Y
160
0579e6e3 161 -
5377d91f
MH
162 - Y
163
164 - .. row 5
165
0579e6e3
MCC
166 -
167 -
168 -
169 -
5377d91f
MH
170 - C
171
0579e6e3
MCC
172 -
173 -
174 -
5377d91f
MH
175
176 - .. row 6
177
178 - 2
179
180 - Y
181
0579e6e3 182 -
5377d91f
MH
183 - Y
184
0579e6e3 185 -
5377d91f
MH
186 - Y
187
0579e6e3 188 -
5377d91f
MH
189 - Y
190
191 - .. row 7
192
0579e6e3 193 -
5377d91f
MH
194
195 - .. row 8
196
197 - 3
198
199 - Y
200
0579e6e3 201 -
5377d91f
MH
202 - Y
203
0579e6e3 204 -
5377d91f
MH
205 - Y
206
0579e6e3 207 -
5377d91f 208 - Y
This page took 0.047822 seconds and 5 git commands to generate.