diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2012-07-03 18:43:44 -0400 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2012-07-03 18:43:44 -0400 |
commit | 3d0459dfadf0071112cd8406b9c210123b667e03 (patch) | |
tree | cece695ef28f8f18b1c67dcd08ac161839ea0333 /lib/rbcodec/codecs/libwmapro | |
parent | 8aa38323823885eb954597edda9ae77a3c383086 (diff) | |
download | rockbox-3d0459dfadf0071112cd8406b9c210123b667e03.tar.gz rockbox-3d0459dfadf0071112cd8406b9c210123b667e03.zip |
Expand the range of the WPA Pro quant table. Fixes FS#12704.
Change-Id: I5495c4d7d165cac15016d3233b85bbe5497ea3e1
Diffstat (limited to 'lib/rbcodec/codecs/libwmapro')
-rwxr-xr-x | lib/rbcodec/codecs/libwmapro/quant.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/rbcodec/codecs/libwmapro/quant.h b/lib/rbcodec/codecs/libwmapro/quant.h index 8ec74597f4..7fcbefef66 100755 --- a/lib/rbcodec/codecs/libwmapro/quant.h +++ b/lib/rbcodec/codecs/libwmapro/quant.h | |||
@@ -8,8 +8,8 @@ | |||
8 | * floating point value is : | 8 | * floating point value is : |
9 | * quant = pow(10.0, exp/20) | 9 | * quant = pow(10.0, exp/20) |
10 | * 'exp' is an integer value which I have exmerimentally found to fall in the | 10 | * 'exp' is an integer value which I have exmerimentally found to fall in the |
11 | * range (0,170). */ | 11 | * range (0,180). */ |
12 | const int32_t quant_tab[171] = { | 12 | const int32_t quant_tab[181] = { |
13 | 0x00000001, 0x00000001, | 13 | 0x00000001, 0x00000001, |
14 | 0x00000001, 0x00000001, 0x00000002, 0x00000002, | 14 | 0x00000001, 0x00000001, 0x00000002, 0x00000002, |
15 | 0x00000002, 0x00000002, 0x00000003, 0x00000003, | 15 | 0x00000002, 0x00000002, 0x00000003, 0x00000003, |
@@ -53,11 +53,13 @@ const int32_t quant_tab[171] = { | |||
53 | 0x04BC0C77, 0x054FF0E6, 0x05F5E100, 0x06B01075, | 53 | 0x04BC0C77, 0x054FF0E6, 0x05F5E100, 0x06B01075, |
54 | 0x0780F7BD, 0x086B5C7A, 0x09725AE7, 0x0A997065, | 54 | 0x0780F7BD, 0x086B5C7A, 0x09725AE7, 0x0A997065, |
55 | 0x0BE48757, 0x0D580472, 0x0EF8D5A3, 0x10CC82D5, | 55 | 0x0BE48757, 0x0D580472, 0x0EF8D5A3, 0x10CC82D5, |
56 | 0x12D940B6 | 56 | 0x12D940B6, 0x152605CD, 0x17BAA222, 0x1A9FD9C8, |
57 | 0x1DDF82A1, 0x2184A5CD, 0x259BA520, 0x2A326538, | ||
58 | 0x2F587CAA, 0x351F68FA, 0x3B9ACA00, | ||
57 | }; | 59 | }; |
58 | 60 | ||
59 | #define EXP_MIN 0 | 61 | #define EXP_MIN 0 |
60 | #define EXP_MAX 170 | 62 | #define EXP_MAX 180 |
61 | 63 | ||
62 | /* return the correct value of quant based on exp */ | 64 | /* return the correct value of quant based on exp */ |
63 | #define QUANT(exp) quant_tab[exp - EXP_MIN] | 65 | #define QUANT(exp) quant_tab[exp - EXP_MIN] |