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 ********************************************************
10 *man V4L2_PIX_FMT_NV16M(2)*
13 Variation of ``V4L2_PIX_FMT_NV16`` and ``V4L2_PIX_FMT_NV61`` with planes
14 non contiguous in memory.
20 This is a multi-planar, two-plane version of the YUV 4:2:2 format. The
21 three components are separated into two sub-images or planes.
22 ``V4L2_PIX_FMT_NV16M`` differs from ``V4L2_PIX_FMT_NV16`` in that the
23 two planes are non-contiguous in memory, i.e. the chroma plane does not
24 necessarily immediately follow the luma plane. The luminance data
25 occupies the first plane. The Y plane has one byte per pixel. In the
26 second plane there is chrominance data with alternating chroma samples.
27 The CbCr plane is the same width and height, in bytes, as the Y plane.
28 Each CbCr pair belongs to two pixels. For example,
29 Cb\ :sub:`0`/Cr\ :sub:`0` belongs to Y'\ :sub:`00`, Y'\ :sub:`01`.
30 ``V4L2_PIX_FMT_NV61M`` is the same as ``V4L2_PIX_FMT_NV16M`` except the
31 Cb and Cr bytes are swapped, the CrCb plane starts with a Cr byte.
33 ``V4L2_PIX_FMT_NV16M`` and ``V4L2_PIX_FMT_NV61M`` are intended to be
34 used only in drivers and applications that support the multi-planar API,
35 described in :ref:`planar-apis`.
38 Each cell is one byte.
149 **Color Sample Location..**