summaryrefslogtreecommitdiff
path: root/libswresample/resample_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-19 03:08:19 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-28 00:36:27 +0200
commit4ccf6e397139ad83bc7413f8cf7ec667be6ace3a (patch)
treea6284fe635b4e5e5349ee0bb3b985c619e22608b /libswresample/resample_template.c
parent7803a040419f7abb82310fb02a109f6a411650d6 (diff)
swr: MMX2 & SSSE3 int16 resample core
about 4 times faster Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/resample_template.c')
-rw-r--r--libswresample/resample_template.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libswresample/resample_template.c b/libswresample/resample_template.c
index 13d7189842..ad840702ce 100644
--- a/libswresample/resample_template.c
+++ b/libswresample/resample_template.c
@@ -56,11 +56,15 @@ int RENAME(swri_resample)(ResampleContext *c, DELEM *dst, const DELEM *src, int
if(sample_index + c->filter_length > src_size){
break;
}else{
+#ifdef COMMON_CORE
+ COMMON_CORE
+#else
FELEM2 val=0;
for(i=0; i<c->filter_length; i++){
val += src[sample_index + i] * (FELEM2)filter[i];
}
OUT(dst[dst_index], val);
+#endif
}
frac += dst_incr_frac;