summaryrefslogtreecommitdiff
path: root/libavcodec/dsd_tablegen.h
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2016-05-05 21:21:27 +0200
committerPaul B Mahol <onemda@gmail.com>2016-05-15 01:01:45 +0200
commit86e493a6ffac3b3705ea4b276060c380ee2f5e75 (patch)
tree3767d6ed52c724f21bea40180bdd34e5cb3f0bec /libavcodec/dsd_tablegen.h
parent365b0c13e461a5d92e9e689e8f09301fb3255b93 (diff)
avcodec: add Direct Stream Transfer (DST) decoder
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/dsd_tablegen.h')
-rw-r--r--libavcodec/dsd_tablegen.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/libavcodec/dsd_tablegen.h b/libavcodec/dsd_tablegen.h
index 990d57a5cb..e5da86a1dc 100644
--- a/libavcodec/dsd_tablegen.h
+++ b/libavcodec/dsd_tablegen.h
@@ -25,6 +25,7 @@
#include <stdint.h>
#include "libavutil/attributes.h"
+#include "dsd.h"
#define HTAPS 48 /** number of FIR constants */
#define CTABLES ((HTAPS + 7) / 8) /** number of "8 MACs" lookup tables */
@@ -71,21 +72,4 @@ static const double htaps[HTAPS] = {
};
static float ctables[CTABLES][256];
-
-static av_cold void dsd_ctables_tableinit(void)
-{
- int t, e, m, sign;
- double acc[CTABLES];
- for (e = 0; e < 256; ++e) {
- memset(acc, 0, sizeof(acc));
- for (m = 0; m < 8; ++m) {
- sign = (((e >> (7 - m)) & 1) * 2 - 1);
- for (t = 0; t < CTABLES; ++t)
- acc[t] += sign * htaps[t * 8 + m];
- }
- for (t = 0; t < CTABLES; ++t)
- ctables[CTABLES - 1 - t][e] = acc[t];
- }
-}
-
#endif /* AVCODEC_DSD_TABLEGEN_H */