Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[sfrench/cifs-2.6.git] / Documentation / media / uapi / v4l / pixfmt-y41p.rst
1 .. Permission is granted to copy, distribute and/or modify this
2 .. document under the terms of the GNU Free Documentation License,
3 .. Version 1.1 or any later version published by the Free Software
4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
5 .. and no Back-Cover Texts. A copy of the license is included at
6 .. Documentation/media/uapi/fdl-appendix.rst.
7 ..
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
9
10 .. _V4L2-PIX-FMT-Y41P:
11
12 **************************
13 V4L2_PIX_FMT_Y41P ('Y41P')
14 **************************
15
16
17 Format with ΒΌ horizontal chroma resolution, also known as YUV 4:1:1
18
19
20 Description
21 ===========
22
23 In this format each 12 bytes is eight pixels. In the twelve bytes are
24 two CbCr pairs and eight Y's. The first CbCr pair goes with the first
25 four Y's, and the second CbCr pair goes with the other four Y's. The Cb
26 and Cr components have one fourth the horizontal resolution of the Y
27 component.
28
29 Do not confuse this format with
30 :ref:`V4L2_PIX_FMT_YUV411P <V4L2-PIX-FMT-YUV411P>`. Y41P is derived
31 from "YUV 4:1:1 *packed*", while YUV411P stands for "YUV 4:1:1
32 *planar*".
33
34 **Byte Order.**
35 Each cell is one byte.
36
37
38
39
40 .. flat-table::
41     :header-rows:  0
42     :stub-columns: 0
43
44     * - start + 0:
45       - Cb\ :sub:`00`
46       - Y'\ :sub:`00`
47       - Cr\ :sub:`00`
48       - Y'\ :sub:`01`
49       - Cb\ :sub:`01`
50       - Y'\ :sub:`02`
51       - Cr\ :sub:`01`
52       - Y'\ :sub:`03`
53       - Y'\ :sub:`04`
54       - Y'\ :sub:`05`
55       - Y'\ :sub:`06`
56       - Y'\ :sub:`07`
57     * - start + 12:
58       - Cb\ :sub:`10`
59       - Y'\ :sub:`10`
60       - Cr\ :sub:`10`
61       - Y'\ :sub:`11`
62       - Cb\ :sub:`11`
63       - Y'\ :sub:`12`
64       - Cr\ :sub:`11`
65       - Y'\ :sub:`13`
66       - Y'\ :sub:`14`
67       - Y'\ :sub:`15`
68       - Y'\ :sub:`16`
69       - Y'\ :sub:`17`
70     * - start + 24:
71       - Cb\ :sub:`20`
72       - Y'\ :sub:`20`
73       - Cr\ :sub:`20`
74       - Y'\ :sub:`21`
75       - Cb\ :sub:`21`
76       - Y'\ :sub:`22`
77       - Cr\ :sub:`21`
78       - Y'\ :sub:`23`
79       - Y'\ :sub:`24`
80       - Y'\ :sub:`25`
81       - Y'\ :sub:`26`
82       - Y'\ :sub:`27`
83     * - start + 36:
84       - Cb\ :sub:`30`
85       - Y'\ :sub:`30`
86       - Cr\ :sub:`30`
87       - Y'\ :sub:`31`
88       - Cb\ :sub:`31`
89       - Y'\ :sub:`32`
90       - Cr\ :sub:`31`
91       - Y'\ :sub:`33`
92       - Y'\ :sub:`34`
93       - Y'\ :sub:`35`
94       - Y'\ :sub:`36`
95       - Y'\ :sub:`37`
96
97
98 **Color Sample Location:**
99
100 .. flat-table::
101     :header-rows:  0
102     :stub-columns: 0
103
104     * -
105       - 0
106       - 1
107       -
108       - 2
109       - 3
110       - 4
111       - 5
112       -
113       - 6
114       - 7
115     * - 0
116       - Y
117       - Y
118       - C
119       - Y
120       - Y
121       - Y
122       - Y
123       - C
124       - Y
125       - Y
126     * - 1
127       - Y
128       - Y
129       - C
130       - Y
131       - Y
132       - Y
133       - Y
134       - C
135       - Y
136       - Y
137     * - 2
138       - Y
139       - Y
140       - C
141       - Y
142       - Y
143       - Y
144       - Y
145       - C
146       - Y
147       - Y
148     * - 3
149       - Y
150       - Y
151       - C
152       - Y
153       - Y
154       - Y
155       - Y
156       - C
157       - Y
158       - Y