ffmpegdecoder: use avfilter system instead of raw swscale commands

Heh this was inevitable
This commit is contained in:
itsmattkc
2021-05-03 12:10:51 +10:00
parent 0b259d3a63
commit ee6b09f772
7 changed files with 216 additions and 154 deletions
+3 -3
View File
@@ -106,7 +106,7 @@ bool OIIODecoder::OpenInternal()
return OpenImageHandler(stream().filename());
}
FramePtr OIIODecoder::RetrieveVideoInternal(const rational &timecode, const int& divider)
FramePtr OIIODecoder::RetrieveVideoInternal(const rational &timecode, const RetrieveVideoParams &divider)
{
Q_UNUSED(timecode)
@@ -118,10 +118,10 @@ FramePtr OIIODecoder::RetrieveVideoInternal(const rational &timecode, const int&
channel_count_,
OIIOUtils::GetPixelAspectRatioFromOIIO(buffer_->spec()),
VideoParams::kInterlaceNone, // FIXME: Does OIIO deinterlace for us?
divider));
divider.divider));
frame->allocate();
if (divider == 1) {
if (divider.divider == 1) {
OIIOUtils::BufferToFrame(buffer_, frame.get());