public enum VideoScaleType extends java.lang.Enum<VideoScaleType>
VideoSink
.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(java.lang.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(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 null6.4.1