diff options
Diffstat (limited to 'apps/codecs/libfaad/tns.c')
-rw-r--r-- | apps/codecs/libfaad/tns.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/codecs/libfaad/tns.c b/apps/codecs/libfaad/tns.c index a759174196..a2bec86519 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 | |||
37 | uint8_t *coef, real_t *a); | 37 | uint8_t *coef, real_t *a); |
38 | static void tns_ar_filter(real_t *spectrum, uint16_t size, int8_t inc, real_t *lpc, | 38 | static void tns_ar_filter(real_t *spectrum, uint16_t size, int8_t inc, real_t *lpc, |
39 | int8_t order); | 39 | int8_t order); |
40 | #ifdef LTP_DEC | ||
40 | static void tns_ma_filter(real_t *spectrum, uint16_t size, int8_t inc, real_t *lpc, | 41 | static void tns_ma_filter(real_t *spectrum, uint16_t size, int8_t inc, real_t *lpc, |
41 | int8_t order); | 42 | int8_t order); |
43 | #endif | ||
42 | 44 | ||
43 | 45 | ||
44 | #ifdef _MSC_VER | 46 | #ifdef _MSC_VER |
@@ -129,6 +131,7 @@ void tns_decode_frame(ic_stream *ics, tns_info *tns, uint8_t sr_index, | |||
129 | } | 131 | } |
130 | } | 132 | } |
131 | 133 | ||
134 | #ifdef LTP_DEC | ||
132 | /* TNS encoding for one channel and frame */ | 135 | /* TNS encoding for one channel and frame */ |
133 | void tns_encode_frame(ic_stream *ics, tns_info *tns, uint8_t sr_index, | 136 | void tns_encode_frame(ic_stream *ics, tns_info *tns, uint8_t sr_index, |
134 | uint8_t object_type, real_t *spec, uint16_t frame_len) | 137 | 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, | |||
182 | } | 185 | } |
183 | } | 186 | } |
184 | } | 187 | } |
188 | #endif | ||
185 | 189 | ||
186 | /* Decoder transmitted coefficients for one TNS filter */ | 190 | /* Decoder transmitted coefficients for one TNS filter */ |
187 | static void tns_decode_coef(uint8_t order, uint8_t coef_res_bits, uint8_t coef_compress, | 191 | 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 | |||
268 | } | 272 | } |
269 | } | 273 | } |
270 | 274 | ||
275 | #ifdef LTP_DEC | ||
271 | static void tns_ma_filter(real_t *spectrum, uint16_t size, int8_t inc, real_t *lpc, | 276 | static void tns_ma_filter(real_t *spectrum, uint16_t size, int8_t inc, real_t *lpc, |
272 | int8_t order) | 277 | int8_t order) |
273 | { | 278 | { |
@@ -304,3 +309,4 @@ static void tns_ma_filter(real_t *spectrum, uint16_t size, int8_t inc, real_t *l | |||
304 | spectrum += inc; | 309 | spectrum += inc; |
305 | } | 310 | } |
306 | } | 311 | } |
312 | #endif | ||