1 .. -*- coding: utf-8; mode: rst -*-
3 .. _V4L2-PIX-FMT-NV12M:
4 .. _v4l2-pix-fmt-nv12mt-16x16:
5 .. _V4L2-PIX-FMT-NV21M:
7 ***********************************************************************************
8 V4L2_PIX_FMT_NV12M ('NM12'), V4L2_PIX_FMT_NV21M ('NM21'), V4L2_PIX_FMT_NV12MT_16X16
9 ***********************************************************************************
13 V4L2_PIX_FMT_NV12MT_16X16
14 Variation of ``V4L2_PIX_FMT_NV12`` and ``V4L2_PIX_FMT_NV21`` with planes
15 non contiguous in memory.
21 This is a multi-planar, two-plane version of the YUV 4:2:0 format. The
22 three components are separated into two sub-images or planes.
23 ``V4L2_PIX_FMT_NV12M`` differs from ``V4L2_PIX_FMT_NV12`` in that the
24 two planes are non-contiguous in memory, i.e. the chroma plane do not
25 necessarily immediately follows the luma plane. The luminance data
26 occupies the first plane. The Y plane has one byte per pixel. In the
27 second plane there is a chrominance data with alternating chroma
28 samples. The CbCr plane is the same width, in bytes, as the Y plane (and
29 of the image), but is half as tall in pixels. Each CbCr pair belongs to
30 four pixels. For example, Cb\ :sub:`0`/Cr\ :sub:`0` belongs to
31 Y'\ :sub:`00`, Y'\ :sub:`01`, Y'\ :sub:`10`, Y'\ :sub:`11`.
32 ``V4L2_PIX_FMT_NV12MT_16X16`` is the tiled version of
33 ``V4L2_PIX_FMT_NV12M`` with 16x16 macroblock tiles. Here pixels are
34 arranged in 16x16 2D tiles and tiles are arranged in linear order in
35 memory. ``V4L2_PIX_FMT_NV21M`` is the same as ``V4L2_PIX_FMT_NV12M``
36 except the Cb and Cr bytes are swapped, the CrCb plane starts with a Cr
39 ``V4L2_PIX_FMT_NV12M`` is intended to be used only in drivers and
40 applications that support the multi-planar API, described in
43 If the Y plane has pad bytes after each row, then the CbCr plane has as
44 many pad bytes after its rows.
47 Each cell is one byte.
86 **Color Sample Location..**