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

#include <VideoDecoder.h>

Inheritance diagram for QtAV::VideoDecoder:
QtAV::AVDecoder

Public Types

typedef int Id
 

Public Member Functions

virtual VideoDecoderId id () const =0
 
QString name () const
 
virtual VideoFrame frame ()=0
 
- 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 VideoDecodercreate (VideoDecoderId id)
 
static VideoDecodercreate (const char *name="FFmpeg")
 create create a decoder from registered name. More...
 
static QVector< VideoDecoderIdregistered ()
 
template<class C >
static bool Register (VideoDecoderId id, const char *name)
 
static VideoDecoderIdnext (VideoDecoderId *id=0)
 next More...
 
static const char * name (VideoDecoderId id)
 
static VideoDecoderId id (const char *name)
 

Protected Member Functions

 VideoDecoder (VideoDecoderPrivate &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 ()
 

Member Typedef Documentation

Constructor & Destructor Documentation

QtAV::VideoDecoder::VideoDecoder ( VideoDecoderPrivate d)
protected

Member Function Documentation

static VideoDecoder* QtAV::VideoDecoder::create ( VideoDecoderId  id)
static
static VideoDecoder* QtAV::VideoDecoder::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", "CUDA", "VDA", "VAAPI", "DXVA", "Cedarv"
Returns
0 if not registered
virtual VideoFrame QtAV::VideoDecoder::frame ( )
pure virtual
virtual VideoDecoderId QtAV::VideoDecoder::id ( ) const
pure virtual
static VideoDecoderId QtAV::VideoDecoder::id ( const char *  name)
static
QString QtAV::VideoDecoder::name ( ) const
virtual

Reimplemented from QtAV::AVDecoder.

static const char* QtAV::VideoDecoder::name ( VideoDecoderId  id)
static
static VideoDecoderId* QtAV::VideoDecoder::next ( VideoDecoderId 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::VideoDecoder::Register ( VideoDecoderId  id,
const char *  name 
)
inlinestatic
static QVector<VideoDecoderId> QtAV::VideoDecoder::registered ( )
static
static QStringList QtAV::VideoDecoder::supportedCodecs ( )
static

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