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/userspace-api/media/fdl-appendix.rst.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
10 .. _V4L2-PIX-FMT-NV24:
11 .. _V4L2-PIX-FMT-NV42:
13 ******************************************************
14 V4L2_PIX_FMT_NV24 ('NV24'), V4L2_PIX_FMT_NV42 ('NV42')
15 ******************************************************
18 Formats with full horizontal and vertical chroma resolutions, also known
19 as YUV 4:4:4. One luminance and one chrominance plane with alternating
20 chroma samples as opposed to ``V4L2_PIX_FMT_YVU420``
26 These are two-plane versions of the YUV 4:4:4 format. The three
27 components are separated into two sub-images or planes. The Y plane is
28 first, with each Y sample stored in one byte per pixel. For
29 ``V4L2_PIX_FMT_NV24``, a combined CbCr plane immediately follows the Y
30 plane in memory. The CbCr plane has the same width and height, in
31 pixels, as the Y plane (and the image). Each line contains one CbCr pair
32 per pixel, with each Cb and Cr sample stored in one byte.
33 ``V4L2_PIX_FMT_NV42`` is the same except that the Cb and Cr samples are
34 swapped, the CrCb plane starts with a Cr sample.
36 If the Y plane has pad bytes after each row, then the CbCr plane has
37 twice as many pad bytes after its rows.
40 Each cell is one byte.