ImageFormat

The ImageFormat class is a utility class designed to encapsulate and manage various image formats within an SDK. It serves as a central point for handling image data representations, with a focus on supporting two specific formats: NV21 and RGB_888.

Properties

Link copied to clipboard
const val NV21: Int = 17

YCrCb format used for images, which uses the NV21 encoding format.

Link copied to clipboard
const val RGB_888: Int = 41

Multi-plane RGB format

Functions

Link copied to clipboard
fun getBitsPerPixel(format: Int): Int

Use this function to retrieve the number of bits per pixel of an ImageFormat.

Link copied to clipboard