From d8e37945a341b4e41c6f1fc89b03d588f90c7204 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 19 Feb 2021 13:44:37 -0500 Subject: [PATCH] TRY OUT SWS_POINT|SWS_BITEXACT scaling --- src/zm_image.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/zm_image.cpp b/src/zm_image.cpp index 13e0b3946..10ede025d 100644 --- a/src/zm_image.cpp +++ b/src/zm_image.cpp @@ -282,7 +282,9 @@ void Image::Assign(const AVFrame *frame) { sws_convert_context, frame->width, frame->height, (AVPixelFormat)frame->format, width, height, format, - SWS_BICUBIC, nullptr, nullptr, nullptr); + //SWS_BICUBIC, + SWS_POINT | SWS_BITEXACT, + nullptr, nullptr, nullptr); if ( sws_convert_context == nullptr ) Fatal("Unable to create conversion context");