Miam-Player  0.8.0
A nice music player
QtAV::AudioDecoder Class Referenceabstract

#include <AudioDecoder.h>

Inheritance diagram for QtAV::AudioDecoder:
QtAV::AVDecoder

Public Member Functions

virtual AudioDecoderId id () const =0
 
QString name () const
 
virtual QByteArray data () const
 
virtual AudioFrame frame ()=0
 
AudioResamplerresampler ()
 
- Public Member Functions inherited from QtAV::AVDecoder
virtual ~AVDecoder ()
 
virtual QString description () const
 
virtual bool open ()
 default is open FFmpeg codec context codec config must be done before open NOTE: open() and close() are not thread safe. More...
 
virtual bool close ()
 
bool isOpen () const
 
virtual void flush ()
 
void setCodecContext (void *codecCtx)
 
void * codecContext () const
 
bool isAvailable () const
 
virtual bool decode (const Packet &packet)=0
 
int undecodedSize () const
 
void setOptions (const QVariantHash &dict)
 setOptions More...
 
QVariantHash options () const
 

Static Public Member Functions

static QStringList supportedCodecs ()
 
static AudioDecodercreate (AudioDecoderId id)
 
static AudioDecodercreate (const char *name="FFmpeg")
 create create a decoder from registered name. More...
 
template<class C >
static bool Register (AudioDecoderId id, const char *name)
 
static AudioDecoderIdnext (AudioDecoderId *id=0)
 next More...
 
static const char * name (AudioDecoderId id)
 
static AudioDecoderId id (const char *name)
 

Protected Member Functions

 AudioDecoder (AudioDecoderPrivate &d)
 
- Protected Member Functions inherited from QtAV::AVDecoder
 AVDecoder (AVDecoderPrivate &d)
 
void setCodecName (const QString &name)
 
QString codecName () const
 
virtual void codecNameChanged ()
 

Additional Inherited Members

- Signals inherited from QtAV::AVDecoder
void error (const QtAV::AVError &e)
 
void descriptionChanged ()
 

Constructor & Destructor Documentation

QtAV::AudioDecoder::AudioDecoder ( AudioDecoderPrivate d)
protected

Member Function Documentation

static AudioDecoder* QtAV::AudioDecoder::create ( AudioDecoderId  id)
static
static AudioDecoder* QtAV::AudioDecoder::create ( const char *  name = "FFmpeg")
static

create create a decoder from registered name.

FFmpeg decoder will be created for empty name

Parameters
namecan be "FFmpeg"
Returns
0 if not registered
virtual QByteArray QtAV::AudioDecoder::data ( ) const
virtual
virtual AudioFrame QtAV::AudioDecoder::frame ( )
pure virtual
virtual AudioDecoderId QtAV::AudioDecoder::id ( ) const
pure virtual
static AudioDecoderId QtAV::AudioDecoder::id ( const char *  name)
static
QString QtAV::AudioDecoder::name ( ) const
virtual

Reimplemented from QtAV::AVDecoder.

static const char* QtAV::AudioDecoder::name ( AudioDecoderId  id)
static
static AudioDecoderId* QtAV::AudioDecoder::next ( AudioDecoderId id = 0)
static

next

Parameters
idNULL to get the first id address
Returns
address of id or NULL if not found/end
template<class C >
static bool QtAV::AudioDecoder::Register ( AudioDecoderId  id,
const char *  name 
)
inlinestatic
AudioResampler* QtAV::AudioDecoder::resampler ( )
static QStringList QtAV::AudioDecoder::supportedCodecs ( )
static

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