|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<MP123Header.ModeExtension>
fi.helsinki.cs.ohtu.mpeg2.audio.mpa.MP123Header.ModeExtension
public static enum MP123Header.ModeExtension
Represents the mode extension.
Enum Constant Summary | |
---|---|
ME_00
Layers I and II: join sub-bands 4-31, if joint stereo; Layer III: intensity stereo off, MS stereo off |
|
ME_01
Layers I and II: join sub-bands 8-31, if joint stereo; Layer III: intensity stereo on, MS stereo off |
|
ME_10
Layers I and II: join sub-bands 12-31, if joint stereo; Layer III: intensity stereo off, MS stereo on |
|
ME_11
Layers I and II: join sub-bands 16-31, if joint stereo; Layer III: intensity stereo on, MS stereo on |
Field Summary | |
---|---|
private boolean |
iStereo
|
private int |
jsbound
|
private int |
modeExt
|
private boolean |
msStereo
|
Method Summary | |
---|---|
int |
getJSBound()
Returns the joint stereo bound for layers I and II. |
boolean |
isIntensityStereo()
Returns whether intensity stereo is used for layer III. |
boolean |
isMSStereo()
Returns whether MS stereo is used for layer III. |
static MP123Header.ModeExtension |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MP123Header.ModeExtension[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
void |
writeTo(BitOutputStream stream)
Encodes this ModeExtension to the
given bit stream. |
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 MP123Header.ModeExtension ME_00
public static final MP123Header.ModeExtension ME_01
public static final MP123Header.ModeExtension ME_10
public static final MP123Header.ModeExtension ME_11
Field Detail |
---|
private final int modeExt
private final int jsbound
private final boolean iStereo
private final boolean msStereo
Method Detail |
---|
public static MP123Header.ModeExtension[] values()
for (MP123Header.ModeExtension c : MP123Header.ModeExtension.values()) System.out.println(c);
public static MP123Header.ModeExtension 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 int getJSBound()
public boolean isIntensityStereo()
true
iff intensity stereo is usedpublic boolean isMSStereo()
true
iff MS stereo is usedpublic void writeTo(BitOutputStream stream) throws java.io.IOException
ModeExtension
to the
given bit stream.
stream
- the stream to encode this
ModeExtension
to
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |