adas_pixel_format_t

Updated: May 06, 2022

Format of the pixel data

Synopsis:

#include <adas/adas_defs.h>
typedef enum {
    ADAS_PIXEL_FORMAT_INVALID = 0,
    ADAS_PIXEL_FORMAT_RGB,
    ADAS_PIXEL_FORMAT_BGR,
    ADAS_PIXEL_FORMAT_RGBA,
    ADAS_PIXEL_FORMAT_BGRA,
    ADAS_PIXEL_FORMAT_GRAY,
    ADAS_PIXEL_FORMAT_NV12,
    ADAS_PIXEL_FORMAT_I420,
    ADAS_PIXEL_FORMAT_YV12,
    ADAS_PIXEL_FORMAT_UYVY,
    ADAS_PIXEL_FORMAT_YUY2,
    ADAS_PIXEL_FORMAT_YVYU,
    ADAS_PIXEL_FORMAT_NV16
} adas_pixel_format_t;

Data:

ADAS_PIXEL_FORMAT_INVALID
For internal use only; do not use.
ADAS_PIXEL_FORMAT_RGB
The format is 24-bit RGB in the R, G, B byte-order.
ADAS_PIXEL_FORMAT_BGR
The format is 24-bit RGB in the B, G, R byte-order.
ADAS_PIXEL_FORMAT_RGBA
The format is 32-bit RGB in the R, G, B, A (Alpha) byte-order.
ADAS_PIXEL_FORMAT_BGRA
The format is 32-bit RGB in the B, G, R, A (Alpha) byte-order.
ADAS_PIXEL_FORMAT_GRAY
The format is 8-bit grayscale video data.
ADAS_PIXEL_FORMAT_NV12
The format is 12-bit per pixel NV12 video data.

The video is 4:2:0 semi-planar with a Y (luma) plane followed by a chroma plane (Cb, Cr).

ADAS_PIXEL_FORMAT_I420
The format is 12-bit per pixel I420 video data.

The video is 4:2:0 planar with a Y (luma) plane followed by a Cb plane and a Cr plane.

ADAS_PIXEL_FORMAT_YV12
The format is 12-bit per pixel YV12 video data.

The video is 4:2:0 planar with a Y (luma) plane followed by a Cr plane and a Cb plane.

ADAS_PIXEL_FORMAT_UYVY
The format is 16-bit per pixel UYVY video data.

The video is 4:2:2 packed with the byte order Cb, Y, Cr, Y.

ADAS_PIXEL_FORMAT_YUY2
The format is 16-bit per pixel YUY2 video data.

The video is 4:2:2 packed with the byte order Y, Cb, Y, Cr.

ADAS_PIXEL_FORMAT_YVYU
The format is 16-bit per pixel YVYU video data.

The video is 4:2:2 packed with the byte order Y, Cr, Y, Cb.

ADAS_PIXEL_FORMAT_NV16
The format is 16-bit per pixel NV16 video data.

The video is 4:2:2 semi-planar with a Y (luma) plane followed by a chroma plane (Cb, Cr).

Library:

libadas