FLACPushDecoder Class Reference

#include <FLACPushDecoder.h>

Collaboration diagram for FLACPushDecoder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool acceptMetadata (OggPacket *inPacket)
StampedOggPacketdecodeFLAC (OggPacket *inPacket)
 FLACPushDecoder (void)
void flushCodec ()
unsigned long frameSize ()
void initCodec ()
unsigned long numberOfChannels ()
unsigned long sampleRate ()
virtual ~FLACPushDecoder (void)

Private Member Functions

virtual void error_callback (::FLAC__StreamDecoderErrorStatus status)
virtual void metadata_callback (const ::FLAC__StreamMetadata *metadata)
virtual ::FLAC__StreamDecoderReadStatus read_callback (FLAC__byte buffer[], unsigned *bytes)
virtual ::FLAC__StreamDecoderWriteStatus write_callback (const ::FLAC__Frame *frame, const FLAC__int32 *const buffer[])

Private Attributes

bool mBegun
unsigned long mFrameSize
bool mGotMetaData
OggPacketmInPacket
unsigned long mNumChannels
StampedOggPacketmOutPacket
unsigned long mSampleRate

Static Private Attributes

const int SIZE_16_BITS = 2

Constructor & Destructor Documentation

FLACPushDecoder::FLACPushDecoder void   ) 
 

Definition at line 4 of file FLACPushDecoder.cpp.

References false.

FLACPushDecoder::~FLACPushDecoder void   )  [virtual]
 

Definition at line 16 of file FLACPushDecoder.cpp.


Member Function Documentation

bool FLACPushDecoder::acceptMetadata OggPacket inPacket  ) 
 

Definition at line 29 of file FLACPushDecoder.cpp.

References mInPacket, and mOutPacket.

Referenced by FLACDecodeInputPin::showHeaderPacket().

StampedOggPacket * FLACPushDecoder::decodeFLAC OggPacket inPacket  ) 
 

Definition at line 39 of file FLACPushDecoder.cpp.

References mInPacket, and mOutPacket.

void FLACPushDecoder::error_callback ::FLAC__StreamDecoderErrorStatus  status  )  [private, virtual]
 

Definition at line 141 of file FLACPushDecoder.cpp.

void FLACPushDecoder::flushCodec  ) 
 

Definition at line 25 of file FLACPushDecoder.cpp.

Referenced by FLACDecodeInputPin::BeginFlush(), and FLACDecodeInputPin::EndOfStream().

unsigned long FLACPushDecoder::frameSize  )  [inline]
 

Definition at line 24 of file FLACPushDecoder.h.

Referenced by FLACDecodeInputPin::Receive().

void FLACPushDecoder::initCodec  ) 
 

Definition at line 22 of file FLACPushDecoder.cpp.

Referenced by FLACDecodeInputPin::ConstructCodec().

void FLACPushDecoder::metadata_callback const ::FLAC__StreamMetadata *  metadata  )  [private, virtual]
 

Definition at line 137 of file FLACPushDecoder.cpp.

unsigned long FLACPushDecoder::numberOfChannels  )  [inline]
 

Definition at line 23 of file FLACPushDecoder.h.

FLAC__StreamDecoderReadStatus FLACPushDecoder::read_callback FLAC__byte  buffer[],
unsigned *  bytes
[private]
 

Definition at line 60 of file FLACPushDecoder.cpp.

References mInPacket, OggPacket::packetData(), and OggPacket::packetSize().

Here is the call graph for this function:

unsigned long FLACPushDecoder::sampleRate  )  [inline]
 

Definition at line 25 of file FLACPushDecoder.h.

Referenced by FLACDecodeInputPin::Receive().

FLAC__StreamDecoderWriteStatus FLACPushDecoder::write_callback const ::FLAC__Frame *  frame,
const FLAC__int32 *const   buffer[]
[private]
 

Definition at line 81 of file FLACPushDecoder.cpp.

References mBegun, mFrameSize, mNumChannels, mOutPacket, and mSampleRate.


Member Data Documentation

bool FLACPushDecoder::mBegun [private]
 

Definition at line 43 of file FLACPushDecoder.h.

Referenced by write_callback().

unsigned long FLACPushDecoder::mFrameSize [private]
 

Definition at line 30 of file FLACPushDecoder.h.

Referenced by write_callback().

bool FLACPushDecoder::mGotMetaData [private]
 

Definition at line 42 of file FLACPushDecoder.h.

OggPacket* FLACPushDecoder::mInPacket [private]
 

Definition at line 39 of file FLACPushDecoder.h.

Referenced by acceptMetadata(), decodeFLAC(), and read_callback().

unsigned long FLACPushDecoder::mNumChannels [private]
 

Definition at line 29 of file FLACPushDecoder.h.

Referenced by write_callback().

StampedOggPacket* FLACPushDecoder::mOutPacket [private]
 

Definition at line 40 of file FLACPushDecoder.h.

Referenced by acceptMetadata(), decodeFLAC(), and write_callback().

unsigned long FLACPushDecoder::mSampleRate [private]
 

Definition at line 31 of file FLACPushDecoder.h.

Referenced by write_callback().

const int FLACPushDecoder::SIZE_16_BITS = 2 [static, private]
 

Definition at line 27 of file FLACPushDecoder.h.


The documentation for this class was generated from the following files:
Generated on Fri Feb 17 00:00:52 2006 for oggdsf by  doxygen 1.3.9