avfDecoder Class Reference

#include <avfdecoder.h>

Inheritance diagram for avfDecoder:

Decoder MythObservable

List of all members.


Detailed Description

Definition at line 13 of file avfdecoder.h.


Public Member Functions

 avfDecoder (const QString &file, DecoderFactory *, QIODevice *, AudioOutput *)
virtual ~avfDecoder (void)
bool initialize ()
double lengthInSeconds ()
void seek (double)
void stop ()
MetaIOdoCreateTagger (void)
 Create a MetaIO object for the format.

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 freq
long bitrate
int chan
unsigned long output_size
double totalTime
double seekTime
QString devicename
long int start
long int end
AVOutputFormatfmt
AVInputFormatifmt
AVFormatParameters params
AVFormatParametersap
AVFormatContextoc
AVFormatContextic
AVStreamenc_st
AVStreamdec_st
AVCodeccodec
AVCodecenc_codec
AVCodecContextaudio_enc
AVCodecContextaudio_dec
AVPacket pkt1
AVPacketpkt
int errcode
unsigned char * ptr
int dec_len
int data_size
short samples [AVCODEC_MAX_AUDIO_FRAME_SIZE/2]

Constructor & Destructor Documentation

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

Definition at line 34 of file avfdecoder.cpp.

avfDecoder::~avfDecoder ( void   )  [virtual]

Definition at line 62 of file avfdecoder.cpp.


Member Function Documentation

bool avfDecoder::initialize (  )  [virtual]

Implements Decoder.

Definition at line 110 of file avfdecoder.cpp.

double avfDecoder::lengthInSeconds (  ) 

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

Implements Decoder.

Definition at line 196 of file avfdecoder.cpp.

void avfDecoder::stop ( void   )  [virtual]

Implements Decoder.

Definition at line 74 of file avfdecoder.cpp.

MetaIO * avfDecoder::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 358 of file avfdecoder.cpp.

void avfDecoder::run ( void   )  [private]

Definition at line 222 of file avfdecoder.cpp.

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

Definition at line 79 of file avfdecoder.cpp.

Referenced by run().

void avfDecoder::deinit (  )  [private]

Definition at line 201 of file avfdecoder.cpp.

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


Member Data Documentation

Definition at line 32 of file avfdecoder.h.

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

Definition at line 32 of file avfdecoder.h.

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

int avfDecoder::stat [private]

Definition at line 33 of file avfdecoder.h.

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

char* avfDecoder::output_buf [private]

Definition at line 34 of file avfdecoder.h.

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

Definition at line 35 of file avfdecoder.h.

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

Definition at line 35 of file avfdecoder.h.

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

unsigned int avfDecoder::bks [private]

Definition at line 37 of file avfdecoder.h.

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

Definition at line 38 of file avfdecoder.h.

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

Definition at line 38 of file avfdecoder.h.

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

long avfDecoder::len [private]

Definition at line 39 of file avfdecoder.h.

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

long avfDecoder::freq [private]

Definition at line 39 of file avfdecoder.h.

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

long avfDecoder::bitrate [private]

Definition at line 39 of file avfdecoder.h.

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

int avfDecoder::chan [private]

Definition at line 40 of file avfdecoder.h.

Referenced by avfDecoder(), deinit(), flush(), and initialize().

unsigned long avfDecoder::output_size [private]

Definition at line 41 of file avfdecoder.h.

double avfDecoder::totalTime [private]

Definition at line 42 of file avfdecoder.h.

Referenced by avfDecoder(), and initialize().

double avfDecoder::seekTime [private]

Definition at line 42 of file avfdecoder.h.

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

QString avfDecoder::devicename [private]

Definition at line 44 of file avfdecoder.h.

long int avfDecoder::start [private]

Definition at line 46 of file avfdecoder.h.

long int avfDecoder::end [private]

Definition at line 47 of file avfdecoder.h.

Definition at line 49 of file avfdecoder.h.

Referenced by initialize().

Definition at line 50 of file avfdecoder.h.

Referenced by avfDecoder(), and initialize().

Definition at line 51 of file avfdecoder.h.

Referenced by avfDecoder().

Definition at line 52 of file avfdecoder.h.

Referenced by avfDecoder(), and initialize().

Definition at line 53 of file avfdecoder.h.

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

Definition at line 53 of file avfdecoder.h.

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

Definition at line 54 of file avfdecoder.h.

Definition at line 54 of file avfdecoder.h.

Referenced by initialize().

Definition at line 55 of file avfdecoder.h.

Definition at line 55 of file avfdecoder.h.

Definition at line 56 of file avfdecoder.h.

Definition at line 56 of file avfdecoder.h.

Referenced by initialize(), and run().

Definition at line 57 of file avfdecoder.h.

Referenced by avfDecoder().

Definition at line 58 of file avfdecoder.h.

Referenced by avfDecoder(), and run().

int avfDecoder::errcode [private]

Definition at line 60 of file avfdecoder.h.

unsigned char* avfDecoder::ptr [private]

Definition at line 62 of file avfdecoder.h.

Referenced by run().

int avfDecoder::dec_len [private]

Definition at line 63 of file avfdecoder.h.

Referenced by run().

int avfDecoder::data_size [private]

Definition at line 63 of file avfdecoder.h.

Referenced by run().

short avfDecoder::samples[AVCODEC_MAX_AUDIO_FRAME_SIZE/2] [private]

Definition at line 64 of file avfdecoder.h.

Referenced by flush(), and run().


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

Generated on Sat Dec 18 05:15:59 2010 for MythTV by  doxygen 1.5.5