diff options
author | Pedro Vasconcelos <pbv@rockbox.org> | 2005-06-06 23:01:51 +0000 |
---|---|---|
committer | Pedro Vasconcelos <pbv@rockbox.org> | 2005-06-06 23:01:51 +0000 |
commit | 0f10e898f0040e30f0a23719e67223744c47f90d (patch) | |
tree | 5283879581de1eb29fdb6e2c2838f9e152ea693b /apps/codecs/Tremor/res012.c | |
parent | 127f14210fb632e069ac6c8891cf28d01bf79e2f (diff) |
Vorbis optimizations: allocation of PCM buffers in IRAM, avoiding copying.
Slight code improvements to the MDCT functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6590 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/Tremor/res012.c')
-rw-r--r-- | apps/codecs/Tremor/res012.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/codecs/Tremor/res012.c b/apps/codecs/Tremor/res012.c index 3d69cee73b..66947ffe7e 100644 --- a/apps/codecs/Tremor/res012.c +++ b/apps/codecs/Tremor/res012.c @@ -172,6 +172,7 @@ vorbis_look_residue *res0_look(vorbis_dsp_state *vd,vorbis_info_mode *vm, return(look); } +#define CHANNELS 2 /* a truncated packet here just means 'stop working'; it's not an error */ static int _01inverse(vorbis_block *vb,vorbis_look_residue *vl, @@ -254,6 +255,8 @@ int res1_inverse(vorbis_block *vb,vorbis_look_residue *vl, return(0); } + + /* duplicate code here as speed is somewhat more important */ int res2_inverse(vorbis_block *vb,vorbis_look_residue *vl, ogg_int32_t **in,int *nonzero,int ch){ @@ -291,7 +294,6 @@ int res2_inverse(vorbis_block *vb,vorbis_look_residue *vl, for(k=0;k<partitions_per_word && i<partvals;k++,i++) if(info->secondstages[partword[l][k]]&(1<<s)){ codebook *stagebook=look->partbooks[partword[l][k]][s]; - if(stagebook){ if(vorbis_book_decodevv_add(stagebook,in, i*samples_per_partition+beginoff,ch, |