diff options
author | Thom Johansen <thomj@rockbox.org> | 2007-11-01 21:30:51 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2007-11-01 21:30:51 +0000 |
commit | bf1b7f131c933b83afe62f01c200366e4e2e37f3 (patch) | |
tree | a9ab90e6a01df357b7a8649d8e626a47e1678f64 /apps/codecs/libspeex/cb_search.c | |
parent | 6d88717f6949587908ec08affa07d06239c3bae1 (diff) | |
download | rockbox-bf1b7f131c933b83afe62f01c200366e4e2e37f3.tar.gz rockbox-bf1b7f131c933b83afe62f01c200366e4e2e37f3.zip |
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
Diffstat (limited to 'apps/codecs/libspeex/cb_search.c')
-rw-r--r-- | apps/codecs/libspeex/cb_search.c | 4 |
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 |
53 | 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) | 54 | 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) |
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 | ||
516 | void split_cb_shape_sign_unquant( | 518 | void split_cb_shape_sign_unquant( |
@@ -571,6 +573,7 @@ spx_int32_t *seed | |||
571 | } | 573 | } |
572 | } | 574 | } |
573 | 575 | ||
576 | #ifndef SPEEX_DISABLE_ENCODER | ||
574 | void noise_codebook_quant( | 577 | void noise_codebook_quant( |
575 | spx_word16_t target[], /* target vector */ | 578 | spx_word16_t target[], /* target vector */ |
576 | spx_coef_t ak[], /* LPCs for this subframe */ | 579 | spx_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 | ||
602 | void noise_codebook_unquant( | 606 | void noise_codebook_unquant( |