22 #ifndef QTAV_VIDEODECODER_H 23 #define QTAV_VIDEODECODER_H 27 #include <QtCore/QStringList> 62 static QStringList supportedCodecs();
70 static VideoDecoder* create(
const char* name =
"FFmpeg");
71 virtual VideoDecoderId id()
const = 0;
76 static QVector<VideoDecoderId> registered();
77 template<
class C>
static bool Register(VideoDecoderId
id,
const char* name) {
return Register(
id, create<C>, name);}
83 static VideoDecoderId* next(VideoDecoderId*
id = 0);
84 static const char* name(VideoDecoderId
id);
85 static VideoDecoderId id(
const char* name);
87 template<
class C>
static VideoDecoder* create() {
return new C();}
89 static bool Register(VideoDecoderId
id, VideoDecoderCreator,
const char *name);
106 #endif // QTAV_VIDEODECODER_H static bool Register(VideoDecoderId id, const char *name)
Definition: VideoDecoder.h:77
#define Q_AV_EXPORT
Definition: QtAV_Global.h:40
Q_AV_EXPORT VideoDecoderId VideoDecoderId_Cedarv
#define DPTR_DECLARE_PRIVATE(Class)
Definition: dptr.h:107
Definition: AVDecoder.h:33
Definition: VideoDecoder.h:57
Q_AV_EXPORT VideoDecoderId VideoDecoderId_MediaCodec
int VideoDecoderId
Definition: VideoDecoder.h:30
int Id
Definition: VideoDecoder.h:75
Q_AV_EXPORT VideoDecoderId VideoDecoderId_FFmpeg
Q_AV_EXPORT VideoDecoderId VideoDecoderId_D3D11
Q_AV_EXPORT VideoDecoderId VideoDecoderId_VDA
Definition: VideoFrame.h:32
Q_AV_EXPORT VideoDecoderId VideoDecoderId_VideoToolbox
Q_AV_EXPORT VideoDecoderId VideoDecoderId_VAAPI
Q_AV_EXPORT VideoDecoderId VideoDecoderId_DXVA
AudioOutput ao; ao.setAudioFormat(fmt); ao.open(); while (has_data) { data = read_data(ao->bufferSize...
Definition: AudioDecoder.h:31
Q_AV_EXPORT VideoDecoderId VideoDecoderId_CUDA
Definition: AVDecoder_p.h:135