summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/speex
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2011-06-02 20:52:54 +0000
committerNils Wallménius <nils@rockbox.org>2011-06-02 20:52:54 +0000
commit73d0e14f4494b98e0c781934fbf19efa8d6d8418 (patch)
treecd3a80eb069dc81178a5b50020356c741116f103 /apps/codecs/libspeex/speex
parentd860c878003142128f7beb3e38dae38007822364 (diff)
downloadrockbox-73d0e14f4494b98e0c781934fbf19efa8d6d8418.zip
rockbox-73d0e14f4494b98e0c781934fbf19efa8d6d8418.tar.gz
rockbox-73d0e14f4494b98e0c781934fbf19efa8d6d8418.tar.bz2
rockbox-73d0e14f4494b98e0c781934fbf19efa8d6d8418.tar.xz
Disable some unused code in speex to save binsize.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29949 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libspeex/speex')
-rw-r--r--apps/codecs/libspeex/speex/speex.h4
-rw-r--r--apps/codecs/libspeex/speex/speex_bits.h10
2 files changed, 14 insertions, 0 deletions
diff --git a/apps/codecs/libspeex/speex/speex.h b/apps/codecs/libspeex/speex/speex.h
index ffb0714..086d492 100644
--- a/apps/codecs/libspeex/speex/speex.h
+++ b/apps/codecs/libspeex/speex/speex.h
@@ -263,6 +263,7 @@ typedef struct SpeexMode {
bitstream compatibility*/
int bitstream_version;
+#ifndef SPEEX_DISABLE_ENCODER
/** Pointer to encoder initialization function */
encoder_init_func enc_init;
@@ -271,6 +272,7 @@ typedef struct SpeexMode {
/** Pointer to frame encoding function */
encode_func enc;
+#endif
/** Pointer to decoder initialization function */
decoder_init_func dec_init;
@@ -281,8 +283,10 @@ typedef struct SpeexMode {
/** Pointer to frame decoding function */
decode_func dec;
+#ifndef SPEEX_DISABLE_ENCODER
/** ioctl-like requests for encoder */
encoder_ctl_func enc_ctl;
+#endif
/** ioctl-like requests for decoder */
decoder_ctl_func dec_ctl;
diff --git a/apps/codecs/libspeex/speex/speex_bits.h b/apps/codecs/libspeex/speex/speex_bits.h
index a26fb4c..fee2893 100644
--- a/apps/codecs/libspeex/speex/speex_bits.h
+++ b/apps/codecs/libspeex/speex/speex_bits.h
@@ -62,7 +62,9 @@ typedef struct SpeexBits {
void speex_bits_init(SpeexBits *bits);
/** Initializes SpeexBits struct using a pre-allocated buffer*/
+/* Rockbox: unused
void speex_bits_init_buffer(SpeexBits *bits, void *buff, int buf_size);
+*/
/** Sets the bits in a SpeexBits struct to use data from an existing buffer (for decoding without copying data) */
void speex_bits_set_bit_buffer(SpeexBits *bits, void *buff, int buf_size);
@@ -74,7 +76,9 @@ void speex_bits_destroy(SpeexBits *bits);
void speex_bits_reset(SpeexBits *bits);
/** Rewind the bit-stream to the beginning (ready for read) without erasing the content */
+/* Rockbox: unused
void speex_bits_rewind(SpeexBits *bits);
+*/
/** Initializes the bit-stream from the data in an area of memory */
void speex_bits_read_from(SpeexBits *bits, char *bytes, int len);
@@ -112,7 +116,9 @@ void speex_bits_pack(SpeexBits *bits, int data, int nbBits);
* @param nbBits Number of bits to interpret
* @return A signed integer represented by the bits read
*/
+/* Rockbox: unused
int speex_bits_unpack_signed(SpeexBits *bits, int nbBits);
+*/
/** Interpret the next bits in the bit-stream as an unsigned integer
*
@@ -127,7 +133,9 @@ unsigned int speex_bits_unpack_unsigned(SpeexBits *bits, int nbBits);
* @param bits Bit-stream to operate on
* @return Number of bytes in the stream
*/
+/* Rockbox: unused
int speex_bits_nbytes(SpeexBits *bits);
+*/
/** Same as speex_bits_unpack_unsigned, but without modifying the cursor position
*
@@ -135,7 +143,9 @@ int speex_bits_nbytes(SpeexBits *bits);
* @param nbBits Number of bits to look for
* @return Value of the bits peeked, interpreted as unsigned
*/
+/* Rockbox: unused
unsigned int speex_bits_peek_unsigned(SpeexBits *bits, int nbBits);
+*/
/** Get the value of the next bit in the stream, without modifying the
* "cursor" position