From 3627fbc90469461009ae82afa747ea30303fbc43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Garramu=C3=B1o?= Date: Sun, 17 Mar 2024 04:01:52 -0300 Subject: [PATCH] Revert "Reverted to use SWS_SCALE_BILINEAR flag as it was causing slow downs at 4K." This reverts commit 96e6dc50bb369c7277415ca729da8109ad899204. --- lib/tlIO/FFmpeg.h | 2 +- lib/tlIO/NDI.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tlIO/FFmpeg.h b/lib/tlIO/FFmpeg.h index 7039aaa6..15103805 100644 --- a/lib/tlIO/FFmpeg.h +++ b/lib/tlIO/FFmpeg.h @@ -66,7 +66,7 @@ namespace tl const size_t threadCount = 0; //! Software scaler flags. - const int swsScaleFlags = SWS_FAST_BILINEAR | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP; + const int swsScaleFlags = SWS_SPLINE | SWS_ACCURATE_RND | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP; //! Swap the numerator and denominator. AVRational swap(AVRational); diff --git a/lib/tlIO/NDI.h b/lib/tlIO/NDI.h index 5294cd9d..0eb76b64 100644 --- a/lib/tlIO/NDI.h +++ b/lib/tlIO/NDI.h @@ -46,7 +46,7 @@ namespace tl namespace ndi { //! Software scaler flags. - const int swsScaleFlags = SWS_FAST_BILINEAR | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP; + const int swsScaleFlags = SWS_SPLINE | SWS_ACCURATE_RND | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP; //! Convert to FFmpeg. AVSampleFormat fromAudioType(audio::DataType);