summaryrefslogtreecommitdiff
path: root/apps/codecs/libtremor/ivorbiscodec.h
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2011-06-06 13:27:12 +0000
committerNils Wallménius <nils@rockbox.org>2011-06-06 13:27:12 +0000
commite62b9a9aaee94d18550a1788b910d023bc257a89 (patch)
tree3fb054717bdb0995ec5323cd178e7d65d7597b20 /apps/codecs/libtremor/ivorbiscodec.h
parent684b74147f203662fb6767f65b4ca8fc9b8eeeac (diff)
downloadrockbox-e62b9a9aaee94d18550a1788b910d023bc257a89.tar.gz
rockbox-e62b9a9aaee94d18550a1788b910d023bc257a89.zip
libtremor: Implement a memory configuration for targets that don't use separate iram for codecs.
Such targets would previously default to using the configuration for targets with small iram which uses an extra memcpy per block. This saves 2MHz decoding a 128kbps vorbis file on the Gigabeat S and saves a bit of codec buffer. Patch from FS#11268, also replaces patch from FS#12147. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29976 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libtremor/ivorbiscodec.h')
-rw-r--r--apps/codecs/libtremor/ivorbiscodec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/codecs/libtremor/ivorbiscodec.h b/apps/codecs/libtremor/ivorbiscodec.h
index 5bc33aaea5..23b62c48bd 100644
--- a/apps/codecs/libtremor/ivorbiscodec.h
+++ b/apps/codecs/libtremor/ivorbiscodec.h
@@ -79,7 +79,9 @@ typedef struct vorbis_dsp_state{
79 void *backend_state; 79 void *backend_state;
80 80
81 ogg_int32_t *first_pcm; /* PCM buffer (for normal RAM or IRAM)*/ 81 ogg_int32_t *first_pcm; /* PCM buffer (for normal RAM or IRAM)*/
82#ifdef TREMOR_USE_IRAM
82 ogg_int32_t *iram_double_pcm; /* PCM 2nd buffer for IRAM */ 83 ogg_int32_t *iram_double_pcm; /* PCM 2nd buffer for IRAM */
84#endif
83 bool reset_pcmb; 85 bool reset_pcmb;
84} vorbis_dsp_state; 86} vorbis_dsp_state;
85 87