Name

V4L2_PIX_FMT_NV24, V4L2_PIX_FMT_NV42 — Formats with full horizontal and vertical chroma resolutions, also known as YUV 4:4:4. One luminance and one chrominance plane with alternating chroma samples as opposed to V4L2_PIX_FMT_YVU420

Description

These are two-plane versions of the YUV 4:4:4 format. The three components are separated into two sub-images or planes. The Y plane is first, with each Y sample stored in one byte per pixel. For V4L2_PIX_FMT_NV24, a combined CbCr plane immediately follows the Y plane in memory. The CbCr plane has the same width and height, in pixels, as the Y plane (and the image). Each line contains one CbCr pair per pixel, with each Cb and Cr sample stored in one byte. V4L2_PIX_FMT_NV42 is the same except that the Cb and Cr samples are swapped, the CrCb plane starts with a Cr sample.

If the Y plane has pad bytes after each row, then the CbCr plane has twice as many pad bytes after its rows.

Example 2.36. V4L2_PIX_FMT_NV24 4 × 4 pixel image

Byte Order. Each cell is one byte.

start + 0:Y'00Y'01Y'02Y'03    
start + 4:Y'10Y'11Y'12Y'13    
start + 8:Y'20Y'21Y'22Y'23    
start + 12:Y'30Y'31Y'32Y'33    
start + 16:Cb00Cr00Cb01Cr01Cb02Cr02Cb03Cr03
start + 24:Cb10Cr10Cb11Cr11Cb12Cr12Cb13Cr13
start + 32:Cb20Cr20Cb21Cr21Cb22Cr22Cb23Cr23
start + 40:Cb30Cr30Cb31Cr31Cb32Cr32Cb33Cr33