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