public enum VideoScaleType extends Enum<VideoScaleType>
VideoRenderer
.Enum Constant and Description |
---|
ASPECT_BALANCED
A combination of fit and fill.
|
ASPECT_FILL
Video is scaled to fill entire view and preserve aspect ratio.
|
ASPECT_FIT
Video is scaled to fit size of view while maintaining aspect ratio.
|
Modifier and Type | Method and Description |
---|---|
static VideoScaleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VideoScaleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VideoScaleType ASPECT_FIT
public static final VideoScaleType ASPECT_FILL
public static final VideoScaleType ASPECT_BALANCED
public static VideoScaleType[] values()
for (VideoScaleType c : VideoScaleType.values()) System.out.println(c);
public static VideoScaleType 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 null