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.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
10 .. _V4L2-PIX-FMT-NV12:
11 .. _V4L2-PIX-FMT-NV21:
13 ******************************************************
14 V4L2_PIX_FMT_NV12 ('NV12'), V4L2_PIX_FMT_NV21 ('NV21')
15 ******************************************************
19 Formats with ½ horizontal and vertical chroma resolution, also known as
20 YUV 4:2:0. One luminance and one chrominance plane with alternating
21 chroma samples as opposed to ``V4L2_PIX_FMT_YVU420``
27 These are two-plane versions of the YUV 4:2:0 format. The three
28 components are separated into two sub-images or planes. The Y plane is
29 first. The Y plane has one byte per pixel. For ``V4L2_PIX_FMT_NV12``, a
30 combined CbCr plane immediately follows the Y plane in memory. The CbCr
31 plane is the same width, in bytes, as the Y plane (and of the image),
32 but is half as tall in pixels. Each CbCr pair belongs to four pixels.
33 For example, Cb\ :sub:`0`/Cr\ :sub:`0` belongs to Y'\ :sub:`00`,
34 Y'\ :sub:`01`, Y'\ :sub:`10`, Y'\ :sub:`11`. ``V4L2_PIX_FMT_NV21`` is
35 the same except the Cb and Cr bytes are swapped, the CrCb plane starts
38 If the Y plane has pad bytes after each row, then the CbCr plane has as
39 many pad bytes after its rows.
42 Each cell is one byte.
81 **Color Sample Location:**