1 .. -*- coding: utf-8; mode: rst -*-
3 .. _V4L2-PIX-FMT-NV16M:
4 .. _v4l2-pix-fmt-nv61m:
6 ********************************************************
7 V4L2_PIX_FMT_NV16M ('NM16'), V4L2_PIX_FMT_NV61M ('NM61')
8 ********************************************************
11 Variation of ``V4L2_PIX_FMT_NV16`` and ``V4L2_PIX_FMT_NV61`` with planes
12 non contiguous in memory.
18 This is a multi-planar, two-plane version of the YUV 4:2:2 format. The
19 three components are separated into two sub-images or planes.
20 ``V4L2_PIX_FMT_NV16M`` differs from ``V4L2_PIX_FMT_NV16`` in that the
21 two planes are non-contiguous in memory, i.e. the chroma plane does not
22 necessarily immediately follow the luma plane. The luminance data
23 occupies the first plane. The Y plane has one byte per pixel. In the
24 second plane there is chrominance data with alternating chroma samples.
25 The CbCr plane is the same width and height, in bytes, as the Y plane.
26 Each CbCr pair belongs to two pixels. For example,
27 Cb\ :sub:`0`/Cr\ :sub:`0` belongs to Y'\ :sub:`00`, Y'\ :sub:`01`.
28 ``V4L2_PIX_FMT_NV61M`` is the same as ``V4L2_PIX_FMT_NV16M`` except the
29 Cb and Cr bytes are swapped, the CrCb plane starts with a Cr byte.
31 ``V4L2_PIX_FMT_NV16M`` and ``V4L2_PIX_FMT_NV61M`` are intended to be
32 used only in drivers and applications that support the multi-planar API,
33 described in :ref:`planar-apis`.
36 Each cell is one byte.
86 **Color Sample Location..**