ffmpegencoder: use avfilter instead of swscale for pixel format conversions

This commit is contained in:
itsmattkc
2022-08-07 14:00:12 -07:00
parent 91eaa759b7
commit 73fa930f02
4 changed files with 90 additions and 86 deletions
+1 -6
View File
@@ -36,15 +36,10 @@ extern "C" {
#include <QWaitCondition>
#include "codec/decoder.h"
#include "common/ffmpegutils.h"
namespace olive {
using AVFramePtr = std::shared_ptr<AVFrame>;
inline AVFramePtr CreateAVFramePtr(AVFrame *f)
{
return std::shared_ptr<AVFrame>(f, [](AVFrame *g){ av_frame_free(&g); });
}
/**
* @brief A Decoder derivative that wraps FFmpeg functions as on Olive decoder
*/