Example usage for Java android.graphics ImageFormat fields, constructors, methods, implement or subclass
The text is from its open source code.
int | UNKNOWN |
int | RGB_565 RGB format used for pictures encoded as RGB_565. |
int | YV12 Android YUV format. This format is exposed to software decoders and applications. YV12 is a 4:2:0 YCrCb planar format comprised of a WxH Y plane followed by (W/2) x (H/2) Cr and Cb planes. This format assumes
y_size = stride * height c_stride = ALIGN(stride/2, 16) c_size = c_stride * height/2 size = y_size + c_size * 2 cr_offset = y_size cb_offset = y_size + c_size For the android.hardware.camera2 API, the #YUV_420_888 format is recommended for YUV output instead. For the older camera API, this format is guaranteed to be supported for android.hardware.Camera preview images since API level 12; for earlier API versions, check android.hardware.Camera.Parameters#getSupportedPreviewFormats() . |
int | NV16 YCbCr format, used for video. |
int | NV21 YCrCb format used for images, which uses the NV21 encoding format. |
int | YUY2 YCbCr format used for images, which uses YUYV (YUY2) encoding format. |
int | JPEG Compressed JPEG 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. Images in this format are always represented by three separate buffers of data, one for each color plane. |
int | RAW_SENSOR General raw camera sensor image format, usually representing a single-channel Bayer-mosaic image. |
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 | getBitsPerPixel(int format) Use this function to retrieve the number of bits per pixel of an ImageFormat. |