bool DecoderWillResetOnFlush() override
int HwDecoderInit(AVCodecContext *Context) override
void InitVideoCodec(AVCodecContext *Context, bool SelectedStream, bool &DirectRendering) override
static bool HaveV4L2Codecs(bool Reinit=false)
static void GetDecoderList(QStringList &Decoders)
void SetDecoderOptions(AVCodecContext *Context, const AVCodec *Codec) override
Reduce the number of capture buffers.
QList< MythCodecContext::CodecProfile > V4L2Profiles
static const V4L2Profiles & GetStandardProfiles()
~MythV4L2M2MContext() override=default
bool RetrieveFrame(AVCodecContext *Context, MythVideoFrame *Frame, AVFrame *AvFrame) override
static const V4L2Profiles & GetRequestProfiles()
QPair< const uint32_t, const MythCodecContext::CodecProfile > V4L2Mapping
static MythCodecID GetSupportedCodec(AVCodecContext **Context, const AVCodec **Codec, const QString &Decoder, AVStream *Stream, uint StreamType)
static V4L2Profiles GetProfiles(const std::vector< V4L2Mapping > &Profiles)
A generic context handler for codecs that return AV_PIX_FMT_DRM_PRIME frames.
static enum AVPixelFormat GetV4L2RequestFormat(AVCodecContext *Context, const AVPixelFormat *PixFmt)
A handler for V4L2 Memory2Memory codecs.
MythV4L2M2MContext(DecoderBase *Parent, MythCodecID CodecID)
static int InitialiseV4L2RequestContext(AVCodecContext *Context)
static bool GetBuffer(AVCodecContext *Context, MythVideoFrame *Frame, AVFrame *AvFrame, int)
Retrieve a frame from CPU memory.