diff options
author | Nils Wallménius <nils@rockbox.org> | 2010-07-12 15:59:11 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2010-07-12 15:59:11 +0000 |
commit | d3a194593958c45b2173e7d3c919af4548c9f55f (patch) | |
tree | 2f0a7f46c6c4dcd2f8d4000d8566d10a47da391b /apps/codecs/libtta/ttadec.c | |
parent | ec4ee483181d01d14444e4431159282ecd92a2c5 (diff) | |
download | rockbox-d3a194593958c45b2173e7d3c919af4548c9f55f.tar.gz rockbox-d3a194593958c45b2173e7d3c919af4548c9f55f.zip |
Use more iram in the tta lib, speeds up decoding by 47MHz on h300 (mcf5249) and 2.7MHz on c200v1 (pp5024)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27403 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libtta/ttadec.c')
-rw-r--r-- | apps/codecs/libtta/ttadec.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/codecs/libtta/ttadec.c b/apps/codecs/libtta/ttadec.c index dc9f5b905b..2ff2d24da9 100644 --- a/apps/codecs/libtta/ttadec.c +++ b/apps/codecs/libtta/ttadec.c | |||
@@ -45,31 +45,31 @@ | |||
45 | /******************* static variables and structures *******************/ | 45 | /******************* static variables and structures *******************/ |
46 | 46 | ||
47 | static unsigned char isobuffers[ISO_BUFFERS_SIZE + 4] IBSS_ATTR; | 47 | static unsigned char isobuffers[ISO_BUFFERS_SIZE + 4] IBSS_ATTR; |
48 | static unsigned char *iso_buffers_end = isobuffers + ISO_BUFFERS_SIZE; | 48 | static unsigned char * const iso_buffers_end ICONST_ATTR = isobuffers + ISO_BUFFERS_SIZE; |
49 | static unsigned int pcm_buffer_size; | 49 | static unsigned int pcm_buffer_size IBSS_ATTR; |
50 | 50 | ||
51 | static decoder tta[MAX_NCH] IBSS_ATTR; /* decoder state */ | 51 | static decoder tta[MAX_NCH] IBSS_ATTR; /* decoder state */ |
52 | /* Rockbox speciffic: cache is defined in get_samples() (non static value) */ | 52 | /* Rockbox speciffic: cache is defined in get_samples() (non static value) */ |
53 | /* static int cache[MAX_NCH]; // decoder cache */ | 53 | /* static int cache[MAX_NCH]; // decoder cache */ |
54 | 54 | ||
55 | tta_info *ttainfo; /* currently playing file info */ | 55 | tta_info *ttainfo IBSS_ATTR; /* currently playing file info */ |
56 | 56 | ||
57 | static unsigned int fframes; /* number of frames in file */ | 57 | static unsigned int fframes IBSS_ATTR; /* number of frames in file */ |
58 | static unsigned int framelen; /* the frame length in samples */ | 58 | static unsigned int framelen IBSS_ATTR; /* the frame length in samples */ |
59 | static unsigned int lastlen; /* the length of the last frame in samples */ | 59 | static unsigned int lastlen IBSS_ATTR; /* the length of the last frame in samples */ |
60 | static unsigned int data_pos; /* currently playing frame index */ | 60 | static unsigned int data_pos IBSS_ATTR; /* currently playing frame index */ |
61 | static unsigned int data_cur; /* the playing position in frame */ | 61 | static unsigned int data_cur IBSS_ATTR; /* the playing position in frame */ |
62 | 62 | ||
63 | static int maxvalue; /* output data max value */ | 63 | static int maxvalue IBSS_ATTR; /* output data max value */ |
64 | 64 | ||
65 | /* Rockbox speciffic: seek_table is static size */ | 65 | /* Rockbox speciffic: seek_table is static size */ |
66 | static unsigned int seek_table[MAX_SEEK_TABLE_SIZE]; /* the playing position table */ | 66 | static unsigned int seek_table[MAX_SEEK_TABLE_SIZE]; /* the playing position table */ |
67 | static unsigned int st_state; /* seek table status */ | 67 | static unsigned int st_state; /* seek table status */ |
68 | 68 | ||
69 | static unsigned int frame_crc32; | 69 | static unsigned int frame_crc32 IBSS_ATTR; |
70 | static unsigned int bit_count; | 70 | static unsigned int bit_count IBSS_ATTR; |
71 | static unsigned int bit_cache; | 71 | static unsigned int bit_cache IBSS_ATTR; |
72 | static unsigned char *bitpos; | 72 | static unsigned char *bitpos IBSS_ATTR; |
73 | 73 | ||
74 | /* Rockbox speciffic: deletes read_id3_tags(). */ | 74 | /* Rockbox speciffic: deletes read_id3_tags(). */ |
75 | /* static int read_id3_tags (tta_info *info); */ | 75 | /* static int read_id3_tags (tta_info *info); */ |