diff options
author | Michael Niedermayer | 2007-09-05 01:49:14 +0000 |
---|---|---|
committer | Michael Niedermayer | 2007-09-05 01:49:14 +0000 |
commit | 2b48d8ba4affe1541b2d85fc0177abea5dbcaac1 (patch) | |
tree | 6ef9641c88e877ef613ec611b2fb5a38c6159c69 /libavcodec | |
parent | c08bbe6c577bc09788df9bfcbeed7320399f82d6 (diff) |
add a 8 taps filter for testing
Originally committed as revision 10394 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/snow.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c index cbedbaeb94..275c5bfab3 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -2159,7 +2159,11 @@ START_TIMER int a6= src[x + HTAPS/2+3]; int a7= src[x + HTAPS/2+4]; // int am= 9*(a1+a2) - (a0+a3); +#if HTAPS==6 int am= 20*(a2+a3) - 5*(a1+a4) + (a0+a5); +#else + int am= 21*(a2+a3) - 7*(a1+a4) + 3*(a0+a5) - (a_1+a6); +#endif // int am= 18*(a2+a3) - 2*(a1+a4); // int aL= (-7*a0 + 105*a1 + 35*a2 - 5*a3)>>3; // int aR= (-7*a3 + 105*a2 + 35*a1 - 5*a0)>>3; @@ -2196,7 +2200,11 @@ START_TIMER int a5= tmp[x + (HTAPS/2+2)*stride]; int a6= tmp[x + (HTAPS/2+3)*stride]; int a7= tmp[x + (HTAPS/2+4)*stride]; +#if HTAPS==6 int am= 20*(a2+a3) - 5*(a1+a4) + (a0+a5); +#else + int am= 21*(a2+a3) - 7*(a1+a4) + 3*(a0+a5) - (a_1+a6); +#endif // int am= 18*(a2+a3) - 2*(a1+a4); /* int aL= (-7*a0 + 105*a1 + 35*a2 - 5*a3)>>3; int aR= (-7*a3 + 105*a2 + 35*a1 - 5*a0)>>3;*/ |