Moving back to SWS_BICUBIC for high quality mode (during export mostly). This provides a sharper image when enlarging images than SWS_LANCZOS, and only has a slight performance disadvantage.

This commit is contained in:
Jonathan Thomas
2019-11-17 16:34:50 -06:00
parent 272f004c0e
commit d6a4cb1dec
2 changed files with 2 additions and 2 deletions

View File

@@ -2111,7 +2111,7 @@ void FFmpegWriter::OutputStreamInfo() {
void FFmpegWriter::InitScalers(int source_width, int source_height) {
int scale_mode = SWS_FAST_BILINEAR;
if (openshot::Settings::Instance()->HIGH_QUALITY_SCALING) {
scale_mode = SWS_LANCZOS;
scale_mode = SWS_BICUBIC;
}
// Init software rescalers vector (many of them, one for each thread)