java.lang.Object | |
↳ | android.graphics.PixelFormat |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | A_8 | ||||||||||
int | JPEG | Encoded formats. | |||||||||
int | LA_88 | ||||||||||
int | L_8 | ||||||||||
int | OPAQUE | System chooses an opaque format (no alpha bits required) | |||||||||
int | RGBA_4444 | ||||||||||
int | RGBA_5551 | ||||||||||
int | RGBA_8888 | ||||||||||
int | RGBX_8888 | ||||||||||
int | RGB_332 | ||||||||||
int | RGB_565 | ||||||||||
int | RGB_888 | ||||||||||
int | TRANSLUCENT | System chooses a format that supports translucency (many alpha bits) | |||||||||
int | TRANSPARENT | System chooses a format that supports transparency (at least 1 alpha bit) | |||||||||
int | UNKNOWN | ||||||||||
int | YCbCr_420_SP | YCbCr format used for images, which uses the NV21 encoding format. | |||||||||
int | YCbCr_422_I | YCbCr format used for images, which uses YUYV (YUY2) encoding format. | |||||||||
int | YCbCr_422_SP | YCbCr formats, used for video. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
bitsPerPixel | |||||||||||
bytesPerPixel |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Encoded formats. These are not necessarily supported by the hardware.
System chooses an opaque format (no alpha bits required)
System chooses a format that supports translucency (many alpha bits)
System chooses a format that supports transparency (at least 1 alpha bit)
YCbCr format used for images, which uses the NV21 encoding format.
This is the default format for camera preview images, when not
otherwise set with
setPreviewFormat(int)
.
YCbCr format used for images, which uses YUYV (YUY2) encoding format.
This is an alternative format for camera preview images. Whether this
format is supported by the camera hardware can be determined by
getSupportedPreviewFormats()
.
YCbCr formats, used for video. These are not necessarily supported by the hardware.