From e62b9a9aaee94d18550a1788b910d023bc257a89 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Mon, 6 Jun 2011 13:27:12 +0000 Subject: 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 --- apps/codecs/libtremor/ivorbiscodec.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/codecs/libtremor/ivorbiscodec.h') 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{ void *backend_state; ogg_int32_t *first_pcm; /* PCM buffer (for normal RAM or IRAM)*/ +#ifdef TREMOR_USE_IRAM ogg_int32_t *iram_double_pcm; /* PCM 2nd buffer for IRAM */ +#endif bool reset_pcmb; } vorbis_dsp_state; -- cgit v1.2.3