|
|||||||||
| Home >> All >> org >> jempeg >> empeg >> [ core overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jempeg.empeg.core
Class FrameInfoExtract

java.lang.Objectorg.jempeg.empeg.core.FrameInfoExtract
- public class FrameInfoExtract
- extends java.lang.Object
FrameInfoExtract is used to parse MP3 frame info (sample rate, bitrate, VBR headers, etc.) from an MP3.
- Version:
- $Revision: 1.12 $
| Nested Class Summary | |
protected class |
FrameInfoExtract.MP3Header
|
protected class |
FrameInfoExtract.XingVBRHeader
|
| Field Summary | |
private static int |
BYTES_FLAG
|
private static int |
FIND_SYNC_BEFORE_BYTES_COUNT
|
private static int |
FRAMES_AND_BYTES
|
private static int |
FRAMES_FLAG
|
private java.lang.String |
myBitrate
|
private byte[] |
myBuffer
|
private int |
myBufferLength
|
private int |
myBufferStart
|
private int |
myDataOffset
|
private int |
myFirstHeader
|
private int |
myLength
|
private int |
myLengthMs
|
private FrameInfoExtract.MP3Header |
myMP3Header
|
private int |
mySamplerate
|
private int |
mySeekPos
|
private int |
myShiftReg
|
private SeekableInputStream |
myStream
|
private boolean |
myVBR
|
private FrameInfoExtract.XingVBRHeader |
myVBRHeader
|
private static int |
TOC_FLAG
|
private static int |
VBR_SCALE_FLAG
|
| Constructor Summary | |
FrameInfoExtract(SeekableInputStream _stream)
|
|
| Method Summary | |
protected boolean |
endOfFile()
|
boolean |
extract()
|
protected int |
figureMP3Bitrate(int _mpegVersionCode,
int _layerNumber,
int _bitrateCode)
|
protected int |
figureMP3Samplerate(int _mpegVersionCode,
int _samplerateCode)
|
protected int |
figureVBRHeaderOffset(int _id,
int _mode)
|
java.lang.String |
getBitrate()
|
protected int |
getByte()
|
int |
getDataOffset()
|
int |
getLengthMs()
|
protected int |
getMP3Header()
|
protected boolean |
getMP3Sync(int _distance)
|
int |
getSamplerate()
|
protected boolean |
getVBRHeader()
|
protected int |
getWord()
|
boolean |
isVBR()
|
protected boolean |
parseMP3Frames()
|
protected boolean |
parseVBRHeader()
|
protected void |
seek(int _pos)
|
protected void |
skip(int _howFar)
|
protected int |
tell()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
FRAMES_FLAG
private static final int FRAMES_FLAG
- See Also:
- Constant Field Values
BYTES_FLAG
private static final int BYTES_FLAG
- See Also:
- Constant Field Values
TOC_FLAG
private static final int TOC_FLAG
- See Also:
- Constant Field Values
VBR_SCALE_FLAG
private static final int VBR_SCALE_FLAG
- See Also:
- Constant Field Values
FRAMES_AND_BYTES
private static final int FRAMES_AND_BYTES
- See Also:
- Constant Field Values
FIND_SYNC_BEFORE_BYTES_COUNT
private static final int FIND_SYNC_BEFORE_BYTES_COUNT
- See Also:
- Constant Field Values
myStream
private SeekableInputStream myStream
myBuffer
private byte[] myBuffer
myBufferStart
private int myBufferStart
myBufferLength
private int myBufferLength
myFirstHeader
private int myFirstHeader
mySeekPos
private int mySeekPos
myLength
private int myLength
myShiftReg
private int myShiftReg
myBitrate
private java.lang.String myBitrate
mySamplerate
private int mySamplerate
myDataOffset
private int myDataOffset
myLengthMs
private int myLengthMs
myVBR
private boolean myVBR
myMP3Header
private FrameInfoExtract.MP3Header myMP3Header
myVBRHeader
private FrameInfoExtract.XingVBRHeader myVBRHeader
| Constructor Detail |
FrameInfoExtract
public FrameInfoExtract(SeekableInputStream _stream) throws java.io.IOException
| Method Detail |
getBitrate
public java.lang.String getBitrate()
getSamplerate
public int getSamplerate()
getDataOffset
public int getDataOffset()
getLengthMs
public int getLengthMs()
isVBR
public boolean isVBR()
extract
public boolean extract()
throws java.io.IOException
getVBRHeader
protected boolean getVBRHeader()
throws java.io.IOException
figureVBRHeaderOffset
protected int figureVBRHeaderOffset(int _id,
int _mode)
parseVBRHeader
protected boolean parseVBRHeader()
throws java.io.IOException
parseMP3Frames
protected boolean parseMP3Frames()
throws java.io.IOException
endOfFile
protected boolean endOfFile()
seek
protected void seek(int _pos)
throws java.io.IOException
tell
protected int tell()
skip
protected void skip(int _howFar)
getMP3Sync
protected boolean getMP3Sync(int _distance)
throws java.io.IOException
getByte
protected int getByte()
throws java.io.IOException
getMP3Header
protected int getMP3Header()
throws java.io.IOException
figureMP3Bitrate
protected int figureMP3Bitrate(int _mpegVersionCode,
int _layerNumber,
int _bitrateCode)
figureMP3Samplerate
protected int figureMP3Samplerate(int _mpegVersionCode,
int _samplerateCode)
getWord
protected int getWord()
throws java.io.IOException
|
|||||||||
| Home >> All >> org >> jempeg >> empeg >> [ core overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.jempeg.empeg.core.FrameInfoExtract