Fix DrmRenderer not falling back to swframes if DRM PRIME is available
This commit is contained in:
parent
a2f23b7053
commit
9d73aa6b4a
2 changed files with 37 additions and 14 deletions
|
|
@ -30,7 +30,11 @@ public:
|
|||
virtual IFFmpegRenderer* getBackendRenderer();
|
||||
|
||||
private:
|
||||
bool completeInitialization(const AVCodec* decoder, PDECODER_PARAMETERS params, bool testFrame, bool useAlternateFrontend);
|
||||
bool completeInitialization(const AVCodec* decoder,
|
||||
enum AVPixelFormat requiredFormat,
|
||||
PDECODER_PARAMETERS params,
|
||||
bool testFrame,
|
||||
bool useAlternateFrontend);
|
||||
|
||||
void stringifyVideoStats(VIDEO_STATS& stats, char* output, int length);
|
||||
|
||||
|
|
@ -45,6 +49,7 @@ private:
|
|||
bool tryHwAccel);
|
||||
|
||||
bool tryInitializeRenderer(const AVCodec* decoder,
|
||||
enum AVPixelFormat requiredFormat,
|
||||
PDECODER_PARAMETERS params,
|
||||
const AVCodecHWConfig* hwConfig,
|
||||
std::function<IFFmpegRenderer*()> createRendererFunc);
|
||||
|
|
@ -65,6 +70,7 @@ private:
|
|||
|
||||
AVPacket* m_Pkt;
|
||||
AVCodecContext* m_VideoDecoderCtx;
|
||||
enum AVPixelFormat m_RequiredPixelFormat;
|
||||
QByteArray m_DecodeBuffer;
|
||||
const AVCodecHWConfig* m_HwDecodeCfg;
|
||||
IFFmpegRenderer* m_BackendRenderer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue