ffmpegdecoder: downsample frame where possible before gpu transfer

This commit is contained in:
itsmattkc
2022-09-08 20:35:08 -07:00
parent 93c76f55a1
commit 16b9cdda8d
2 changed files with 133 additions and 108 deletions
+4
View File
@@ -142,6 +142,8 @@ private:
static const char* GetInterlacingModeInFFmpeg(VideoParams::Interlacing interlacing);
static bool IsPixelFormatGLSLCompatible(AVPixelFormat f);
AVFramePtr GetFrameFromCache(const int64_t &t) const;
void ClearFrameCache();
@@ -150,6 +152,8 @@ private:
void RemoveFirstFrame();
bool ApplyScaler(AVFrame *in);
static int MaximumQueueSize();
RetrieveVideoParams filter_params_;