Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/speexdsp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libspeex/ltp.c')
-rw-r--r--libspeex/ltp.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/libspeex/ltp.c b/libspeex/ltp.c
index 551ae0b..d07ade1 100644
--- a/libspeex/ltp.c
+++ b/libspeex/ltp.c
@@ -74,6 +74,8 @@ spx_word32_t inner_prod(const spx_word16_t *x, const spx_word16_t *y, int len)
}
#endif
+#ifndef 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)
@@ -651,7 +653,9 @@ spx_word32_t *cumul_gain
#endif
return pitch;
}
+#endif /* DISABLE_ENCODER */
+#ifndef DISABLE_DECODER
void pitch_unquant_3tap(
spx_word16_t exc[], /* Input excitation */
spx_word32_t exc_out[], /* Output excitation */
@@ -749,8 +753,9 @@ int cdbk_offset
/*for (i=0;i<nsf;i++)
exc[i]=PSHR32(exc32[i],13);*/
}
+#endif /* DISABLE_DECODER */
-
+#ifndef DISABLE_ENCODER
/** Forced pitch delay and gain */
int forced_pitch_quant(
spx_word16_t target[], /* Target vector */
@@ -800,7 +805,9 @@ spx_word32_t *cumul_gain
target[i]=EXTRACT16(SATURATE(SUB32(EXTEND32(target[i]),EXTEND32(res[i])),32700));
return start;
}
+#endif /* DISABLE_ENCODER */
+#ifndef DISABLE_DECODER
/** Unquantize forced pitch delay and gain */
void forced_pitch_unquant(
spx_word16_t exc[], /* Input excitation */
@@ -837,3 +844,4 @@ int cdbk_offset
gain_val[0]=gain_val[2]=0;
gain_val[1] = pitch_coef;
}
+#endif /* DISABLE_DECODER */