diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2006-03-27 12:51:19 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2006-03-27 12:51:19 +0000 |
commit | 22b48b85b647390dd370cd0a1f41f371f4c010f1 (patch) | |
tree | bc3141dfb6ccebc816e9ee72cfaa492fe7d0af0c /libavcodec/i386/snowdsp_mmx.c | |
parent | e62c29bf57d515537c3df8f2be0da71e12868af4 (diff) |
altivec support for snow
Originally committed as revision 5228 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/snowdsp_mmx.c')
-rw-r--r-- | libavcodec/i386/snowdsp_mmx.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libavcodec/i386/snowdsp_mmx.c b/libavcodec/i386/snowdsp_mmx.c index b37fd9196f..a0a27a60f7 100644 --- a/libavcodec/i386/snowdsp_mmx.c +++ b/libavcodec/i386/snowdsp_mmx.c @@ -21,35 +21,6 @@ #include "../snow.h" #include "mmx.h" -static void always_inline snow_interleave_line_header(int * i, int width, DWTELEM * low, DWTELEM * high){ - (*i) = (width) - 2; - - if (width & 1){ - low[(*i)+1] = low[((*i)+1)>>1]; - (*i)--; - } -} - -static void always_inline snow_horizontal_compose_lift_lead_out(int i, DWTELEM * dst, DWTELEM * src, DWTELEM * ref, int width, int w, int lift_high, int mul, int add, int shift){ - for(; i<w; i++){ - dst[i] = src[i] - ((mul * (ref[i] + ref[i + 1]) + add) >> shift); - } - - if((width^lift_high)&1){ - dst[w] = src[w] - ((mul * 2 * ref[w] + add) >> shift); - } -} - -static void always_inline snow_horizontal_compose_liftS_lead_out(int i, DWTELEM * dst, DWTELEM * src, DWTELEM * ref, int width, int w){ - for(; i<w; i++){ - dst[i] = src[i] - (((-(ref[i] + ref[(i+1)])+W_BO) - 4 * src[i]) >> W_BS); - } - - if(width&1){ - dst[w] = src[w] - (((-2 * ref[w] + W_BO) - 4 * src[w]) >> W_BS); - } -} - void ff_snow_horizontal_compose97i_sse2(DWTELEM *b, int width){ const int w2= (width+1)>>1; // SSE2 code runs faster with pointers aligned on a 32-byte boundary. |