1 .. -*- coding: utf-8; mode: rst -*-
5 ******************************************************
6 V4L2_PIX_FMT_NV12 ('NV12'), V4L2_PIX_FMT_NV21 ('NV21')
7 ******************************************************
9 *man V4L2_PIX_FMT_NV12(2)*
12 Formats with ½ horizontal and vertical chroma resolution, also known as
13 YUV 4:2:0. One luminance and one chrominance plane with alternating
14 chroma samples as opposed to ``V4L2_PIX_FMT_YVU420``
20 These are two-plane versions of the YUV 4:2:0 format. The three
21 components are separated into two sub-images or planes. The Y plane is
22 first. The Y plane has one byte per pixel. For ``V4L2_PIX_FMT_NV12``, a
23 combined CbCr plane immediately follows the Y plane in memory. The CbCr
24 plane is the same width, in bytes, as the Y plane (and of the image),
25 but is half as tall in pixels. Each CbCr pair belongs to four pixels.
26 For example, Cb\ :sub:`0`/Cr:sub:`0` belongs to Y'\ :sub:`00`,
27 Y'\ :sub:`01`, Y'\ :sub:`10`, Y'\ :sub:`11`. ``V4L2_PIX_FMT_NV21`` is
28 the same except the Cb and Cr bytes are swapped, the CrCb plane starts
31 If the Y plane has pad bytes after each row, then the CbCr plane has as
32 many pad bytes after its rows.
36 Each cell is one byte.
119 **Color Sample Location..**
235 .. ------------------------------------------------------------------------------
236 .. This file was automatically converted from DocBook-XML with the dbxml
237 .. library (https://github.com/return42/sphkerneldoc). The origin XML comes
238 .. from the linux kernel, refer to:
240 .. * https://github.com/torvalds/linux/tree/master/Documentation/DocBook
241 .. ------------------------------------------------------------------------------