[vlc-commits] [Git][videolan/vlc][master] video_filter: motionblur: round when averaging
Tristan Matthews (@tmatth)
gitlab at videolan.org
Sun May 10 22:11:20 UTC 2026
Tristan Matthews pushed to branch master at VideoLAN / VLC
Commits:
6bfcad42 by Tristan Matthews at 2026-05-10T21:56:43+00:00
video_filter: motionblur: round when averaging
This avoids the greenish saturation on high values. Fixes #22093.
- - - - -
1 changed file:
- modules/video_filter/motionblur.c
Changes:
=====================================
modules/video_filter/motionblur.c
=====================================
@@ -181,8 +181,8 @@ static void RenderBlur( filter_sys_t *p_sys, picture_t *p_newpic,
while ( p_out < p_out_line_end )
{
- *p_out++ = (((*p_old++) * i_oldfactor) +
- ((*p_new++) * i_newfactor)) >> 7;
+ *p_out++ = ((((*p_old++) * i_oldfactor) + (1 << 7 >> 1) +
+ ((*p_new++) * i_newfactor))) >> 7;
}
p_old += p_sys->p_tmp->p[i_plane].i_pitch - i_visible_pitch;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6bfcad4267f57f1e487503f4da16b033be01e3ca
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6bfcad4267f57f1e487503f4da16b033be01e3ca
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list