summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/sb_celp.c
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2007-11-01 21:30:51 +0000
committerThom Johansen <thomj@rockbox.org>2007-11-01 21:30:51 +0000
commitbf1b7f131c933b83afe62f01c200366e4e2e37f3 (patch)
treea9ab90e6a01df357b7a8649d8e626a47e1678f64 /apps/codecs/libspeex/sb_celp.c
parent6d88717f6949587908ec08affa07d06239c3bae1 (diff)
downloadrockbox-bf1b7f131c933b83afe62f01c200366e4e2e37f3.zip
rockbox-bf1b7f131c933b83afe62f01c200366e4e2e37f3.tar.gz
rockbox-bf1b7f131c933b83afe62f01c200366e4e2e37f3.tar.bz2
rockbox-bf1b7f131c933b83afe62f01c200366e4e2e37f3.tar.xz
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/sb_celp.c')
-rw-r--r--apps/codecs/libspeex/sb_celp.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/apps/codecs/libspeex/sb_celp.c b/apps/codecs/libspeex/sb_celp.c
index c671971..cd6da32 100644
--- a/apps/codecs/libspeex/sb_celp.c
+++ b/apps/codecs/libspeex/sb_celp.c
@@ -185,7 +185,7 @@ static const float h0[64] = {
extern const spx_word16_t lpc_window[];
-#if 0
+#ifndef SPEEX_DISABLE_ENCODER
void *sb_encoder_init(const SpeexMode *m)
{
int i;
@@ -751,18 +751,6 @@ int sb_encode(void *state, void *vin, SpeexBits *bits)
return 1;
}
-#else
-void *sb_encoder_init(const SpeexMode *m)
-{
- return NULL;
-}
-void sb_encoder_destroy(void *state)
-{
-}
-int sb_encode(void *state, void *vin, SpeexBits *bits)
-{
- return 1;
-}
#endif
@@ -1127,7 +1115,7 @@ int sb_decode(void *state, SpeexBits *bits, void *vout)
return 0;
}
-#if 0
+#ifndef SPEEX_DISABLE_ENCODER
int sb_encoder_ctl(void *state, int request, void *ptr)
{
SBEncState *st;
@@ -1375,11 +1363,6 @@ int sb_encoder_ctl(void *state, int request, void *ptr)
}
return 0;
}
-#else
-int sb_encoder_ctl(void *state, int request, void *ptr)
-{
- return 0;
-}
#endif
int sb_decoder_ctl(void *state, int request, void *ptr)