summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/cb_search.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libspeex/cb_search.c')
-rw-r--r--apps/codecs/libspeex/cb_search.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/codecs/libspeex/cb_search.c b/apps/codecs/libspeex/cb_search.c
index f7ecca4a62..8afb8ab5f3 100644
--- a/apps/codecs/libspeex/cb_search.c
+++ b/apps/codecs/libspeex/cb_search.c
@@ -49,6 +49,7 @@
49#include "cb_search_bfin.h" 49#include "cb_search_bfin.h"
50#endif 50#endif
51 51
52#ifndef SPEEX_DISABLE_ENCODER
52#ifndef OVERRIDE_COMPUTE_WEIGHTED_CODEBOOK 53#ifndef OVERRIDE_COMPUTE_WEIGHTED_CODEBOOK
53static 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) 54static 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)
54{ 55{
@@ -511,6 +512,7 @@ int update_target
511 target[j]=SUB16(target[j],PSHR16(r2[j],2)); 512 target[j]=SUB16(target[j],PSHR16(r2[j],2));
512 } 513 }
513} 514}
515#endif
514 516
515 517
516void split_cb_shape_sign_unquant( 518void split_cb_shape_sign_unquant(
@@ -571,6 +573,7 @@ spx_int32_t *seed
571 } 573 }
572} 574}
573 575
576#ifndef SPEEX_DISABLE_ENCODER
574void noise_codebook_quant( 577void noise_codebook_quant(
575spx_word16_t target[], /* target vector */ 578spx_word16_t target[], /* target vector */
576spx_coef_t ak[], /* LPCs for this subframe */ 579spx_coef_t ak[], /* LPCs for this subframe */
@@ -597,6 +600,7 @@ int update_target
597 for (i=0;i<nsf;i++) 600 for (i=0;i<nsf;i++)
598 target[i]=0; 601 target[i]=0;
599} 602}
603#endif
600 604
601 605
602void noise_codebook_unquant( 606void noise_codebook_unquant(