^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) .. _V4L2-PIX-FMT-NV24:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) .. _V4L2-PIX-FMT-NV42:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) ******************************************************
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) V4L2_PIX_FMT_NV24 ('NV24'), V4L2_PIX_FMT_NV42 ('NV42')
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) ******************************************************
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) V4L2_PIX_FMT_NV42
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Formats with full horizontal and vertical chroma resolutions, also known
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) as YUV 4:4:4. One luminance and one chrominance plane with alternating
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) chroma samples as opposed to ``V4L2_PIX_FMT_YVU420``
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Description
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) ===========
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) These are two-plane versions of the YUV 4:4:4 format. The three
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) components are separated into two sub-images or planes. The Y plane is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) first, with each Y sample stored in one byte per pixel. For
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) ``V4L2_PIX_FMT_NV24``, a combined CbCr plane immediately follows the Y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) plane in memory. The CbCr plane has the same width and height, in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) pixels, as the Y plane (and the image). Each line contains one CbCr pair
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) per pixel, with each Cb and Cr sample stored in one byte.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) ``V4L2_PIX_FMT_NV42`` is the same except that the Cb and Cr samples are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) swapped, the CrCb plane starts with a Cr sample.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) If the Y plane has pad bytes after each row, then the CbCr plane has
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) twice as many pad bytes after its rows.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) **Byte Order.**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) Each cell is one byte.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) .. flat-table::
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) :header-rows: 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) :stub-columns: 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) * - start + 0:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) - Y'\ :sub:`00`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) - Y'\ :sub:`01`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) - Y'\ :sub:`02`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) - Y'\ :sub:`03`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) * - start + 4:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) - Y'\ :sub:`10`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) - Y'\ :sub:`11`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) - Y'\ :sub:`12`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) - Y'\ :sub:`13`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) * - start + 8:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) - Y'\ :sub:`20`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) - Y'\ :sub:`21`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) - Y'\ :sub:`22`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) - Y'\ :sub:`23`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) * - start + 12:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) - Y'\ :sub:`30`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) - Y'\ :sub:`31`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) - Y'\ :sub:`32`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) - Y'\ :sub:`33`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) * - start + 16:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) - Cb\ :sub:`00`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) - Cr\ :sub:`00`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) - Cb\ :sub:`01`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) - Cr\ :sub:`01`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) - Cb\ :sub:`02`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) - Cr\ :sub:`02`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) - Cb\ :sub:`03`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) - Cr\ :sub:`03`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) * - start + 24:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) - Cb\ :sub:`10`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) - Cr\ :sub:`10`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) - Cb\ :sub:`11`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) - Cr\ :sub:`11`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) - Cb\ :sub:`12`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) - Cr\ :sub:`12`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) - Cb\ :sub:`13`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) - Cr\ :sub:`13`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) * - start + 32:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) - Cb\ :sub:`20`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) - Cr\ :sub:`20`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) - Cb\ :sub:`21`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) - Cr\ :sub:`21`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) - Cb\ :sub:`22`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) - Cr\ :sub:`22`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) - Cb\ :sub:`23`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) - Cr\ :sub:`23`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) * - start + 40:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) - Cb\ :sub:`30`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) - Cr\ :sub:`30`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) - Cb\ :sub:`31`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) - Cr\ :sub:`31`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) - Cb\ :sub:`32`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) - Cr\ :sub:`32`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) - Cb\ :sub:`33`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) - Cr\ :sub:`33`