diff options
author | Nils Wallménius <nils@rockbox.org> | 2010-12-04 12:59:37 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2010-12-04 12:59:37 +0000 |
commit | 911f2a7dac59cab16f6c47420e2d1e12e8b60b70 (patch) | |
tree | e48f2190ad02fb72228eb2de90b45c65fc1d7897 /apps/codecs/libtremor/synthesis.c | |
parent | 6367b19c7bcaae0da3c080be42b1d9a19727da00 (diff) |
libtremor: merge upstream revision 17374 and some inline/icode tweaks to maintain speed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28732 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libtremor/synthesis.c')
-rw-r--r-- | apps/codecs/libtremor/synthesis.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/apps/codecs/libtremor/synthesis.c b/apps/codecs/libtremor/synthesis.c index 35d080180b..69180b7acf 100644 --- a/apps/codecs/libtremor/synthesis.c +++ b/apps/codecs/libtremor/synthesis.c @@ -27,9 +27,7 @@ static ogg_int32_t *ipcm_vect[CHANNELS] IBSS_ATTR; -int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep) - ICODE_ATTR_TREMOR_NOT_MDCT; -int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep){ +static inline int _vorbis_synthesis1(vorbis_block *vb,ogg_packet *op,int decodep){ vorbis_dsp_state *vd=vb->vd; private_state *b=(private_state *)vd->backend_state; vorbis_info *vi=vd->vi; @@ -98,6 +96,16 @@ int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep){ } } +int vorbis_synthesis(vorbis_block *vb,ogg_packet *op) + ICODE_ATTR_TREMOR_NOT_MDCT; +int vorbis_synthesis(vorbis_block *vb,ogg_packet *op){ + return _vorbis_synthesis1(vb,op,1); +} + +int vorbis_synthesis_trackonly(vorbis_block *vb,ogg_packet *op){ + return _vorbis_synthesis1(vb,op,0); +} + long vorbis_packet_blocksize(vorbis_info *vi,ogg_packet *op){ codec_setup_info *ci=(codec_setup_info *)vi->codec_setup; oggpack_buffer opb; |