public enum VideoFormat extends java.lang.Enum<VideoFormat>
Modifier and Type | Class and Description |
---|---|
static class |
VideoFormat.FormatTypes |
Enum Constant and Description |
---|
ARGB
Packed ARGB, in memory A,R,G,B alpha is NOT pre-multiplied.
|
BGRA_PRE
Packed BGRA, in memory B,G,R,A alpha is pre-multiplied.
|
YCbCr_420p
Planar YCbCr 4:2:0, alpha channel is optional.
|
YCbCr_422
Packed YCbCr 4:2:2, no alpha support (Only used on Mac currently).
|
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.Integer,VideoFormat> |
lookupMap |
private int |
nativeType |
Modifier and Type | Method and Description |
---|---|
static VideoFormat |
formatForType(int ntype) |
int |
getNativeType() |
boolean |
isEqualTo(int ntype) |
boolean |
isRGB() |
static VideoFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VideoFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VideoFormat ARGB
public static final VideoFormat BGRA_PRE
public static final VideoFormat YCbCr_420p
public static final VideoFormat YCbCr_422
private int nativeType
private static final java.util.Map<java.lang.Integer,VideoFormat> lookupMap
public static VideoFormat[] values()
for (VideoFormat c : VideoFormat.values()) System.out.println(c);
public static VideoFormat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getNativeType()
public boolean isRGB()
public boolean isEqualTo(int ntype)
public static VideoFormat formatForType(int ntype)