Commit dfde3d49 authored by Michael Niedermayer's avatar Michael Niedermayer

swr: add inrermediate sample type for rematrixing

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 718607be
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#define R(x) x #define R(x) x
#define SAMPLE float #define SAMPLE float
#define COEFF float #define COEFF float
#define INTER float
#define RENAME(x) x ## _float #define RENAME(x) x ## _float
#include "rematrix_template.c" #include "rematrix_template.c"
#undef SAMPLE #undef SAMPLE
...@@ -33,11 +34,13 @@ ...@@ -33,11 +34,13 @@
#undef R #undef R
#undef ONE #undef ONE
#undef COEFF #undef COEFF
#undef INTER
#define ONE (1.0) #define ONE (1.0)
#define R(x) x #define R(x) x
#define SAMPLE double #define SAMPLE double
#define COEFF double #define COEFF double
#define INTER double
#define RENAME(x) x ## _double #define RENAME(x) x ## _double
#include "rematrix_template.c" #include "rematrix_template.c"
#undef SAMPLE #undef SAMPLE
...@@ -45,11 +48,13 @@ ...@@ -45,11 +48,13 @@
#undef R #undef R
#undef ONE #undef ONE
#undef COEFF #undef COEFF
#undef INTER
#define ONE (-32768) #define ONE (-32768)
#define R(x) (((x) + 16384)>>15) #define R(x) (((x) + 16384)>>15)
#define SAMPLE int16_t #define SAMPLE int16_t
#define COEFF int #define COEFF int
#define INTER int
#define RENAME(x) x ## _s16 #define RENAME(x) x ## _s16
#include "rematrix_template.c" #include "rematrix_template.c"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment