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