aboutsummaryrefslogtreecommitdiffstats
path: root/libswresample/rematrix_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-04 14:54:58 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-04 15:12:11 +0200
commitb84de51f548aabf478f84dfa38e4d5ca0b0ffe1f (patch)
treee4657b10e74b6e338a90bc3e3ce4ee3bbe64b1f5 /libswresample/rematrix_template.c
parentf3c638eac1e37127ab3ad1a5fa49bf39fb357dfa (diff)
downloadffmpeg-b84de51f548aabf478f84dfa38e4d5ca0b0ffe1f.tar.gz
swresample/rematrix: add S32 mixing code
Needed for dithering S32 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/rematrix_template.c')
-rw-r--r--libswresample/rematrix_template.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libswresample/rematrix_template.c b/libswresample/rematrix_template.c
index ecdeab3460..214d905076 100644
--- a/libswresample/rematrix_template.c
+++ b/libswresample/rematrix_template.c
@@ -36,6 +36,12 @@
# define COEFF int
# define INTER int
# define RENAME(x) x ## _s16
+#elif defined(TEMPLATE_REMATRIX_S32)
+# define R(x) (((x) + 16384)>>15)
+# define SAMPLE int32_t
+# define COEFF int
+# define INTER int64_t
+# define RENAME(x) x ## _s32
#endif
typedef void (RENAME(mix_any_func_type))(SAMPLE **out, const SAMPLE **in1, COEFF *coeffp, integer len);