diff options
Diffstat (limited to 'apps/codecs/libwma')
-rw-r--r-- | apps/codecs/libwma/wmadeci.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/apps/codecs/libwma/wmadeci.c b/apps/codecs/libwma/wmadeci.c index 87af30b518..ae1a93ecf2 100644 --- a/apps/codecs/libwma/wmadeci.c +++ b/apps/codecs/libwma/wmadeci.c | |||
@@ -29,35 +29,6 @@ | |||
29 | #include "wmafixed.h" | 29 | #include "wmafixed.h" |
30 | #include "wmadata.h" | 30 | #include "wmadata.h" |
31 | 31 | ||
32 | static const uint8_t ff_log2_tab[256]={ | ||
33 | 0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, | ||
34 | 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5, | ||
35 | 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6, | ||
36 | 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6, | ||
37 | 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, | ||
38 | 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, | ||
39 | 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, | ||
40 | 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7 | ||
41 | }; | ||
42 | |||
43 | static inline int av_log2(unsigned int v) | ||
44 | { | ||
45 | int n; | ||
46 | |||
47 | n = 0; | ||
48 | if (v & 0xffff0000) { | ||
49 | v >>= 16; | ||
50 | n += 16; | ||
51 | } | ||
52 | if (v & 0xff00) { | ||
53 | v >>= 8; | ||
54 | n += 8; | ||
55 | } | ||
56 | n += ff_log2_tab[v]; | ||
57 | |||
58 | return n; | ||
59 | } | ||
60 | |||
61 | static void wma_lsp_to_curve_init(WMADecodeContext *s, int frame_len); | 32 | static void wma_lsp_to_curve_init(WMADecodeContext *s, int frame_len); |
62 | inline void vector_fmul_add_add(fixed32 *dst, const fixed32 *data, | 33 | inline void vector_fmul_add_add(fixed32 *dst, const fixed32 *data, |
63 | const fixed32 *window, int n); | 34 | const fixed32 *window, int n); |