public enum VideoFormat extends 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 | Method and Description |
|---|---|
static VideoFormat |
formatForType(int ntype) |
int |
getNativeType() |
boolean |
isEqualTo(int ntype) |
boolean |
isRGB() |
static VideoFormat |
valueOf(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
public static VideoFormat[] values()
for (VideoFormat c : VideoFormat.values()) System.out.println(c);
public static VideoFormat 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 nullpublic int getNativeType()
public boolean isRGB()
public boolean isEqualTo(int ntype)
public static VideoFormat formatForType(int ntype)
Copyright © 2025. All rights reserved.