MP3StreamState Class Reference

#include <MP3StreamState.hh>

Collaboration diagram for MP3StreamState:

Collaboration graph
[legend]

Public Member Functions

 MP3StreamState (UsageEnvironment &env)
virtual ~MP3StreamState ()
void assignStream (FILE *fid, unsigned fileSize)
unsigned findNextHeader (struct timeval &presentationTime)
Boolean readFrame (unsigned char *outBuf, unsigned outBufSize, unsigned &resultFrameSize, unsigned &resultDurationInMicroseconds)
void getAttributes (char *buffer, unsigned bufferSize) const
float filePlayTime () const
unsigned fileSize () const
void setPresentationTimeScale (unsigned scale)
unsigned getByteNumberFromPositionFraction (float fraction)
void seekWithinFile (unsigned seekByteNumber)
void checkForXingHeader ()

Protected Member Functions

unsigned readFromStream (unsigned char *buf, unsigned numChars)

Private Member Functions

MP3FrameParamsfr ()
MP3FrameParams const & fr () const
timeval currentFramePlayTime () const
Boolean findNextFrame ()

Private Attributes

UsageEnvironmentfEnv
FILE * fFid
Boolean fFidIsReallyASocket
unsigned fFileSize
unsigned fNumFramesInFile
unsigned fPresentationTimeScale
Boolean fIsVBR
Boolean fHasXingTOC
u_int8_t fXingTOC [XING_TOC_LENGTH]
MP3FrameParams fCurrentFrame
timeval fNextFramePresentationTime

Detailed Description

Definition at line 41 of file MP3StreamState.hh.


Constructor & Destructor Documentation

MP3StreamState::MP3StreamState ( UsageEnvironment env  ) 

virtual MP3StreamState::~MP3StreamState (  )  [virtual]


Member Function Documentation

void MP3StreamState::assignStream ( FILE *  fid,
unsigned  fileSize 
)

unsigned MP3StreamState::findNextHeader ( struct timeval &  presentationTime  ) 

Boolean MP3StreamState::readFrame ( unsigned char *  outBuf,
unsigned  outBufSize,
unsigned &  resultFrameSize,
unsigned &  resultDurationInMicroseconds 
)

void MP3StreamState::getAttributes ( char *  buffer,
unsigned  bufferSize 
) const

float MP3StreamState::filePlayTime (  )  const

unsigned MP3StreamState::fileSize (  )  const [inline]

Definition at line 57 of file MP3StreamState.hh.

References fFileSize.

00057 { return fFileSize; }

void MP3StreamState::setPresentationTimeScale ( unsigned  scale  )  [inline]

Definition at line 58 of file MP3StreamState.hh.

References fPresentationTimeScale.

00058 { fPresentationTimeScale = scale; }

unsigned MP3StreamState::getByteNumberFromPositionFraction ( float  fraction  ) 

void MP3StreamState::seekWithinFile ( unsigned  seekByteNumber  ) 

void MP3StreamState::checkForXingHeader (  ) 

unsigned MP3StreamState::readFromStream ( unsigned char *  buf,
unsigned  numChars 
) [protected]

MP3FrameParams& MP3StreamState::fr (  )  [inline, private]

Definition at line 68 of file MP3StreamState.hh.

References fCurrentFrame.

00068 {return fCurrentFrame;}

MP3FrameParams const& MP3StreamState::fr (  )  const [inline, private]

Definition at line 69 of file MP3StreamState.hh.

References fCurrentFrame.

00069 {return fCurrentFrame;}

struct timeval MP3StreamState::currentFramePlayTime (  )  const [read, private]

Boolean MP3StreamState::findNextFrame (  )  [private]


Field Documentation

UsageEnvironment& MP3StreamState::fEnv [private]

Definition at line 76 of file MP3StreamState.hh.

FILE* MP3StreamState::fFid [private]

Definition at line 77 of file MP3StreamState.hh.

Boolean MP3StreamState::fFidIsReallyASocket [private]

Definition at line 78 of file MP3StreamState.hh.

unsigned MP3StreamState::fFileSize [private]

Definition at line 79 of file MP3StreamState.hh.

Referenced by fileSize().

unsigned MP3StreamState::fNumFramesInFile [private]

Definition at line 80 of file MP3StreamState.hh.

unsigned MP3StreamState::fPresentationTimeScale [private]

Definition at line 81 of file MP3StreamState.hh.

Referenced by setPresentationTimeScale().

Boolean MP3StreamState::fIsVBR [private]

Definition at line 83 of file MP3StreamState.hh.

Boolean MP3StreamState::fHasXingTOC [private]

Definition at line 83 of file MP3StreamState.hh.

u_int8_t MP3StreamState::fXingTOC[XING_TOC_LENGTH] [private]

Definition at line 84 of file MP3StreamState.hh.

MP3FrameParams MP3StreamState::fCurrentFrame [private]

Definition at line 86 of file MP3StreamState.hh.

Referenced by fr().

struct timeval MP3StreamState::fNextFramePresentationTime [read, private]

Definition at line 87 of file MP3StreamState.hh.


The documentation for this class was generated from the following file:
Generated on Fri Sep 12 12:32:20 2014 for live by  doxygen 1.5.2