Package com.gdflab.gdfsr.video
Enum GDFDisplayMode
- java.lang.Object
-
- java.lang.Enum<GDFDisplayMode>
-
- com.gdflab.gdfsr.video.GDFDisplayMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GDFDisplayMode>
public enum GDFDisplayMode extends java.lang.Enum<GDFDisplayMode>
Enumeration class for display mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HIGH
Shows super-resolution frames.LOW
Shows original low resolution.SIDE_BY_SIDE
Shows both original and super-resolution side by side for comparison.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GDFDisplayMode
fromValue(int value)
Get enum instance from raw integer value.int
getValue()
Get raw integer value of this enum instance.static GDFDisplayMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GDFDisplayMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOW
public static final GDFDisplayMode LOW
Shows original low resolution.
-
HIGH
public static final GDFDisplayMode HIGH
Shows super-resolution frames.
-
SIDE_BY_SIDE
public static final GDFDisplayMode SIDE_BY_SIDE
Shows both original and super-resolution side by side for comparison.
-
-
Method Detail
-
values
public static GDFDisplayMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GDFDisplayMode c : GDFDisplayMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GDFDisplayMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromValue
public static GDFDisplayMode fromValue(int value)
Get enum instance from raw integer value.- Parameters:
value
- Raw integer value.- Returns:
- Enum instance corresponds with given value.
-
getValue
public int getValue()
Get raw integer value of this enum instance.- Returns:
- raw integer value of this enum instance.
-
-