1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2
3.. _V4L2-PIX-FMT-UYVY:
4
5**************************
6V4L2_PIX_FMT_UYVY ('UYVY')
7**************************
8
9
10Variation of ``V4L2_PIX_FMT_YUYV`` with different order of samples in
11memory
12
13
14Description
15===========
16
17In this format each four bytes is two pixels. Each four bytes is two
18Y's, a Cb and a Cr. Each Y goes to one of the pixels, and the Cb and Cr
19belong to both pixels. As you can see, the Cr and Cb components have
20half the horizontal resolution of the Y component.
21
22**Byte Order.**
23Each cell is one byte.
24
25
26.. flat-table::
27    :header-rows:  0
28    :stub-columns: 0
29
30    * - start + 0:
31      - Cb\ :sub:`00`
32      - Y'\ :sub:`00`
33      - Cr\ :sub:`00`
34      - Y'\ :sub:`01`
35      - Cb\ :sub:`01`
36      - Y'\ :sub:`02`
37      - Cr\ :sub:`01`
38      - Y'\ :sub:`03`
39    * - start + 8:
40      - Cb\ :sub:`10`
41      - Y'\ :sub:`10`
42      - Cr\ :sub:`10`
43      - Y'\ :sub:`11`
44      - Cb\ :sub:`11`
45      - Y'\ :sub:`12`
46      - Cr\ :sub:`11`
47      - Y'\ :sub:`13`
48    * - start + 16:
49      - Cb\ :sub:`20`
50      - Y'\ :sub:`20`
51      - Cr\ :sub:`20`
52      - Y'\ :sub:`21`
53      - Cb\ :sub:`21`
54      - Y'\ :sub:`22`
55      - Cr\ :sub:`21`
56      - Y'\ :sub:`23`
57    * - start + 24:
58      - Cb\ :sub:`30`
59      - Y'\ :sub:`30`
60      - Cr\ :sub:`30`
61      - Y'\ :sub:`31`
62      - Cb\ :sub:`31`
63      - Y'\ :sub:`32`
64      - Cr\ :sub:`31`
65      - Y'\ :sub:`33`
66
67
68**Color Sample Location:**
69
70
71
72.. flat-table::
73    :header-rows:  0
74    :stub-columns: 0
75
76    * -
77      - 0
78      -
79      - 1
80      - 2
81      -
82      - 3
83    * - 0
84      - Y
85      - C
86      - Y
87      - Y
88      - C
89      - Y
90    * - 1
91      - Y
92      - C
93      - Y
94      - Y
95      - C
96      - Y
97    * - 2
98      - Y
99      - C
100      - Y
101      - Y
102      - C
103      - Y
104    * - 3
105      - Y
106      - C
107      - Y
108      - Y
109      - C
110      - Y
111