From 14d45c9d17385bbedb4a7f62baeedfc7b98221d4 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sat, 10 May 2008 20:33:28 +0000 Subject: Removed non-active seek mechanism from musepack library, small other cleanups. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17446 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libmusepack/requant.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'apps/codecs/libmusepack/requant.c') diff --git a/apps/codecs/libmusepack/requant.c b/apps/codecs/libmusepack/requant.c index 3282286..d40f36f 100644 --- a/apps/codecs/libmusepack/requant.c +++ b/apps/codecs/libmusepack/requant.c @@ -69,6 +69,33 @@ const mpc_int32_t __Dc [1 + 18] ICONST_ATTR = { 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767 }; +// decoding results (requantized) for bundled quantizers (3- and 5-step) +// 1st value of bundled 3-step quantizer +const mpc_int32_t idx30[27] ICONST_ATTR = { -1, 0, 1,-1, 0, 1,-1, 0, 1, + -1, 0, 1,-1, 0, 1,-1, 0, 1, + -1, 0, 1,-1, 0, 1,-1, 0, 1}; +// 2nd value of bundled 3-step quantizer +const mpc_int32_t idx31[27] ICONST_ATTR = { -1,-1,-1, 0, 0, 0, 1, 1, 1, + -1,-1,-1, 0, 0, 0, 1, 1, 1, + -1,-1,-1, 0, 0, 0, 1, 1, 1}; +// 3rd value of bundled 3-step quantizer +const mpc_int32_t idx32[27] ICONST_ATTR = { -1,-1,-1,-1,-1,-1,-1,-1,-1, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1}; +// 1st value of bundled 5-step quantizer +const mpc_int32_t idx50[25] ICONST_ATTR = { -2,-1, 0, 1, 2, + -2,-1, 0, 1, 2, + -2,-1, 0, 1, 2, + -2,-1, 0, 1, 2, + -2,-1, 0, 1, 2}; +// 2nd value of bundled 5-step quantizer +const mpc_int32_t idx51[25] ICONST_ATTR = { -2,-2,-2,-2,-2, + -1,-1,-1,-1,-1, + 0, 0, 0, 0, 0, + 1, 1, 1, 1, 1, + 2, 2, 2, 2, 2}; + + #ifdef MPC_FIXED_POINT static mpc_uint32_t find_shift(double fval) { -- cgit v1.1