summaryrefslogtreecommitdiff
path: root/apps/codecs/demac/libdemac/predictor.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-11-16 17:49:37 +0000
committerJens Arnold <amiconn@rockbox.org>2008-11-16 17:49:37 +0000
commit1b14167861bb5bf4c692f8fc661b33e26a706183 (patch)
tree5a635ce1c95dd74235b29bd23ae9cd9bd4a8e93a /apps/codecs/demac/libdemac/predictor.c
parent66ff812c4a4fb5bb39c6056a10d814944bda92dc (diff)
downloadrockbox-1b14167861bb5bf4c692f8fc661b33e26a706183.tar.gz
rockbox-1b14167861bb5bf4c692f8fc661b33e26a706183.zip
Centralise compile-time configuration.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19121 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/demac/libdemac/predictor.c')
-rw-r--r--apps/codecs/demac/libdemac/predictor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/demac/libdemac/predictor.c b/apps/codecs/demac/libdemac/predictor.c
index f0e3b65556..1a9b48e0ca 100644
--- a/apps/codecs/demac/libdemac/predictor.c
+++ b/apps/codecs/demac/libdemac/predictor.c
@@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
27 27
28#include "parser.h" 28#include "parser.h"
29#include "predictor.h" 29#include "predictor.h"
30#include "demac_iram.h" 30#include "demac_config.h"
31 31
32/* Return 0 if x is zero, -1 if x is positive, 1 if x is negative */ 32/* Return 0 if x is zero, -1 if x is positive, 1 if x is negative */
33#define SIGN(x) (x) ? (((x) > 0) ? -1 : 1) : 0 33#define SIGN(x) (x) ? (((x) > 0) ? -1 : 1) : 0
@@ -196,7 +196,7 @@ int ICODE_ATTR_DEMAC predictor_decode_stereo(struct predictor_t* p,
196 p->buf++; 196 p->buf++;
197 197
198 /* Have we filled the history buffer? */ 198 /* Have we filled the history buffer? */
199 if (p->buf == p->historybuffer + HISTORY_SIZE) { 199 if (p->buf == p->historybuffer + PREDICTOR_HISTORY_SIZE) {
200 memmove(p->historybuffer, p->buf, 200 memmove(p->historybuffer, p->buf,
201 PREDICTOR_SIZE * sizeof(int32_t)); 201 PREDICTOR_SIZE * sizeof(int32_t));
202 p->buf = p->historybuffer; 202 p->buf = p->historybuffer;
@@ -250,7 +250,7 @@ int ICODE_ATTR_DEMAC predictor_decode_mono(struct predictor_t* p,
250 p->buf++; 250 p->buf++;
251 251
252 /* Have we filled the history buffer? */ 252 /* Have we filled the history buffer? */
253 if (p->buf == p->historybuffer + HISTORY_SIZE) { 253 if (p->buf == p->historybuffer + PREDICTOR_HISTORY_SIZE) {
254 memmove(p->historybuffer, p->buf, 254 memmove(p->historybuffer, p->buf,
255 PREDICTOR_SIZE * sizeof(int32_t)); 255 PREDICTOR_SIZE * sizeof(int32_t));
256 p->buf = p->historybuffer; 256 p->buf = p->historybuffer;