summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2012-07-03 18:43:44 -0400
committerMichael Giacomelli <giac2000@hotmail.com>2012-07-03 18:43:44 -0400
commit3d0459dfadf0071112cd8406b9c210123b667e03 (patch)
treecece695ef28f8f18b1c67dcd08ac161839ea0333 /lib/rbcodec/codecs
parent8aa38323823885eb954597edda9ae77a3c383086 (diff)
Expand the range of the WPA Pro quant table. Fixes FS#12704.
Change-Id: I5495c4d7d165cac15016d3233b85bbe5497ea3e1
Diffstat (limited to 'lib/rbcodec/codecs')
-rwxr-xr-xlib/rbcodec/codecs/libwmapro/quant.h10
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 @@
* floating point value is :
* quant = pow(10.0, exp/20)
* 'exp' is an integer value which I have exmerimentally found to fall in the
- * range (0,170). */
-const int32_t quant_tab[171] = {
+ * range (0,180). */
+const int32_t quant_tab[181] = {
0x00000001, 0x00000001,
0x00000001, 0x00000001, 0x00000002, 0x00000002,
0x00000002, 0x00000002, 0x00000003, 0x00000003,
@@ -53,11 +53,13 @@ const int32_t quant_tab[171] = {
0x04BC0C77, 0x054FF0E6, 0x05F5E100, 0x06B01075,
0x0780F7BD, 0x086B5C7A, 0x09725AE7, 0x0A997065,
0x0BE48757, 0x0D580472, 0x0EF8D5A3, 0x10CC82D5,
- 0x12D940B6
+ 0x12D940B6, 0x152605CD, 0x17BAA222, 0x1A9FD9C8,
+ 0x1DDF82A1, 0x2184A5CD, 0x259BA520, 0x2A326538,
+ 0x2F587CAA, 0x351F68FA, 0x3B9ACA00,
};
#define EXP_MIN 0
-#define EXP_MAX 170
+#define EXP_MAX 180
/* return the correct value of quant based on exp */
#define QUANT(exp) quant_tab[exp - EXP_MIN]