diff options
author | Dave Chapman <dave@dchapman.com> | 2005-10-31 20:33:27 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-10-31 20:33:27 +0000 |
commit | 798a4f3533cc63be2b313797bd4be5d53bda8fb9 (patch) | |
tree | 0e2b8bdeff50b3d0a1cbe73c591f97ef73179b65 /apps/codecs/libfaad/specrec.c | |
parent | 65de1cc6af31f547bd36d320f09cbcc6e6975421 (diff) | |
download | rockbox-798a4f3533cc63be2b313797bd4be5d53bda8fb9.tar.gz rockbox-798a4f3533cc63be2b313797bd4be5d53bda8fb9.zip |
Changes to make libfaad compile in Rockbox. Also remove compiler warnings, use some IRAM (IRAM usage needs reviewing) and drastically reduce the stack usage
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7700 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libfaad/specrec.c')
-rw-r--r-- | apps/codecs/libfaad/specrec.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/codecs/libfaad/specrec.c b/apps/codecs/libfaad/specrec.c index a452fbd90e..6d74c77562 100644 --- a/apps/codecs/libfaad/specrec.c +++ b/apps/codecs/libfaad/specrec.c | |||
@@ -409,7 +409,7 @@ uint8_t window_grouping_info(NeAACDecHandle hDecoder, ic_stream *ics) | |||
409 | } | 409 | } |
410 | } | 410 | } |
411 | 411 | ||
412 | /* iquant() * | 412 | /* iquant() */ |
413 | /* output = sign(input)*abs(input)^(4/3) */ | 413 | /* output = sign(input)*abs(input)^(4/3) */ |
414 | /**/ | 414 | /**/ |
415 | static INLINE real_t iquant(int16_t q, const real_t *tab, uint8_t *error) | 415 | static INLINE real_t iquant(int16_t q, const real_t *tab, uint8_t *error) |
@@ -543,6 +543,7 @@ static uint8_t quant_to_spec(NeAACDecHandle hDecoder, | |||
543 | }; | 543 | }; |
544 | const real_t *tab = iq_table; | 544 | const real_t *tab = iq_table; |
545 | 545 | ||
546 | (void)frame_len; | ||
546 | uint8_t g, sfb, win; | 547 | uint8_t g, sfb, win; |
547 | uint16_t width, bin, k, gindex, wa, wb; | 548 | uint16_t width, bin, k, gindex, wa, wb; |
548 | uint8_t error = 0; /* Init error flag */ | 549 | uint8_t error = 0; /* Init error flag */ |
@@ -856,7 +857,7 @@ uint8_t reconstruct_single_channel(NeAACDecHandle hDecoder, ic_stream *ics, | |||
856 | element *sce, int16_t *spec_data) | 857 | element *sce, int16_t *spec_data) |
857 | { | 858 | { |
858 | uint8_t retval, output_channels; | 859 | uint8_t retval, output_channels; |
859 | ALIGN real_t spec_coef[1024]; | 860 | ALIGN static real_t spec_coef[1024]; |
860 | 861 | ||
861 | #ifdef PROFILE | 862 | #ifdef PROFILE |
862 | int64_t count = faad_get_ts(); | 863 | int64_t count = faad_get_ts(); |
@@ -1048,8 +1049,8 @@ uint8_t reconstruct_channel_pair(NeAACDecHandle hDecoder, ic_stream *ics1, ic_st | |||
1048 | element *cpe, int16_t *spec_data1, int16_t *spec_data2) | 1049 | element *cpe, int16_t *spec_data1, int16_t *spec_data2) |
1049 | { | 1050 | { |
1050 | uint8_t retval; | 1051 | uint8_t retval; |
1051 | ALIGN real_t spec_coef1[1024]; | 1052 | ALIGN static real_t spec_coef1[1024]; |
1052 | ALIGN real_t spec_coef2[1024]; | 1053 | ALIGN static real_t spec_coef2[1024]; |
1053 | 1054 | ||
1054 | #ifdef PROFILE | 1055 | #ifdef PROFILE |
1055 | int64_t count = faad_get_ts(); | 1056 | int64_t count = faad_get_ts(); |