|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaudiotagger.audio.mp3.XingFrame
public class XingFrame
Xing Frame
In some MP3s which variable bit rate the first frame in the file contains a special frame called a Xing Frame, instead of audio data. This is used to store additional information about the file. The most important aspect for this library is details allowing us to determine the bitrate of a Variable Bit Rate VBR file without having to process the whole file. Xing VBR Tag data format is 120 bytes long 4 bytes for Header Tag 4 bytes for Header Flags 4 bytes for FRAME SIZE 4 bytes for AUDIO_SIZE 100 bytes for entry (NUMTOCENTRIES) 4 bytes for VBR SCALE. a VBR quality indicator: 0=best 100=worst It my then contain a Lame Frame ( a Lame frame is in essence an extended Xing Frame
Field Summary | |
---|---|
static int |
MAX_BUFFER_SIZE_NEEDED_TO_READ_XING
|
Method Summary | |
---|---|
int |
getAudioSize()
|
int |
getFrameCount()
|
LameFrame |
getLameFrame()
|
boolean |
isAudioSizeEnabled()
|
boolean |
isFrameCountEnabled()
|
boolean |
isVbr()
Is this XingFrame detailing a varaible bit rate MPEG |
static boolean |
isXingFrame(java.nio.ByteBuffer bb,
MPEGFrameHeader mpegFrameHeader)
IS this a Xing frame |
static XingFrame |
parseXingFrame()
Parse the XingFrame of an MP3File, cannot be called until we have validated that this is a XingFrame |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_BUFFER_SIZE_NEEDED_TO_READ_XING
Method Detail |
---|
public LameFrame getLameFrame()
public final boolean isFrameCountEnabled()
public final int getFrameCount()
public final boolean isAudioSizeEnabled()
public final int getAudioSize()
public static XingFrame parseXingFrame() throws InvalidAudioFrameException
InvalidAudioFrameException
public static boolean isXingFrame(java.nio.ByteBuffer bb, MPEGFrameHeader mpegFrameHeader)
public final boolean isVbr()
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 |