|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<MediaQuality> magoffin.matt.ma2.MediaQuality
public enum MediaQuality
Quality constants for media items.
This enumeration defines a finite set of quality values that media items can be requested as. This is to limit the number of different quality values the application needs to generate, and possibly cache, for each media item it processes. Each enumeration defines a default quality value as a float, with 0 being the lowest quality and 100 being the highest quality. These defauls can be overridden by the application, however, and quality values will have different meanings to different types of media types. For many media types the quality value corresponds to the amount of lossy compression applied to them, e.g. the higher the quality the lower the amount of compression.
Enum Constant Summary | |
---|---|
AVERAGE
Average quality. |
|
GOOD
Good quality. |
|
HIGH
Very high quality. |
|
HIGHEST
The highest quality possible. |
|
LOW
Low quality. |
Method Summary | |
---|---|
float |
getQualityValue()
Get the default quality value. |
static MediaQuality |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MediaQuality[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MediaQuality HIGHEST
public static final MediaQuality HIGH
public static final MediaQuality GOOD
public static final MediaQuality AVERAGE
public static final MediaQuality LOW
Method Detail |
---|
public static final MediaQuality[] values()
for(MediaQuality c : MediaQuality.values()) System.out.println(c);
public static MediaQuality 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 namepublic float getQualityValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |