Back to home page

OSCL-LXR

 
 

    


0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002 
0003 .. _V4L2-PIX-FMT-M420:
0004 
0005 **************************
0006 V4L2_PIX_FMT_M420 ('M420')
0007 **************************
0008 
0009 Format with ½ horizontal and vertical chroma resolution, also known as
0010 YUV 4:2:0. Hybrid plane line-interleaved layout.
0011 
0012 
0013 Description
0014 ===========
0015 
0016 M420 is a YUV format with ½ horizontal and vertical chroma subsampling
0017 (YUV 4:2:0). Pixels are organized as interleaved luma and chroma planes.
0018 Two lines of luma data are followed by one line of chroma data.
0019 
0020 The luma plane has one byte per pixel. The chroma plane contains
0021 interleaved CbCr pixels subsampled by ½ in the horizontal and vertical
0022 directions. Each CbCr pair belongs to four pixels. For example,
0023 Cb\ :sub:`0`/Cr\ :sub:`0` belongs to Y'\ :sub:`00`, Y'\ :sub:`01`,
0024 Y'\ :sub:`10`, Y'\ :sub:`11`.
0025 
0026 All line lengths are identical: if the Y lines include pad bytes so do
0027 the CbCr lines.
0028 
0029 **Byte Order.**
0030 Each cell is one byte.
0031 
0032 
0033 .. flat-table::
0034     :header-rows:  0
0035     :stub-columns: 0
0036 
0037     * - start + 0:
0038       - Y'\ :sub:`00`
0039       - Y'\ :sub:`01`
0040       - Y'\ :sub:`02`
0041       - Y'\ :sub:`03`
0042     * - start + 4:
0043       - Y'\ :sub:`10`
0044       - Y'\ :sub:`11`
0045       - Y'\ :sub:`12`
0046       - Y'\ :sub:`13`
0047     * - start + 8:
0048       - Cb\ :sub:`00`
0049       - Cr\ :sub:`00`
0050       - Cb\ :sub:`01`
0051       - Cr\ :sub:`01`
0052     * - start + 16:
0053       - Y'\ :sub:`20`
0054       - Y'\ :sub:`21`
0055       - Y'\ :sub:`22`
0056       - Y'\ :sub:`23`
0057     * - start + 20:
0058       - Y'\ :sub:`30`
0059       - Y'\ :sub:`31`
0060       - Y'\ :sub:`32`
0061       - Y'\ :sub:`33`
0062     * - start + 24:
0063       - Cb\ :sub:`10`
0064       - Cr\ :sub:`10`
0065       - Cb\ :sub:`11`
0066       - Cr\ :sub:`11`
0067 
0068 
0069 **Color Sample Location:**
0070 Chroma samples are :ref:`interstitially sited<yuv-chroma-centered>`
0071 horizontally and vertically.