diff options
author | James Darnley <james.darnley@gmail.com> | 2013-03-10 15:08:50 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-05-14 09:23:55 +0200 |
commit | b0ef0ae77608a5e3d2ba68af503e8b1277a215d3 (patch) | |
tree | e20e68000ab598606e20e3671f2a028118f69857 /libavfilter/yadif.h | |
parent | 252c0bfdc014c1fb6ad4fe06242c7beca58a6b41 (diff) |
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>
Diffstat (limited to 'libavfilter/yadif.h')
-rw-r--r-- | libavfilter/yadif.h | 4 |
1 files changed, 1 insertions, 3 deletions
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; |