From bf1b7f131c933b83afe62f01c200366e4e2e37f3 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Thu, 1 Nov 2007 21:30:51 +0000 Subject: First attempt at ifdeffing out as much of the encoder stuff as possible from Speex. Gives a smaller binary and allows me to remove a couple more files from SOURCES. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15394 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libspeex/ltp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/codecs/libspeex/ltp.c') diff --git a/apps/codecs/libspeex/ltp.c b/apps/codecs/libspeex/ltp.c index 6af02e2582..720baaad02 100644 --- a/apps/codecs/libspeex/ltp.c +++ b/apps/codecs/libspeex/ltp.c @@ -75,6 +75,7 @@ spx_word32_t inner_prod(const spx_word16_t *x, const spx_word16_t *y, int len) } #endif +#ifndef SPEEX_DISABLE_ENCODER #ifndef OVERRIDE_PITCH_XCORR #if 0 /* HINT: Enable this for machines with enough registers (i.e. not x86) */ void pitch_xcorr(const spx_word16_t *_x, const spx_word16_t *_y, spx_word32_t *corr, int len, int nb_pitch, char *stack) @@ -659,6 +660,7 @@ spx_word32_t *cumul_gain #endif return pitch; } +#endif void pitch_unquant_3tap( spx_word16_t exc[], /* Input excitation */ @@ -760,6 +762,7 @@ int cdbk_offset } +#ifndef SPEEX_DISABLE_ENCODER /** Forced pitch delay and gain */ int forced_pitch_quant( spx_word16_t target[], /* Target vector */ @@ -809,6 +812,7 @@ spx_word32_t *cumul_gain target[i]=EXTRACT16(SATURATE(SUB32(EXTEND32(target[i]),EXTEND32(res[i])),32700)); return start; } +#endif /** Unquantize forced pitch delay and gain */ void forced_pitch_unquant( -- cgit v1.2.3