Smack: Handle io_uring kernel thread privileges
[linux-2.6-microblaze.git] / Documentation / userspace-api / media / v4l / pixfmt-yuyv.rst
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2
3 .. _V4L2-PIX-FMT-YUYV:
4
5 **************************
6 V4L2_PIX_FMT_YUYV ('YUYV')
7 **************************
8
9
10 Packed format with ½ horizontal chroma resolution, also known as YUV
11 4:2:2
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. ``V4L2_PIX_FMT_YUYV``
21 is known in the Windows environment as YUY2.
22
23 **Byte Order.**
24 Each cell is one byte.
25
26
27
28
29 .. flat-table::
30     :header-rows:  0
31     :stub-columns: 0
32
33     * - start + 0:
34       - Y'\ :sub:`00`
35       - Cb\ :sub:`00`
36       - Y'\ :sub:`01`
37       - Cr\ :sub:`00`
38       - Y'\ :sub:`02`
39       - Cb\ :sub:`01`
40       - Y'\ :sub:`03`
41       - Cr\ :sub:`01`
42     * - start + 8:
43       - Y'\ :sub:`10`
44       - Cb\ :sub:`10`
45       - Y'\ :sub:`11`
46       - Cr\ :sub:`10`
47       - Y'\ :sub:`12`
48       - Cb\ :sub:`11`
49       - Y'\ :sub:`13`
50       - Cr\ :sub:`11`
51     * - start + 16:
52       - Y'\ :sub:`20`
53       - Cb\ :sub:`20`
54       - Y'\ :sub:`21`
55       - Cr\ :sub:`20`
56       - Y'\ :sub:`22`
57       - Cb\ :sub:`21`
58       - Y'\ :sub:`23`
59       - Cr\ :sub:`21`
60     * - start + 24:
61       - Y'\ :sub:`30`
62       - Cb\ :sub:`30`
63       - Y'\ :sub:`31`
64       - Cr\ :sub:`30`
65       - Y'\ :sub:`32`
66       - Cb\ :sub:`31`
67       - Y'\ :sub:`33`
68       - Cr\ :sub:`31`
69
70
71 **Color Sample Location:**
72
73
74
75 .. flat-table::
76     :header-rows:  0
77     :stub-columns: 0
78
79     * -
80       - 0
81       -
82       - 1
83       -
84       - 2
85       -
86       - 3
87     * - 0
88       - Y
89       - C
90       - Y
91       -
92       - Y
93       - C
94       - Y
95     * - 1
96       - Y
97       - C
98       - Y
99       -
100       - Y
101       - C
102       - Y
103     * - 2
104       - Y
105       - C
106       - Y
107       -
108       - Y
109       - C
110       - Y
111     * - 3
112       - Y
113       - C
114       - Y
115       -
116       - Y
117       - C
118       - Y