![]() |
Miam-Player
0.8.0
A nice music player
|
#include <VideoDecoder.h>
Public Types | |
typedef int | Id |
Public Member Functions | |
virtual VideoDecoderId | id () const =0 |
QString | name () const |
virtual VideoFrame | frame ()=0 |
![]() | |
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 VideoDecoder * | create (VideoDecoderId id) |
static VideoDecoder * | create (const char *name="FFmpeg") |
create create a decoder from registered name. More... | |
static QVector< VideoDecoderId > | registered () |
template<class C > | |
static bool | Register (VideoDecoderId id, const char *name) |
static VideoDecoderId * | next (VideoDecoderId *id=0) |
next More... | |
static const char * | name (VideoDecoderId id) |
static VideoDecoderId | id (const char *name) |
Protected Member Functions | |
VideoDecoder (VideoDecoderPrivate &d) | |
![]() | |
AVDecoder (AVDecoderPrivate &d) | |
void | setCodecName (const QString &name) |
QString | codecName () const |
virtual void | codecNameChanged () |
Additional Inherited Members | |
![]() | |
void | error (const QtAV::AVError &e) |
void | descriptionChanged () |
typedef int QtAV::VideoDecoder::Id |
|
protected |
|
static |
|
static |
create create a decoder from registered name.
FFmpeg decoder will be created for empty name
name | can be "FFmpeg", "CUDA", "VDA", "VAAPI", "DXVA", "Cedarv" |
|
pure virtual |
|
pure virtual |
|
static |
|
virtual |
Reimplemented from QtAV::AVDecoder.
|
static |
|
static |
next
id | NULL to get the first id address |
|
inlinestatic |
|
static |
|
static |