Supported Pixel Formats in NvMedia

Note:

On platforms that have the NVIDIA® AGX Orin SoC, NvMedia supports only UINT surfaces for RAW capture. Using an INT surface for RAW capture will result in an error.

The following table describes the NvMedia supported pixel formats.

Pixel Format

Description

R8G8B8A8

RGBA 8-bit packed normalized integer color format with the four components R/G/B/A) arranged consecutively from least significant bit to most significant bit in memory.

NVM_SURF_FMT_SET_ATTR_RGBA (attr, RGBA, UINT, 8, [PL|BL]);

R8_I

R16_I

R32_I

RGBA 8, 16, or 32-bit packed signed integer color format with one Alpha component.

NVM_SURF_FMT_SET_ATTR_RGBA (attr, ALPHA, INT, [8|16|32], [PL|BL]);

R16G16_I

RGBA 8-bit packed signed integer color format with two components (R and G) arranged consecutively from least significant bit to most significant bit in memory.

NVM_SURF_FMT_SET_ATTR_RGBA (attr, RG, INT, 16, [PL|BL]);

Y8_U8_V8_N420

Y8_U8_V8_N444

Y8_U8_V8_N422

YUV [4:2:0|4:4:4|4:2:2] planar 8-bit normalized integer color format with Y, U and V components arranged as separate planes in that order.

NVM_SURF_FMT_SET_ATTR_YUV (attr, YUV, [420|422|444], PLANAR, UINT, 8, [PL|BL]);

Y8_U8V8_N420

Y10_U10V10_N420

Y12_U12V12_N420

YUV 4:2:0 semi-planar 8, 10, or 12-bit normalized integer color format with Y in a separate plane and U and V arranged consecutively from least significant bit to most significant bit in single plane.

NVM_SURF_FMT_SET_ATTR_YUV (attr, YUV, 420, SEMI_PLANAR, UINT, [8|10|12], [PL|BL]);

Y8_U8V8_N444

Y10_U10V10_N444

Y12_U12V12_N444

YUV 4:4:4 semi-planar 8, 10, or 12-bit normalized integer color format with Y in a separate plane and U and V arranged consecutively from least significant bit to most significant bit in single plane.

NVM_SURF_FMT_SET_ATTR_YUV (attr, YUV, 444, SEMI_PLANAR, UINT, [8|10|12], [PL|BL]);

Y8U8Y8V8_N422

YUYV 4:2:2 packed 8-bit normalized integer color format with four components (Y/U/Y/V) arranged consecutively from least significant bit to most significant bit in memory.

NVM_SURF_FMT_SET_ATTR_YUV (attr, YUYV, 422, PACKED, UINT, 8, [PL|BL]);

X16Y16U16V16_F

XYUV Packed FP16 Color Format with the four components (X/Y/U/V) arranged consecutively from least significant bit to most significant bit in memory.

NVM_SURF_FMT_SET_ATTR_YUV (attr, XYUV, NONE, PACKED, FLOAT, 16, [PL|BL]);

Y8

Y10

Y12

Y16

YUV packed 8, 10, 12, or 16-bit normalized integer color format with one Luminance component.

NVM_SURF_FMT_SET_ATTR_YUV (attr, LUMA, NONE, PACKED, UINT, [8|10|12|16], [PL|BL]);

Bayer RGGB Format

RAW8

RAW10

RAW12

RAW16

RAW20

2×2 Bayer RGB packed 8, 10, 12, 16, or 20-bit signed integer color format with [R,G|B,G|G,R|G,B] and [G,B|G,R|B,G|R,G] pairs arranged in consecutive scan lines from least significant bit to most significant bit in memory.

NVM_SURF_FMT_SET_ATTR_RAW (attr, [RGGB|BGGR|GRBG|GBRG], [UINT|INT], [8|10|12|16|20], [PL|BL]);

For UINT or INT platform limitations, see the note at the beginning of Supported Pixel Formats in NvMedia (this section).

Bayer RCCB Format

RAW12

2×2 Bayer RCB packed 12-bit signed integer color format with [R,C|B,C|C,R|C,B] and [C,B|C,R|B,C|R,C] pairs arranged in consecutive scan lines from least significant bit to most significant bit in memory.

NVM_SURF_FMT_SET_ATTR_RAW (attr, [RCCB|BCCR|CRBC|CBRC], [UINT|INT], 12, [PL|BL]);

For UINT or INT platform limitations, see the note at the beginning of Supported Pixel Formats in NvMedia (this section).

Bayer RCCC Format

RAW12

2×2 Bayer RCC packed 12-bit signed integer color format with [R,C1|C2,C1|C1,C2|C1,C2] and [C1,C2|C1,C2|C2,C1|C2,C1] pairs arranged in consecutive scan lines from least significant bit to most significant bit in memory.

NVM_SURF_FMT_SET_ATTR_RAW (attr, [RCCC|CCCR|CRCC|CCRC], [UINT|INT], 12, [PL|BL]);

For UINT or INT platform limitations, see the note at the beginning of Supported Pixel Formats in NvMedia (this section).