|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.neoworks.mpeg.MPEGFrame
This class represents an MPEG frame. MPEG frames contain a header, compressed audio data and an optional checksum.
Field Summary | |
static int |
DUAL_CHANNEL
Frame mode constant |
static int |
FOURTYEIGHT
Sample rate constant |
static int |
FOURTYFOUR_POINT_ONE
Samole rate constant |
static int[][] |
frequencies
Sample rate lookup table |
static int |
JOINT_STEREO
Frame mode constant |
static int |
MPEG1
Constant for MPEG-1 version |
static int |
MPEG2
Constant for MPEG-2 version |
static int |
SINGLE_CHANNEL
Frame mode constant |
static int |
STEREO
Frame mode constant |
static int |
THIRTYTWO
Sample rate constant |
Constructor Summary | |
MPEGFrame(int headerstring)
Public constructor |
Method Summary | |
int |
getBitrate()
Get the frame bitrate in bytes/second |
java.lang.String |
getBitrateString()
Get a description of the frame bitrate |
short |
getCRCChecksum()
Get the CRC checksum for this frame |
byte[] |
getFrameData()
Get the entire frame as a byte array |
int |
getFrameSize()
Get the frame size in bytes (including the header bytes) |
int |
getFrequency()
Get the smaple frequency of the frame data |
int |
getIntensityStereoBound()
Get the intensity stereo bound |
java.lang.String |
getLayerString()
Get a description of the MPEG layer |
int |
getModeExtension()
Get the stereo mode extension if any |
java.lang.String |
getModeString()
Get a description of the mode |
int |
getMPEGLayer()
Get the MPEG layer |
int |
getMPEGVersion()
Get the MPEG version |
int |
getNumberOfSubbands()
Get the number of sub bands |
java.lang.String |
getSampleFrequencyString()
Get a description of the frame sample rate |
int |
getSlots()
Get the number of audio data slots in this frame |
boolean |
hasPadding()
Is the frame padded? |
boolean |
isCRCProtected()
Get the CRC protection indicator bit. |
java.lang.String |
toString()
Get a human readable representation of this header |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int[][] frequencies
public static final int MPEG1
public static final int MPEG2
public static final int STEREO
public static final int JOINT_STEREO
public static final int DUAL_CHANNEL
public static final int SINGLE_CHANNEL
public static final int FOURTYFOUR_POINT_ONE
public static final int FOURTYEIGHT
public static final int THIRTYTWO
Constructor Detail |
public MPEGFrame(int headerstring) throws CorruptMPEGHeaderException
headerstring
- The four header bytes
CorruptMPEGHeaderException
- If the header can not be parsedMethod Detail |
public int getMPEGVersion()
public int getMPEGLayer()
public int getFrequency()
public boolean hasPadding()
public int getSlots()
public int getModeExtension()
public java.lang.String getLayerString()
public java.lang.String getBitrateString()
public java.lang.String getSampleFrequencyString()
public java.lang.String getModeString()
public int getNumberOfSubbands()
public int getIntensityStereoBound()
public boolean isCRCProtected()
public int getBitrate()
public int getFrameSize()
public byte[] getFrameData()
public short getCRCChecksum()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |