Serializable, Comparable<ImageFormat.ComponentType>public static enum ImageFormat.ComponentType extends Enum<ImageFormat.ComponentType>
This enum defines the meaning and form of the components, which represent the structure model of image data.
| 枚举常量 | 说明 |
|---|---|
H264 |
Indicates the H264 format, which has no component.
|
H265 |
Indicates the H265 format, which has no component.
|
JPEG |
Indicates the JPEG format, which has no component.
|
RAW10 |
Indicates the RAW10 format, which has no component.
|
RAW16 |
Indicates the RAW16 format, which has no component.
|
YUV_U |
Indicates the U component in the YUV format.
|
YUV_V |
Indicates the V component in the YUV format.
|
YUV_Y |
Indicates the Y component in the YUV format.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static ImageFormat.ComponentType |
valueOf(int value) |
Obtains a
ComponentType enum name based on its enum value. |
static ImageFormat.ComponentType |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static ImageFormat.ComponentType[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (ImageFormat.ComponentType c : ImageFormat.ComponentType.values()) System.out.println(c); |
public static final ImageFormat.ComponentType YUV_Y
public static final ImageFormat.ComponentType YUV_U
public static final ImageFormat.ComponentType YUV_V
public static final ImageFormat.ComponentType JPEG
public static final ImageFormat.ComponentType RAW10
public static final ImageFormat.ComponentType RAW16
public static final ImageFormat.ComponentType H264
public static final ImageFormat.ComponentType H265
public static ImageFormat.ComponentType[] values()
for (ImageFormat.ComponentType c : ImageFormat.ComponentType.values()) System.out.println(c);
public static ImageFormat.ComponentType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static ImageFormat.ComponentType valueOf(int value)
ComponentType enum name based on its enum value.value - Indicates the enum value.null otherwise.