[Bf-blender-cvs] [1f557867916] master: Fix T57397: Movies are blurred after sws_scale
Richard Antalik
noreply at git.blender.org
Wed Jun 2 21:43:14 CEST 2021
Commit: 1f557867916bd6ab43ced4b4fd651a7d1d11f8ac
Author: Richard Antalik
Date: Wed Jun 2 21:29:38 2021 +0200
Branches: master
https://developer.blender.org/rB1f557867916bd6ab43ced4b4fd651a7d1d11f8ac
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
===================================================================
M source/blender/imbuf/intern/anim_movie.c
===================================================================
diff --git a/source/blender/imbuf/intern/anim_movie.c b/source/blender/imbuf/intern/anim_movie.c
index 5918a4bf16e..5058bd2f637 100644
--- a/source/blender/imbuf/intern/anim_movie.c
+++ b/source/blender/imbuf/intern/anim_movie.c
@@ -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);
More information about the Bf-blender-cvs
mailing list