TRY OUT SWS_POINT|SWS_BITEXACT scaling

This commit is contained in:
Isaac Connor
2021-02-19 13:44:37 -05:00
parent 415dd83d06
commit d8e37945a3

View File

@@ -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");