1 .. -*- coding: utf-8; mode: rst -*-
3 .. _V4L2-PIX-FMT-NV16M:
5 ********************************************************
6 V4L2_PIX_FMT_NV16M ('NM16'), V4L2_PIX_FMT_NV61M ('NM61')
7 ********************************************************
9 *man V4L2_PIX_FMT_NV16M(2)*
12 Variation of ``V4L2_PIX_FMT_NV16`` and ``V4L2_PIX_FMT_NV61`` with planes
13 non contiguous in memory.
19 This is a multi-planar, two-plane version of the YUV 4:2:2 format. The
20 three components are separated into two sub-images or planes.
21 ``V4L2_PIX_FMT_NV16M`` differs from ``V4L2_PIX_FMT_NV16`` in that the
22 two planes are non-contiguous in memory, i.e. the chroma plane does not
23 necessarily immediately follow the luma plane. The luminance data
24 occupies the first plane. The Y plane has one byte per pixel. In the
25 second plane there is chrominance data with alternating chroma samples.
26 The CbCr plane is the same width and height, in bytes, as the Y plane.
27 Each CbCr pair belongs to two pixels. For example,
28 Cb\ :sub:`0`/Cr:sub:`0` belongs to Y'\ :sub:`00`, Y'\ :sub:`01`.
29 ``V4L2_PIX_FMT_NV61M`` is the same as ``V4L2_PIX_FMT_NV16M`` except the
30 Cb and Cr bytes are swapped, the CrCb plane starts with a Cr byte.
32 ``V4L2_PIX_FMT_NV16M`` and ``V4L2_PIX_FMT_NV61M`` are intended to be
33 used only in drivers and applications that support the multi-planar API,
34 described in :ref:`planar-apis`.
38 Each cell is one byte.
149 **Color Sample Location..**
291 .. ------------------------------------------------------------------------------
292 .. This file was automatically converted from DocBook-XML with the dbxml
293 .. library (https://github.com/return42/sphkerneldoc). The origin XML comes
294 .. from the linux kernel, refer to:
296 .. * https://github.com/torvalds/linux/tree/master/Documentation/DocBook
297 .. ------------------------------------------------------------------------------