Fix T57397: Movies are blurred after sws_scale

Images with 4:2:2 and 4:4:4 chroma subsampling were blurred when
`SWS_FAST_BILINEAR` interpolation is set for `anim->img_convert_ctx`.

Use `SWS_BILINEAR` interpolation for all movies, as performance is
not impacted by this change.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D11457
This commit is contained in:
Richard Antalik 2021-06-02 21:29:38 +02:00 committed by Jeroen Bakker
parent 00ffe02820
commit 13ab6b7bb6
Notes: blender-bot 2023-02-14 05:08:22 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
Referenced by issue #57397, in video editor, clips get blurred
1 changed files with 1 additions and 1 deletions

View File

@ -719,7 +719,7 @@ static int startffmpeg(struct anim *anim)
anim->x,
anim->y,
AV_PIX_FMT_RGBA,
SWS_FAST_BILINEAR | SWS_PRINT_INFO | SWS_FULL_CHR_H_INT,
SWS_BILINEAR | SWS_PRINT_INFO | SWS_FULL_CHR_H_INT,
NULL,
NULL,
NULL);