[vlc-commits] [Git][videolan/vlc][master] deinterlace: yadif: pass the width in pixels to the 16-bit filter

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Oct 27 14:20:19 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
80ab6514 by Martin Finkel at 2026-10-27T13:43:23+00:00
deinterlace: yadif: pass the width in pixels to the 16-bit filter

yadif_filter_line_c_16bit counts the width in pixels, but was given the
visible pitch in bytes, so it filtered each line twice as wide as the
picture. The extra output landed in the next line and was overwritten.

This halves the cost of yadif for high bit depth chromas, with the same
output. 8-bit is unchanged.

- - - - -


1 changed file:

- modules/video_filter/deinterlace/algo_yadif.c


Changes:

=====================================
modules/video_filter/deinterlace/algo_yadif.c
=====================================
@@ -150,7 +150,7 @@ int RenderYadif( filter_t *p_filter, picture_t *p_dst, picture_t *p_src,
                             &prevp->p_pixels[y * prevp->i_pitch],
                             &curp->p_pixels[y * curp->i_pitch],
                             &nextp->p_pixels[y * nextp->i_pitch],
-                            dstp->i_visible_pitch,
+                            dstp->i_visible_pitch / dstp->i_pixel_pitch,
                             y < dstp->i_visible_lines - 2  ? curp->i_pitch : -curp->i_pitch,
                             y  - 1  ?  -curp->i_pitch : curp->i_pitch,
                             yadif_parity,



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/80ab6514794bdba6441c1a9ef0980ea38d86b619

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/80ab6514794bdba6441c1a9ef0980ea38d86b619
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list