@@ -2111,19 +2111,19 @@ void FFmpegWriter::OutputStreamInfo() {
21112111void FFmpegWriter::InitScalers (int source_width, int source_height) {
21122112 int scale_mode = SWS_FAST_BILINEAR;
21132113 if (openshot::Settings::Instance ()->HIGH_QUALITY_SCALING ) {
2114- scale_mode = SWS_LANCZOS ;
2114+ scale_mode = SWS_BICUBIC ;
21152115 }
21162116
21172117 // Init software rescalers vector (many of them, one for each thread)
21182118 for (int x = 0 ; x < num_of_rescalers; x++) {
21192119 // Init the software scaler from FFMpeg
21202120#if IS_FFMPEG_3_2
21212121 if (hw_en_on && hw_en_supported) {
2122- img_convert_ctx = sws_getContext (source_width, source_height, PIX_FMT_RGBA, info.width , info.height , AV_PIX_FMT_NV12, SWS_BILINEAR , NULL , NULL , NULL );
2122+ img_convert_ctx = sws_getContext (source_width, source_height, PIX_FMT_RGBA, info.width , info.height , AV_PIX_FMT_NV12, scale_mode , NULL , NULL , NULL );
21232123 } else
21242124#endif
21252125 {
2126- img_convert_ctx = sws_getContext (source_width, source_height, PIX_FMT_RGBA, info.width , info.height , AV_GET_CODEC_PIXEL_FORMAT (video_st, video_st->codec ), SWS_BILINEAR ,
2126+ img_convert_ctx = sws_getContext (source_width, source_height, PIX_FMT_RGBA, info.width , info.height , AV_GET_CODEC_PIXEL_FORMAT (video_st, video_st->codec ), scale_mode ,
21272127 NULL , NULL , NULL );
21282128 }
21292129
0 commit comments