aboutsummaryrefslogtreecommitdiffstats
path: root/libswresample/resample_template.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2014-04-25 04:52:31 -0300
committerMichael Niedermayer <michaelni@gmx.at>2014-04-25 16:46:07 +0200
commitcdac3ab59f3c187ee12006972dba0757a1e7cc08 (patch)
tree7f0bc69d052fea30b6e0158f03b50a2ad638e485 /libswresample/resample_template.c
parent92cc6d5163cd43a1a909dcc63787292f33e5d6ed (diff)
downloadffmpeg-cdac3ab59f3c187ee12006972dba0757a1e7cc08.tar.gz
swresample: add swri_resample_double_sse2
Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/resample_template.c')
-rw-r--r--libswresample/resample_template.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/libswresample/resample_template.c b/libswresample/resample_template.c
index f42846ac5b..7624d9291b 100644
--- a/libswresample/resample_template.c
+++ b/libswresample/resample_template.c
@@ -25,8 +25,9 @@
* @author Michael Niedermayer <michaelni@gmx.at>
*/
-#if defined(TEMPLATE_RESAMPLE_DBL)
-# define RENAME(N) N ## _double
+#if defined(TEMPLATE_RESAMPLE_DBL) \
+ || defined(TEMPLATE_RESAMPLE_DBL_SSE2)
+
# define FILTER_SHIFT 0
# define DELEM double
# define FELEM double
@@ -34,6 +35,14 @@
# define FELEML double
# define OUT(d, v) d = v
+# if defined(TEMPLATE_RESAMPLE_DBL)
+# define RENAME(N) N ## _double
+# elif defined(TEMPLATE_RESAMPLE_DBL_SSE2)
+# define COMMON_CORE COMMON_CORE_DBL_SSE2
+# define LINEAR_CORE LINEAR_CORE_DBL_SSE2
+# define RENAME(N) N ## _double_sse2
+# endif
+
#elif defined(TEMPLATE_RESAMPLE_FLT) \
|| defined(TEMPLATE_RESAMPLE_FLT_SSE)