]> git.sesse.net Git - ffmpeg/commit
yadif: restore speed of the C filtering code
authorJames Darnley <james.darnley@gmail.com>
Sun, 10 Mar 2013 14:08:50 +0000 (15:08 +0100)
committerAnton Khirnov <anton@khirnov.net>
Tue, 14 May 2013 07:23:55 +0000 (09:23 +0200)
commitb0ef0ae77608a5e3d2ba68af503e8b1277a215d3
treee20e68000ab598606e20e3671f2a028118f69857
parent252c0bfdc014c1fb6ad4fe06242c7beca58a6b41
yadif: restore speed of the C filtering code

Always use the special filter for the first and last 3 columns (only).

Changes made in 64ed397 slowed the filter to just under 3/4 of what it
was.  This commit restores the speed while maintaining identical output.

For reference, on my Athlon64:
1733222 decicycles in old
2358563 decicycles in new
1727558 decicycles in this

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavfilter/vf_yadif.c
libavfilter/x86/vf_yadif_init.c
libavfilter/yadif.h