aacDecoder Class Reference

#include <aacdecoder.h>

Inheritance diagram for aacDecoder:

Decoder MythObservable

List of all members.


Detailed Description

Definition at line 21 of file aacdecoder.h.


Public Member Functions

 aacDecoder (const QString &file, DecoderFactory *, QIODevice *, AudioOutput *)
virtual ~aacDecoder (void)
bool initialize ()
void seek (double)
void stop ()
MetaIOdoCreateTagger (void)
 Create a MetaIO object for the format.
bool initializeMP4 ()
int getAACTrack (mp4ff_t *infile)
uint32_t aacRead (char *buffer, uint32_t length)
uint32_t aacSeek (uint64_t position)

Private Member Functions

void run ()
void flush (bool=FALSE)
void deinit ()

Private Attributes

bool inited
bool user_stop
int stat
char * output_buf
ulong output_bytes
ulong output_at
unsigned int bks
bool done
bool finish
long len
long bitrate
uchar channels
unsigned long sample_rate
unsigned long output_size
double totalTime
double seekTime
bool mp4_file_flag
mp4ff_callback_t * mp4_callback
faacDecHandle decoder_handle
mp4ff_t * mp4_input_file
int aac_track_number
unsigned long timescale
unsigned int framesize

Constructor & Destructor Documentation

aacDecoder::aacDecoder ( const QString &  file,
DecoderFactory d,
QIODevice *  i,
AudioOutput o 
)

Definition at line 67 of file aacdecoder.cpp.

aacDecoder::~aacDecoder ( void   )  [virtual]

Definition at line 94 of file aacdecoder.cpp.


Member Function Documentation

bool aacDecoder::initialize (  )  [virtual]

Implements Decoder.

Definition at line 143 of file aacdecoder.cpp.

void aacDecoder::seek ( double  pos  )  [virtual]

Implements Decoder.

Definition at line 430 of file aacdecoder.cpp.

void aacDecoder::stop ( void   )  [virtual]

Implements Decoder.

Definition at line 106 of file aacdecoder.cpp.

MetaIO * aacDecoder::doCreateTagger ( void   )  [virtual]

Create a MetaIO object for the format.

This method should be overwritten by subclasses to return an instance of the appropriate MetaIO subtype. It is used by Decoder::getMetadata, Decoder::readMetadata and Decoder::commitMetadata.

The default implementation returns a NULL pointer, which essentially means, that if the decoder does not overrider this method or all of the users (see previous paragraph), files that the decoder supports cannot be indexed using metadata in the file.

e.g. the mp3 decoder (MadDecoder) implements this, whereas the audio CD decoder (CdDecoder) does not.

Returns:
an instance of MetaIO owned by the caller

Reimplemented from Decoder.

Definition at line 631 of file aacdecoder.cpp.

bool aacDecoder::initializeMP4 (  ) 

Definition at line 234 of file aacdecoder.cpp.

Referenced by initialize().

int aacDecoder::getAACTrack ( mp4ff_t *  infile  ) 

Definition at line 396 of file aacdecoder.cpp.

Referenced by initializeMP4().

uint32_t aacDecoder::aacRead ( char *  buffer,
uint32_t  length 
)

Definition at line 636 of file aacdecoder.cpp.

Referenced by read_callback().

uint32_t aacDecoder::aacSeek ( uint64_t  position  ) 

Definition at line 651 of file aacdecoder.cpp.

Referenced by seek_callback().

void aacDecoder::run ( void   )  [private]

Definition at line 454 of file aacdecoder.cpp.

void aacDecoder::flush ( bool  final = FALSE  )  [private]

Definition at line 111 of file aacdecoder.cpp.

Referenced by run().

void aacDecoder::deinit (  )  [private]

Definition at line 435 of file aacdecoder.cpp.

Referenced by run(), and ~aacDecoder().


Member Data Documentation

Definition at line 45 of file aacdecoder.h.

Referenced by aacDecoder(), deinit(), flush(), initialize(), initializeMP4(), run(), and ~aacDecoder().

Definition at line 45 of file aacdecoder.h.

Referenced by aacDecoder(), deinit(), flush(), initialize(), run(), and stop().

int aacDecoder::stat [private]

Definition at line 46 of file aacdecoder.h.

Referenced by aacDecoder(), deinit(), initialize(), and run().

char* aacDecoder::output_buf [private]

Definition at line 47 of file aacdecoder.h.

Referenced by aacDecoder(), flush(), initialize(), run(), and ~aacDecoder().

Definition at line 48 of file aacdecoder.h.

Referenced by aacDecoder(), flush(), initialize(), and run().

Definition at line 48 of file aacdecoder.h.

Referenced by aacDecoder(), flush(), initialize(), and run().

unsigned int aacDecoder::bks [private]

Definition at line 50 of file aacdecoder.h.

Referenced by aacDecoder(), flush(), and initialize().

Definition at line 51 of file aacdecoder.h.

Referenced by aacDecoder(), deinit(), flush(), initialize(), and run().

Definition at line 51 of file aacdecoder.h.

Referenced by aacDecoder(), deinit(), flush(), initialize(), and run().

long aacDecoder::len [private]

Definition at line 52 of file aacdecoder.h.

Referenced by aacDecoder(), deinit(), and initialize().

long aacDecoder::bitrate [private]

Definition at line 52 of file aacdecoder.h.

Referenced by aacDecoder(), deinit(), initialize(), initializeMP4(), and run().

uchar aacDecoder::channels [private]

Definition at line 53 of file aacdecoder.h.

Referenced by aacDecoder(), deinit(), flush(), initialize(), and initializeMP4().

unsigned long aacDecoder::sample_rate [private]

Definition at line 54 of file aacdecoder.h.

Referenced by aacDecoder(), deinit(), initialize(), and initializeMP4().

unsigned long aacDecoder::output_size [private]

Definition at line 55 of file aacdecoder.h.

double aacDecoder::totalTime [private]

Definition at line 56 of file aacdecoder.h.

Referenced by aacDecoder(), initialize(), initializeMP4(), and run().

double aacDecoder::seekTime [private]

Definition at line 56 of file aacdecoder.h.

Referenced by aacDecoder(), flush(), initialize(), run(), and seek().

Definition at line 58 of file aacdecoder.h.

Referenced by aacDecoder(), and initialize().

mp4ff_callback_t* aacDecoder::mp4_callback [private]

Definition at line 59 of file aacdecoder.h.

Referenced by aacDecoder(), deinit(), and initializeMP4().

faacDecHandle aacDecoder::decoder_handle [private]

Definition at line 60 of file aacdecoder.h.

Referenced by deinit(), initializeMP4(), and run().

mp4ff_t* aacDecoder::mp4_input_file [private]

Definition at line 61 of file aacdecoder.h.

Referenced by deinit(), initializeMP4(), and run().

Definition at line 62 of file aacdecoder.h.

Referenced by initializeMP4(), and run().

unsigned long aacDecoder::timescale [private]

Definition at line 63 of file aacdecoder.h.

Referenced by aacDecoder(), deinit(), initialize(), and initializeMP4().

unsigned int aacDecoder::framesize [private]

Definition at line 64 of file aacdecoder.h.

Referenced by aacDecoder(), deinit(), initialize(), and initializeMP4().


The documentation for this class was generated from the following files:

Generated on Sat Sep 4 05:15:57 2010 for MythTV by  doxygen 1.5.5