diff options
Diffstat (limited to 'libspeex/cb_search.c')
-rw-r--r-- | libspeex/cb_search.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libspeex/cb_search.c b/libspeex/cb_search.c index 63f4c6a..fa96dac 100644 --- a/libspeex/cb_search.c +++ b/libspeex/cb_search.c @@ -49,6 +49,8 @@ #include "cb_search_bfin.h" #endif +#ifndef DISABLE_ENCODER + #ifndef OVERRIDE_COMPUTE_WEIGHTED_CODEBOOK static void compute_weighted_codebook(const signed char *shape_cb, const spx_word16_t *r, spx_word16_t *resp, spx_word16_t *resp2, spx_word32_t *E, int shape_cb_size, int subvect_size, char *stack) { @@ -509,8 +511,9 @@ int update_target target[j]=SUB16(target[j],PSHR16(r2[j],2)); } } +#endif /* DISABLE_ENCODER */ - +#ifndef DISABLE_DECODER void split_cb_shape_sign_unquant( spx_sig_t *exc, const void *par, /* non-overlapping codebook */ @@ -568,7 +571,9 @@ spx_int32_t *seed #endif } } +#endif /* DISABLE_DECODER */ +#ifndef DISABLE_ENCODER void noise_codebook_quant( spx_word16_t target[], /* target vector */ spx_coef_t ak[], /* LPCs for this subframe */ @@ -594,8 +599,9 @@ int update_target exc[i]+=SHL32(EXTEND32(tmp[i]),8); SPEEX_MEMSET(target, 0, nsf); } +#endif /* DISABLE_ENCODER */ - +#ifndef DISABLE_DECODER void noise_codebook_unquant( spx_sig_t *exc, const void *par, /* non-overlapping codebook */ @@ -610,3 +616,4 @@ spx_int32_t *seed for (i=0;i<nsf;i++) exc[i]=SHL32(EXTEND32(speex_rand(1, seed)),SIG_SHIFT); } +#endif /* DISABLE_DECODER */ |