diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-07-29 22:18:04 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-07-29 22:18:04 +0000 |
| commit | aa2fca384a7e71b7a9afbee0d68cfb2b7a5266f5 (patch) | |
| tree | cff75c9a211b84890e16eee128cda84dba33727a /apps/codecs/libwmapro/wmaprodata.h | |
| parent | e63e19b50773393064e7a458297b18a835e8b004 (diff) | |
| download | rockbox-aa2fca384a7e71b7a9afbee0d68cfb2b7a5266f5.zip rockbox-aa2fca384a7e71b7a9afbee0d68cfb2b7a5266f5.tar.gz rockbox-aa2fca384a7e71b7a9afbee0d68cfb2b7a5266f5.tar.bz2 rockbox-aa2fca384a7e71b7a9afbee0d68cfb2b7a5266f5.tar.xz | |
Maintenance and minor speedup of libwmapro. Comment unused arrays, fix comment, remove tabs and introduce WMAPRO_FRACT to wma.h to remove magic numbers. Swap operands of fixmul16-call for minor speedup on ARM (+1%).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27617 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwmapro/wmaprodata.h')
| -rw-r--r-- | apps/codecs/libwmapro/wmaprodata.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/codecs/libwmapro/wmaprodata.h b/apps/codecs/libwmapro/wmaprodata.h index ba6ca93..94762f7 100644 --- a/apps/codecs/libwmapro/wmaprodata.h +++ b/apps/codecs/libwmapro/wmaprodata.h @@ -31,6 +31,7 @@ #include <stddef.h> #include <stdint.h> +/* rockbox: not used const int32_t fixed_sin64[33] = { 0x00000000, 0xF9B82685, 0xF3742CA3, 0xED37EF92, 0xE70747C5, 0xE0E60686, 0xDAD7F3A3, 0xD4E0CB16, 0xCF043AB4, 0xC945DFED, 0xC3A94591, 0xBE31E19C, @@ -39,7 +40,7 @@ const int32_t fixed_sin64[33] = { 0x89BE50C4, 0x877B7BED, 0x8582FAA6, 0x83D60413, 0x8275A0C1, 0x8162AA05, 0x809DC972, 0x80277873, 0x80000001, }; - +*/ /** * @brief frequencies to divide the frequency spectrum into scale factor bands */ @@ -50,7 +51,6 @@ static const uint16_t critical_freq[] = { 9500, 12000, 15500, 20675, 28575, 41375, 63875, }; - /** * @name Huffman tables for DPCM-coded scale factors * @{ @@ -581,6 +581,7 @@ static const uint8_t symbol_to_vec2[HUFF_VEC2_SIZE] = { /** * @brief decorrelation matrix for multichannel streams **/ +/* rockbox: not used static const float default_decorrelation_matrices[] = { 1.000000, 0.707031, -0.707031, 0.707031, 0.707031, 0.578125, 0.707031, 0.410156, 0.578125, -0.707031, 0.410156, 0.578125, 0.000000, -0.816406, @@ -596,10 +597,11 @@ static const float default_decorrelation_matrices[] = { 0.289062, -0.558594, 0.410156, -0.410156, 0.000000, 0.410156, -0.578125, 0.410156, 0.410156, -0.558594, 0.500000, -0.410156, 0.289062, -0.148438, }; - +*/ /** * @brief default decorrelation matrix offsets */ +/* rockbox: not used static const float * const default_decorrelation[] = { NULL, &default_decorrelation_matrices[0], @@ -609,5 +611,5 @@ static const float * const default_decorrelation[] = { &default_decorrelation_matrices[30], &default_decorrelation_matrices[55] }; - +*/ #endif /* AVCODEC_WMAPRODATA_H */ |