22 #ifndef QTAV_AVDECODER_P_H 23 #define QTAV_AVDECODER_P_H 25 #include <QtCore/QHash> 26 #include <QtCore/QSharedPointer> 27 #include <QtCore/QVector> 35 #if QTAV_HAVE(AVBUFREF) 36 QVector<AVBufferRef*> buf;
41 #if QTAV_HAVE(AVBUFREF) 53 qWarning(
"av_buffer_ref(frame->buf[%d]) error", i);
62 qWarning(
"av_buffer_ref(frame->extended_buf[%d]) error", i);
65 #endif //QTAV_HAVE(AVBUFREF) 68 #if QTAV_HAVE(AVBUFREF) 72 #endif //QTAV_HAVE(AVBUFREF) 109 virtual bool open() {
return true;}
112 void applyOptionsForDict();
113 void applyOptionsForContext();
147 #endif // QTAV_AVDECODER_P_H void av_buffer_unref(AVBufferRef **buf)
QByteArray decoded
Definition: AVDecoder_p.h:132
bool available
Definition: AVDecoder_p.h:116
AVBufferRef ** extended_buf
Definition: frame.h:381
virtual void close()
Definition: AVDecoder_p.h:110
AudioResampler * resampler
Definition: AVDecoder_p.h:131
QSharedPointer< AVFrameBuffers > AVFrameBuffersRef
Definition: AVDecoder_p.h:75
#define Q_AV_PRIVATE_EXPORT
Definition: QtAV_Global.h:43
~AVFrameBuffers()
Definition: AVDecoder_p.h:67
AVCodecContext * codec_ctx
Definition: AVDecoder_p.h:115
enum AVCodecID codec_id
Definition: avcodec.h:1693
const struct AVCodec * codec
Definition: avcodec.h:1685
AVCodecID
Definition: avcodec.h:191
bool is_open
Definition: AVDecoder_p.h:117
struct AVDictionary AVDictionary
Definition: dict.h:90
void av_dict_free(AVDictionary **m)
VideoDecoderPrivate()
Definition: AVDecoder_p.h:138
static const char * getProfileName(AVCodecID id, int profile)
Definition: AVDecoder_p.h:80
QString codec_name
Definition: AVDecoder_p.h:119
Definition: AVDecoder_p.h:34
Definition: AVDecoder_p.h:77
AVCodecContext * avcodec_alloc_context3(const AVCodec *codec)
virtual bool enableFrameRef() const
Definition: AVDecoder_p.h:111
int undecoded_size
Definition: AVDecoder_p.h:118
int profile
Definition: avcodec.h:3182
Definition: AudioResampler.h:32
#define FF_ARRAY_ELEMS(a)
Definition: common.h:100
const char * av_get_profile_name(const AVCodec *codec, int profile)
void avcodec_free_context(AVCodecContext **avctx)
Definition: avcodec.h:1676
AVCodec * avcodec_find_decoder(enum AVCodecID id)
AVBufferRef * buf[AV_NUM_DATA_POINTERS]
Definition: frame.h:367
int nb_extended_buf
Definition: frame.h:385
static const char * getProfileName(const AVCodecContext *ctx)
Definition: AVDecoder_p.h:86
AVDictionary * dict
Definition: AVDecoder_p.h:121
virtual ~AVDecoderPrivate()
Definition: AVDecoder_p.h:101
AudioOutput ao; ao.setAudioFormat(fmt); ao.open(); while (has_data) { data = read_data(ao->bufferSize...
Definition: AudioDecoder.h:31
AVFrameBuffers(AVFrame *frame)
Definition: AVDecoder_p.h:39
AVBufferRef * av_buffer_ref(AVBufferRef *buf)
Definition: avcodec.h:3601
virtual ~VideoDecoderPrivate()
Definition: AVDecoder_p.h:141
AVDecoderPrivate()
Definition: AVDecoder_p.h:92
virtual bool open()
Definition: AVDecoder_p.h:109
Definition: AVDecoder_p.h:125
QVariantHash options
Definition: AVDecoder_p.h:120
Definition: AVDecoder_p.h:135