ImageFormat


public class ImageFormat
extends Object

java.lang.Object
   ↳ android.graphics.ImageFormat


Summary

Constants

int DEPTH16

Android dense depth image format.

int DEPTH_JPEG

Depth augmented compressed JPEG format.

int DEPTH_POINT_CLOUD

Android sparse depth point cloud format.

int FLEX_RGBA_8888

Multi-plane Android RGBA format

This format is a generic RGBA format, capable of describing most RGBA formats, with 8 bits per color sample.

int FLEX_RGB_888

Multi-plane Android RGB format

This format is a generic RGB format, capable of describing most RGB formats, with 8 bits per color sample.

int HEIC

Compressed HEIC format.

int HEIC_ULTRAHDR

High Efficiency Image File Format (HEIF) with embedded HDR gain map

This format defines the HEIC brand of High Efficiency Image File Format as described in ISO/IEC 23008-12:2024 with HDR gain map according to ISO/CD 21496\u20101.

int JPEG

Compressed JPEG format.

int JPEG_R

Compressed JPEG format that includes an embedded recovery map.

int NV16

YCbCr format, used for video.

int NV21

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

int PRIVATE

Android private opaque image format.

int RAW10

Android 10-bit raw format

This is a single-plane, 10-bit per pixel, densely packed (in each row), unprocessed format, usually representing raw Bayer-pattern images coming from an image sensor.

int RAW12

Android 12-bit raw format

This is a single-plane, 12-bit per pixel, densely packed (in each row), unprocessed format, usually representing raw Bayer-pattern images coming from an image sensor.

int RAW14

Android 14-bit raw format

This is a single-plane, 14-bit per pixel, densely packed (in each row), unprocessed format, usually representing raw Bayer-pattern images coming from an image sensor.

int RAW_PRIVATE

Private raw camera sensor image format, a single channel image with implementation dependent pixel layout.

int RAW_SENSOR

General raw camera sensor image format, usually representing a single-channel Bayer-mosaic image.

int RGB_565

RGB format used for pictures encoded as RGB_565.

int UNKNOWN

int Y8

Android Y8 format.

int YCBCR_P010

Android YUV P010 format.

int YCBCR_P210

Android YUV P210 format.

int YUV_420_888

Multi-plane Android YUV 420 format

This format is a generic YCbCr format, capable of describing any 4:2:0 chroma-subsampled planar or semiplanar buffer (but not fully interleaved), with 8 bits per color sample.

int YUV_422_888

Multi-plane Android YUV 422 format

This format is a generic YCbCr format, capable of describing any 4:2:2 chroma-subsampled (planar, semiplanar or interleaved) format, with 8 bits per color sample.

int YUV_444_888

Multi-plane Android YUV 444 format

This format is a generic YCbCr format, capable of describing any 4:4:4 (planar, semiplanar or interleaved) format, with 8 bits per color sample.

int YUY2

YCbCr format used for images, which uses YUYV (YUY2) encoding format.

int YV12

Android YUV format.

Public constructors

ImageFormat()

Public methods

static int getBitsPerPixel(int format)

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

Inherited methods