|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ResolutionFormat>
org.stanwood.media.info.ResolutionFormat
public enum ResolutionFormat
Used to enumerate know video resolution formats
Enum Constant Summary | |
---|---|
Format_1080i
Used to represent the video resolution format 1080i |
|
Format_1080p
Used to represent the video resolution format 1080p |
|
Format_480i
Used to represent the video resolution format 480i |
|
Format_480p
Used to represent the video resolution format 480p |
|
Format_576i
Used to represent the video resolution format 576i |
|
Format_576p
Used to represent the video resolution format 576p |
|
Format_720i
Used to represent the video resolution format 720i |
|
Format_720p
Used to represent the video resolution format 720p |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Used to get the description |
static ResolutionFormat |
getFormat(int width,
int height,
boolean interlaced)
Used to get the format based on a videos parameters |
int |
getHeight()
Used to get the formats height in pixels at the default aspect ratio |
AspectRatio |
getRatio()
Used to get the formats default aspect ratio |
int |
getWidth()
Used to get the formats width in pixels at the default aspect ratio |
boolean |
isHighDef()
Returns true if the format is high def |
boolean |
isInterlaced()
Used to find out if the format is interlaced |
static ResolutionFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ResolutionFormat[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ResolutionFormat Format_480i
public static final ResolutionFormat Format_480p
public static final ResolutionFormat Format_576i
public static final ResolutionFormat Format_576p
public static final ResolutionFormat Format_720p
public static final ResolutionFormat Format_720i
public static final ResolutionFormat Format_1080i
public static final ResolutionFormat Format_1080p
Method Detail |
---|
public static ResolutionFormat[] values()
for (ResolutionFormat c : ResolutionFormat.values()) System.out.println(c);
public static ResolutionFormat 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 name
java.lang.NullPointerException
- if the argument is nullpublic boolean isHighDef()
public int getWidth()
public int getHeight()
public AspectRatio getRatio()
public boolean isInterlaced()
public java.lang.String getDescription()
public static ResolutionFormat getFormat(int width, int height, boolean interlaced)
width
- The width of the video in pixelsheight
- The height of the video in pixelsinterlaced
- True if the video scan type is interlaced
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |