From b0ef0ae77608a5e3d2ba68af503e8b1277a215d3 Mon Sep 17 00:00:00 2001 From: James Darnley Date: Sun, 10 Mar 2013 15:08:50 +0100 Subject: 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 --- libavfilter/yadif.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libavfilter/yadif.h') diff --git a/libavfilter/yadif.h b/libavfilter/yadif.h index 665922d925..6936723c47 100644 --- a/libavfilter/yadif.h +++ b/libavfilter/yadif.h @@ -55,13 +55,11 @@ typedef struct YADIFContext { /** * Required alignment for filter_line */ - int req_align; void (*filter_line)(void *dst, void *prev, void *cur, void *next, int w, int prefs, int mrefs, int parity, int mode); void (*filter_edges)(void *dst, void *prev, void *cur, void *next, - int w, int prefs, int mrefs, int parity, int mode, - int l_edge); + int w, int prefs, int mrefs, int parity, int mode); const AVPixFmtDescriptor *csp; int eof; -- cgit v1.2.3