diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-02-14 14:38:18 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-02-14 14:38:18 +0000 |
commit | f5a0d61a1b24ea4397234e0c65bc0cbb71e4071f (patch) | |
tree | 6a2fde6cc9361365aea13d99294e78e556b6845a /apps/codecs/libatrac/main.c | |
parent | bb13650d666a51df382c8898d6d5dff1e7cdf178 (diff) | |
download | rockbox-f5a0d61a1b24ea4397234e0c65bc0cbb71e4071f.tar.gz rockbox-f5a0d61a1b24ea4397234e0c65bc0cbb71e4071f.zip |
Further optimization and minor clean up of atrac codec: Unroll iqmf_dewindowing for non-ARM speeds up decoder by +10% on H300. Removed some non-used arrays. Codec is still not fully realtime on Coldfire targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24648 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libatrac/main.c')
-rw-r--r-- | apps/codecs/libatrac/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/codecs/libatrac/main.c b/apps/codecs/libatrac/main.c index 826dacf819..e0a3f8507d 100644 --- a/apps/codecs/libatrac/main.c +++ b/apps/codecs/libatrac/main.c | |||
@@ -9,6 +9,8 @@ | |||
9 | #include "atrac3.h" | 9 | #include "atrac3.h" |
10 | #include "../librm/rm.h" | 10 | #include "../librm/rm.h" |
11 | 11 | ||
12 | ATRAC3Context q IBSS_ATTR; | ||
13 | |||
12 | static unsigned char wav_header[44]={ | 14 | static unsigned char wav_header[44]={ |
13 | 'R','I','F','F',// 0 - ChunkID | 15 | 'R','I','F','F',// 0 - ChunkID |
14 | 0,0,0,0, // 4 - ChunkSize (filesize-8) | 16 | 0,0,0,0, // 4 - ChunkSize (filesize-8) |
@@ -101,7 +103,6 @@ int main(int argc, char *argv[]) | |||
101 | int16_t outbuf[2048]; | 103 | int16_t outbuf[2048]; |
102 | uint16_t fs,sps,h; | 104 | uint16_t fs,sps,h; |
103 | uint32_t packet_count; | 105 | uint32_t packet_count; |
104 | ATRAC3Context q; | ||
105 | RMContext rmctx; | 106 | RMContext rmctx; |
106 | RMPacket pkt; | 107 | RMPacket pkt; |
107 | 108 | ||