diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2008-05-10 20:33:28 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2008-05-10 20:33:28 +0000 |
| commit | 14d45c9d17385bbedb4a7f62baeedfc7b98221d4 (patch) | |
| tree | fe1de44f84b4868cbc89c97ceadb3ed3031e8fcd /apps/codecs/libmusepack/requant.c | |
| parent | 66010b9f306cc4cdb98ec10ba3e5f45476e76690 (diff) | |
| download | rockbox-14d45c9d17385bbedb4a7f62baeedfc7b98221d4.zip rockbox-14d45c9d17385bbedb4a7f62baeedfc7b98221d4.tar.gz rockbox-14d45c9d17385bbedb4a7f62baeedfc7b98221d4.tar.bz2 rockbox-14d45c9d17385bbedb4a7f62baeedfc7b98221d4.tar.xz | |
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
Diffstat (limited to 'apps/codecs/libmusepack/requant.c')
| -rw-r--r-- | apps/codecs/libmusepack/requant.c | 27 |
1 files changed, 27 insertions, 0 deletions
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) { |