1 .. -*- coding: utf-8; mode: rst -*-
6 ******************************************************
7 V4L2_PIX_FMT_NV12 ('NV12'), V4L2_PIX_FMT_NV21 ('NV21')
8 ******************************************************
10 *man V4L2_PIX_FMT_NV12(2)*
13 Formats with ½ horizontal and vertical chroma resolution, also known as
14 YUV 4:2:0. One luminance and one chrominance plane with alternating
15 chroma samples as opposed to ``V4L2_PIX_FMT_YVU420``
21 These are two-plane versions of the YUV 4:2:0 format. The three
22 components are separated into two sub-images or planes. The Y plane is
23 first. The Y plane has one byte per pixel. For ``V4L2_PIX_FMT_NV12``, a
24 combined CbCr plane immediately follows the Y plane in memory. The CbCr
25 plane is the same width, in bytes, as the Y plane (and of the image),
26 but is half as tall in pixels. Each CbCr pair belongs to four pixels.
27 For example, Cb\ :sub:`0`/Cr\ :sub:`0` belongs to Y'\ :sub:`00`,
28 Y'\ :sub:`01`, Y'\ :sub:`10`, Y'\ :sub:`11`. ``V4L2_PIX_FMT_NV21`` is
29 the same except the Cb and Cr bytes are swapped, the CrCb plane starts
32 If the Y plane has pad bytes after each row, then the CbCr plane has as
33 many pad bytes after its rows.
36 Each cell is one byte.
119 **Color Sample Location..**