From 4909e09267ad1f2638d48d91b4b273d5508ec380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Thu, 2 Jun 2011 14:59:15 +0000 Subject: FS#12141 by Sean Bartell Some of these were found with http://www.samba.org/junkcode/#findstatic. Changes of note: * The old MDCT has been removed. * Makefile.test files that create test programs for libatrac, libcook, and libffmpegFLAC have been removed, as they don't work. My project will have a replacement that works with all codecs. * I've tried not to remove anything useful. CLIP_TO_15 was removed from libtremor because there's another copy (also commented) in codeclib. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29945 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libfaad/tns.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/codecs/libfaad/tns.c') diff --git a/apps/codecs/libfaad/tns.c b/apps/codecs/libfaad/tns.c index a759174..a2bec86 100644 --- a/apps/codecs/libfaad/tns.c +++ b/apps/codecs/libfaad/tns.c @@ -37,8 +37,10 @@ static void tns_decode_coef(uint8_t order, uint8_t coef_res_bits, uint8_t coef_c uint8_t *coef, real_t *a); static void tns_ar_filter(real_t *spectrum, uint16_t size, int8_t inc, real_t *lpc, int8_t order); +#ifdef LTP_DEC static void tns_ma_filter(real_t *spectrum, uint16_t size, int8_t inc, real_t *lpc, int8_t order); +#endif #ifdef _MSC_VER @@ -129,6 +131,7 @@ void tns_decode_frame(ic_stream *ics, tns_info *tns, uint8_t sr_index, } } +#ifdef LTP_DEC /* TNS encoding for one channel and frame */ void tns_encode_frame(ic_stream *ics, tns_info *tns, uint8_t sr_index, uint8_t object_type, real_t *spec, uint16_t frame_len) @@ -182,6 +185,7 @@ void tns_encode_frame(ic_stream *ics, tns_info *tns, uint8_t sr_index, } } } +#endif /* Decoder transmitted coefficients for one TNS filter */ static void tns_decode_coef(uint8_t order, uint8_t coef_res_bits, uint8_t coef_compress, @@ -268,6 +272,7 @@ static void tns_ar_filter(real_t *spectrum, uint16_t size, int8_t inc, real_t *l } } +#ifdef LTP_DEC static void tns_ma_filter(real_t *spectrum, uint16_t size, int8_t inc, real_t *lpc, int8_t order) { @@ -304,3 +309,4 @@ static void tns_ma_filter(real_t *spectrum, uint16_t size, int8_t inc, real_t *l spectrum += inc; } } +#endif -- cgit v1.1