public static enum Frame.COLOR_FORMAT extends Enum<Frame.COLOR_FORMAT>
Frame
's color format.Enum Constant and Description |
---|
RGBA
Colored with Red, Green, Blue and Alpha channels.
|
UNKNOWN_TYPE
Unknown color format, let the SDK try to deduce the correct one, using the number of channels.
|
YUV_NV21
Colored with YUV420sp format.
|
Modifier and Type | Method and Description |
---|---|
static Frame.COLOR_FORMAT |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Frame.COLOR_FORMAT[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Frame.COLOR_FORMAT RGBA
Note: Compatible with Bitmap.Config#ARGB_8888
.
public static final Frame.COLOR_FORMAT YUV_NV21
Camera.Parameters#setPreviewFormat(int)
,
ImageFormat
public static final Frame.COLOR_FORMAT UNKNOWN_TYPE
public static Frame.COLOR_FORMAT[] values()
for (Frame.COLOR_FORMAT c : Frame.COLOR_FORMAT.values()) System.out.println(c);
public static Frame.COLOR_FORMAT valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015. All rights reserved.