1 .. SPDX-License-Identifier: GFDL-1.1-no-invari 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 2 2 3 .. _V4L2-PIX-FMT-M420: 3 .. _V4L2-PIX-FMT-M420: 4 4 5 ************************** 5 ************************** 6 V4L2_PIX_FMT_M420 ('M420') 6 V4L2_PIX_FMT_M420 ('M420') 7 ************************** 7 ************************** 8 8 9 Format with ½ horizontal and vertical chroma 9 Format with ½ horizontal and vertical chroma resolution, also known as 10 YUV 4:2:0. Hybrid plane line-interleaved layou 10 YUV 4:2:0. Hybrid plane line-interleaved layout. 11 11 12 12 13 Description 13 Description 14 =========== 14 =========== 15 15 16 M420 is a YUV format with ½ horizontal and ve 16 M420 is a YUV format with ½ horizontal and vertical chroma subsampling 17 (YUV 4:2:0). Pixels are organized as interleav 17 (YUV 4:2:0). Pixels are organized as interleaved luma and chroma planes. 18 Two lines of luma data are followed by one lin 18 Two lines of luma data are followed by one line of chroma data. 19 19 20 The luma plane has one byte per pixel. The chr 20 The luma plane has one byte per pixel. The chroma plane contains 21 interleaved CbCr pixels subsampled by ½ in th 21 interleaved CbCr pixels subsampled by ½ in the horizontal and vertical 22 directions. Each CbCr pair belongs to four pix 22 directions. Each CbCr pair belongs to four pixels. For example, 23 Cb\ :sub:`0`/Cr\ :sub:`0` belongs to Y'\ :sub: 23 Cb\ :sub:`0`/Cr\ :sub:`0` belongs to Y'\ :sub:`00`, Y'\ :sub:`01`, 24 Y'\ :sub:`10`, Y'\ :sub:`11`. 24 Y'\ :sub:`10`, Y'\ :sub:`11`. 25 25 26 All line lengths are identical: if the Y lines 26 All line lengths are identical: if the Y lines include pad bytes so do 27 the CbCr lines. 27 the CbCr lines. 28 28 29 **Byte Order.** 29 **Byte Order.** 30 Each cell is one byte. 30 Each cell is one byte. 31 31 32 32 33 .. flat-table:: 33 .. flat-table:: 34 :header-rows: 0 34 :header-rows: 0 35 :stub-columns: 0 35 :stub-columns: 0 36 36 37 * - start + 0: 37 * - start + 0: 38 - Y'\ :sub:`00` 38 - Y'\ :sub:`00` 39 - Y'\ :sub:`01` 39 - Y'\ :sub:`01` 40 - Y'\ :sub:`02` 40 - Y'\ :sub:`02` 41 - Y'\ :sub:`03` 41 - Y'\ :sub:`03` 42 * - start + 4: 42 * - start + 4: 43 - Y'\ :sub:`10` 43 - Y'\ :sub:`10` 44 - Y'\ :sub:`11` 44 - Y'\ :sub:`11` 45 - Y'\ :sub:`12` 45 - Y'\ :sub:`12` 46 - Y'\ :sub:`13` 46 - Y'\ :sub:`13` 47 * - start + 8: 47 * - start + 8: 48 - Cb\ :sub:`00` 48 - Cb\ :sub:`00` 49 - Cr\ :sub:`00` 49 - Cr\ :sub:`00` 50 - Cb\ :sub:`01` 50 - Cb\ :sub:`01` 51 - Cr\ :sub:`01` 51 - Cr\ :sub:`01` 52 * - start + 16: 52 * - start + 16: 53 - Y'\ :sub:`20` 53 - Y'\ :sub:`20` 54 - Y'\ :sub:`21` 54 - Y'\ :sub:`21` 55 - Y'\ :sub:`22` 55 - Y'\ :sub:`22` 56 - Y'\ :sub:`23` 56 - Y'\ :sub:`23` 57 * - start + 20: 57 * - start + 20: 58 - Y'\ :sub:`30` 58 - Y'\ :sub:`30` 59 - Y'\ :sub:`31` 59 - Y'\ :sub:`31` 60 - Y'\ :sub:`32` 60 - Y'\ :sub:`32` 61 - Y'\ :sub:`33` 61 - Y'\ :sub:`33` 62 * - start + 24: 62 * - start + 24: 63 - Cb\ :sub:`10` 63 - Cb\ :sub:`10` 64 - Cr\ :sub:`10` 64 - Cr\ :sub:`10` 65 - Cb\ :sub:`11` 65 - Cb\ :sub:`11` 66 - Cr\ :sub:`11` 66 - Cr\ :sub:`11` 67 67 68 68 69 **Color Sample Location:** 69 **Color Sample Location:** 70 Chroma samples are :ref:`interstitially sited< 70 Chroma samples are :ref:`interstitially sited<yuv-chroma-centered>` 71 horizontally and vertically. 71 horizontally and vertically.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.