Enum Snpe_ImageEncoding_t

Enum Documentation

enum Snpe_ImageEncoding_t

Enumeration that lists the supported image encoding formats.

Values:

enumerator SNPE_IMAGE_ENCODING_UNKNOWN = 0

For unknown image type. Also used as a default value for ImageEncoding_t.

enumerator SNPE_IMAGE_ENCODING_RGB = 1

The RGB format consists of 3 bytes per pixel: one byte for Red, one for Green, and one for Blue. The byte ordering is endian independent and is always in RGB byte order.

enumerator SNPE_IMAGE_ENCODING_ARGB32 = 2

The ARGB32 format consists of 4 bytes per pixel: one byte for Red, one for Green, one for Blue, and one for the alpha channel. The alpha channel is ignored. The byte ordering depends on the underlying CPU. For little endian CPUs, the byte order is BGRA. For big endian CPUs, the byte order is ARGB.

enumerator SNPE_IMAGE_ENCODING_RGBA = 3

The RGBA format consists of 4 bytes per pixel: one byte for Red, one for Green, one for Blue, and one for the alpha channel. The alpha channel is ignored. The byte ordering is endian independent and is always in RGBA byte order.

enumerator SNPE_IMAGE_ENCODING_GRAYSCALE = 4

The GRAYSCALE format is for 8-bit grayscale.

enumerator SNPE_IMAGE_ENCODING_NV21 = 5

NV21 is the Android version of YUV. The Chrominance is down sampled and has a subsampling ratio of 4:2:0. Note that this image format has 3 channels, but the U and V channels are subsampled. For every four Y pixels there is one U and one V pixel.

enumerator SNPE_IMAGE_ENCODING_BGR = 6

The BGR format consists of 3 bytes per pixel: one byte for Red, one for Green and one for Blue. The byte ordering is endian independent and is always BGR byte order.