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