summaryrefslogtreecommitdiff
path: root/apps/codecs/demac/libdemac/predictor.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-06-10 08:55:16 +0000
committerDave Chapman <dave@dchapman.com>2007-06-10 08:55:16 +0000
commit601ede7f9cc88cc40e074cc9d9cfdc2c0ba46d4c (patch)
treec0366c2ce8ff0932db0873e3e27ac00e91cc50a4 /apps/codecs/demac/libdemac/predictor.h
parent57440d52920f5ad76063089edd73c09f35951a87 (diff)
downloadrockbox-601ede7f9cc88cc40e074cc9d9cfdc2c0ba46d4c.zip
rockbox-601ede7f9cc88cc40e074cc9d9cfdc2c0ba46d4c.tar.gz
rockbox-601ede7f9cc88cc40e074cc9d9cfdc2c0ba46d4c.tar.bz2
rockbox-601ede7f9cc88cc40e074cc9d9cfdc2c0ba46d4c.tar.xz
C optimisations to the predictor decoding - create a single function for decoding stereo streams, and reorganise to minimise the number of variables used. My -c1000 test track now decodes at 93% realtime on PortalPlayer (was 78%), 187% on Coldfire (was 170%) and 447% on Gigabeat (was 408%).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13608 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/demac/libdemac/predictor.h')
-rw-r--r--apps/codecs/demac/libdemac/predictor.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/demac/libdemac/predictor.h b/apps/codecs/demac/libdemac/predictor.h
index 3c023c8..df2ba62 100644
--- a/apps/codecs/demac/libdemac/predictor.h
+++ b/apps/codecs/demac/libdemac/predictor.h
@@ -2,7 +2,7 @@
libdemac - A Monkey's Audio decoder
-$Id:$
+$Id$
Copyright (C) Dave Chapman 2007
@@ -29,8 +29,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
#include "parser.h"
#include "filter.h"
-void init_predictor_decoder(struct ape_ctx_t* ape_ctx);
-int predictor_decode_stereo(struct ape_ctx_t* ape_ctx, int32_t* decoded0, int32_t* decoded1, int count);
-int predictor_decode_mono(struct ape_ctx_t* ape_ctx, int32_t* decoded0, int count);
+void init_predictor_decoder(struct predictor_t* p);
+int predictor_decode_stereo(struct predictor_t* p, int32_t* decoded0, int32_t* decoded1, int count);
+int predictor_decode_mono(struct predictor_t* p, int32_t* decoded0, int count);
#endif