···263263 bitstream compatibility*/
264264 int bitstream_version;
265265266266+#ifndef SPEEX_DISABLE_ENCODER
266267 /** Pointer to encoder initialization function */
267268 encoder_init_func enc_init;
268269···271272272273 /** Pointer to frame encoding function */
273274 encode_func enc;
275275+#endif
274276275277 /** Pointer to decoder initialization function */
276278 decoder_init_func dec_init;
···281283 /** Pointer to frame decoding function */
282284 decode_func dec;
283285286286+#ifndef SPEEX_DISABLE_ENCODER
284287 /** ioctl-like requests for encoder */
285288 encoder_ctl_func enc_ctl;
289289+#endif
286290287291 /** ioctl-like requests for decoder */
288292 decoder_ctl_func dec_ctl;
+10
apps/codecs/libspeex/speex/speex_bits.h
···6262void speex_bits_init(SpeexBits *bits);
63636464/** Initializes SpeexBits struct using a pre-allocated buffer*/
6565+/* Rockbox: unused
6566void speex_bits_init_buffer(SpeexBits *bits, void *buff, int buf_size);
6767+*/
66686769/** Sets the bits in a SpeexBits struct to use data from an existing buffer (for decoding without copying data) */
6870void speex_bits_set_bit_buffer(SpeexBits *bits, void *buff, int buf_size);
···7476void speex_bits_reset(SpeexBits *bits);
75777678/** Rewind the bit-stream to the beginning (ready for read) without erasing the content */
7979+/* Rockbox: unused
7780void speex_bits_rewind(SpeexBits *bits);
8181+*/
78827983/** Initializes the bit-stream from the data in an area of memory */
8084void speex_bits_read_from(SpeexBits *bits, char *bytes, int len);
···112116 * @param nbBits Number of bits to interpret
113117 * @return A signed integer represented by the bits read
114118 */
119119+/* Rockbox: unused
115120int speex_bits_unpack_signed(SpeexBits *bits, int nbBits);
121121+*/
116122117123/** Interpret the next bits in the bit-stream as an unsigned integer
118124 *
···127133 * @param bits Bit-stream to operate on
128134 * @return Number of bytes in the stream
129135 */
136136+/* Rockbox: unused
130137int speex_bits_nbytes(SpeexBits *bits);
138138+*/
131139132140/** Same as speex_bits_unpack_unsigned, but without modifying the cursor position
133141 *
···135143 * @param nbBits Number of bits to look for
136144 * @return Value of the bits peeked, interpreted as unsigned
137145 */
146146+/* Rockbox: unused
138147unsigned int speex_bits_peek_unsigned(SpeexBits *bits, int nbBits);
148148+*/
139149140150/** Get the value of the next bit in the stream, without modifying the
141151 * "cursor" position