Use the decoder's supported pix_fmts to select a suitable renderer

This commit is contained in:
Cameron Gutman
2021-02-02 19:05:27 -06:00
parent c3cea0238e
commit 88391b0274
2 changed files with 82 additions and 75 deletions
+3
View File
@@ -36,6 +36,9 @@ private:
bool createFrontendRenderer(PDECODER_PARAMETERS params);
bool tryInitializeRendererForDecoderByName(const char* decoderName,
PDECODER_PARAMETERS params);
bool tryInitializeRenderer(AVCodec* decoder,
PDECODER_PARAMETERS params,
const AVCodecHWConfig* hwConfig,