Go to the documentation of this file. 1 #ifndef MYTHMEDIACODECCONTEXT_H
2 #define MYTHMEDIACODECCONTEXT_H
9 #include "libavutil/pixfmt.h"
10 #include "libavutil/hwcontext.h"
11 #include "libavcodec/avcodec.h"
14 using MCProfiles = QList<QPair<MythCodecContext::CodecProfile,QSize>>;
21 void InitVideoCodec(AVCodecContext *Context,
bool SelectedStream,
bool &DirectRendering)
override;
26 const AVCodec **Codec,
30 static AVPixelFormat
GetFormat (AVCodecContext*,
const AVPixelFormat *PixFmt);
41 #endif // MYTHMEDIACODECCONTEXT_H
bool IsDeinterlacing(bool &DoubleRate, bool=false) override
static void GetDecoderList(QStringList &Decoders)
static MCProfiles & GetProfiles(void)
void PostProcessFrame(AVCodecContext *, MythVideoFrame *) override
Mark all MediaCodec decoded frames as progressive,.
static MythCodecID GetBestSupportedCodec(AVCodecContext **Context, const AVCodec **Codec, const QString &Decoder, AVStream *Stream, uint StreamType)
static bool HaveMediaCodec(bool Reinit=false)
bool RetrieveFrame(AVCodecContext *Context, MythVideoFrame *Frame, AVFrame *AvFrame) override
static int InitialiseDecoder(AVCodecContext *Context)
static AVPixelFormat GetFormat(AVCodecContext *, const AVPixelFormat *PixFmt)
int HwDecoderInit(AVCodecContext *Context) override
MythMediaCodecContext(DecoderBase *Parent, MythCodecID CodecID)
void InitVideoCodec(AVCodecContext *Context, bool SelectedStream, bool &DirectRendering) override
QList< QPair< MythCodecContext::CodecProfile, QSize > > MCProfiles