diff options
author | Dave Hooper <dave@beermex.com> | 2010-02-20 12:55:35 +0000 |
---|---|---|
committer | Dave Hooper <dave@beermex.com> | 2010-02-20 12:55:35 +0000 |
commit | e4217d48452cc0dc364de1eb6338476b00be4295 (patch) | |
tree | cafda5693cdeff4d2a57d914eab2906ceea0f891 /apps/codecs/libatrac/atrac3data_fixed.h | |
parent | e90deded40aeada973f0e74a0346639e9f3878ba (diff) | |
download | rockbox-e4217d48452cc0dc364de1eb6338476b00be4295.tar.gz rockbox-e4217d48452cc0dc364de1eb6338476b00be4295.zip |
Reinstate ICONST_ATTR for matrixCoeffs_fix ; remove (silly) gain_tab1 and replace with a simple bitshift in the code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24788 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libatrac/atrac3data_fixed.h')
-rw-r--r-- | apps/codecs/libatrac/atrac3data_fixed.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/codecs/libatrac/atrac3data_fixed.h b/apps/codecs/libatrac/atrac3data_fixed.h index 0ea7b86d62..b733ee71c4 100644 --- a/apps/codecs/libatrac/atrac3data_fixed.h +++ b/apps/codecs/libatrac/atrac3data_fixed.h | |||
@@ -78,12 +78,6 @@ static const int32_t window_lookup[128] ICONST_ATTR = { | |||
78 | }; | 78 | }; |
79 | 79 | ||
80 | /* Gain tables scaled by 2^16 */ | 80 | /* Gain tables scaled by 2^16 */ |
81 | static const int32_t gain_tab1[16] ICONST_ATTR = { | ||
82 | 0x00100000, 0x00080000, 0x00040000, 0x00020000, 0x00010000, 0x00008000, | ||
83 | 0x00004000, 0x00002000, 0x00001000, 0x00000800, 0x00000400, 0x00000200, | ||
84 | 0x00000100, 0x00000080, 0x00000040, 0x00000020, | ||
85 | }; | ||
86 | |||
87 | static const int32_t gain_tab2[31] ICONST_ATTR = { | 81 | static const int32_t gain_tab2[31] ICONST_ATTR = { |
88 | 0x0003ab03, 0x00035d14, 0x0003159d, 0x0002d414, 0x000297fb, 0x000260e0, | 82 | 0x0003ab03, 0x00035d14, 0x0003159d, 0x0002d414, 0x000297fb, 0x000260e0, |
89 | 0x00022e57, 0x00020000, 0x0001d582, 0x0001ae8a, 0x00018ace, 0x00016a0a, | 83 | 0x00022e57, 0x00020000, 0x0001d582, 0x0001ae8a, 0x00018ace, 0x00016a0a, |
@@ -95,7 +89,7 @@ static const int32_t gain_tab2[31] ICONST_ATTR = { | |||
95 | }; | 89 | }; |
96 | 90 | ||
97 | /* Joint-Stereo related tables, scaled by 2^16 */ | 91 | /* Joint-Stereo related tables, scaled by 2^16 */ |
98 | static const int32_t matrixCoeffs_fix[8]= { | 92 | static const int32_t matrixCoeffs_fix[8] ICONST_ATTR = { |
99 | 0x00000000, 0x00020000, 0x00020000, 0x00020000, | 93 | 0x00000000, 0x00020000, 0x00020000, 0x00020000, |
100 | 0x00000000, 0x00000000, 0x00010000, 0x00010000, | 94 | 0x00000000, 0x00000000, 0x00010000, 0x00010000, |
101 | }; | 95 | }; |