public enum PixelFormat extends java.lang.Enum<PixelFormat>
Modifier and Type | Class and Description |
---|---|
static class |
PixelFormat.DataType |
Enum Constant and Description |
---|
BYTE_ALPHA |
BYTE_APPLE_422 |
BYTE_BGRA_PRE |
BYTE_GRAY |
BYTE_RGB |
FLOAT_XYZW |
INT_ARGB_PRE |
MULTI_YCbCr_420 |
Modifier and Type | Field and Description |
---|---|
private PixelFormat.DataType |
dataType |
private int |
elemsPerPixelUnit |
private boolean |
opaque |
private boolean |
rgb |
static int |
YCBCR_PLANE_ALPHA |
static int |
YCBCR_PLANE_CHROMABLUE |
static int |
YCBCR_PLANE_CHROMARED |
static int |
YCBCR_PLANE_LUMA |
Modifier and Type | Method and Description |
---|---|
int |
getBytesPerPixelUnit() |
PixelFormat.DataType |
getDataType() |
int |
getElemsPerPixelUnit() |
boolean |
isOpaque() |
boolean |
isRGB() |
static PixelFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PixelFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PixelFormat INT_ARGB_PRE
public static final PixelFormat BYTE_BGRA_PRE
public static final PixelFormat BYTE_RGB
public static final PixelFormat BYTE_GRAY
public static final PixelFormat BYTE_ALPHA
public static final PixelFormat MULTI_YCbCr_420
public static final PixelFormat BYTE_APPLE_422
public static final PixelFormat FLOAT_XYZW
public static final int YCBCR_PLANE_LUMA
public static final int YCBCR_PLANE_CHROMARED
public static final int YCBCR_PLANE_CHROMABLUE
public static final int YCBCR_PLANE_ALPHA
private PixelFormat.DataType dataType
private int elemsPerPixelUnit
private boolean rgb
private boolean opaque
public static PixelFormat[] values()
for (PixelFormat c : PixelFormat.values()) System.out.println(c);
public static PixelFormat 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 PixelFormat.DataType getDataType()
public int getBytesPerPixelUnit()
public int getElemsPerPixelUnit()
public boolean isRGB()
public boolean isOpaque()