diff options
Diffstat (limited to 'lib/rbcodec/codecs/libopus/celt/celt.c')
-rw-r--r-- | lib/rbcodec/codecs/libopus/celt/celt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libopus/celt/celt.c b/lib/rbcodec/codecs/libopus/celt/celt.c index 8d42cc95b3..a4afb247b1 100644 --- a/lib/rbcodec/codecs/libopus/celt/celt.c +++ b/lib/rbcodec/codecs/libopus/celt/celt.c | |||
@@ -198,6 +198,7 @@ struct OpusCustomEncoder { | |||
198 | /* opus_val16 oldEBands[], Size = 2*channels*mode->nbEBands */ | 198 | /* opus_val16 oldEBands[], Size = 2*channels*mode->nbEBands */ |
199 | }; | 199 | }; |
200 | 200 | ||
201 | #if 0 | ||
201 | int celt_encoder_get_size(int channels) | 202 | int celt_encoder_get_size(int channels) |
202 | { | 203 | { |
203 | CELTMode *mode = opus_custom_mode_create(48000, 960, NULL); | 204 | CELTMode *mode = opus_custom_mode_create(48000, 960, NULL); |
@@ -280,6 +281,7 @@ void opus_custom_encoder_destroy(CELTEncoder *st) | |||
280 | opus_free(st); | 281 | opus_free(st); |
281 | } | 282 | } |
282 | #endif /* CUSTOM_MODES */ | 283 | #endif /* CUSTOM_MODES */ |
284 | #endif | ||
283 | 285 | ||
284 | static inline opus_val16 SIG2WORD16(celt_sig x) | 286 | static inline opus_val16 SIG2WORD16(celt_sig x) |
285 | { | 287 | { |
@@ -293,6 +295,7 @@ static inline opus_val16 SIG2WORD16(celt_sig x) | |||
293 | #endif | 295 | #endif |
294 | } | 296 | } |
295 | 297 | ||
298 | #if 0 | ||
296 | static int transient_analysis(const opus_val32 * OPUS_RESTRICT in, int len, int C, | 299 | static int transient_analysis(const opus_val32 * OPUS_RESTRICT in, int len, int C, |
297 | int overlap) | 300 | int overlap) |
298 | { | 301 | { |
@@ -410,6 +413,7 @@ static void compute_mdcts(const CELTMode *mode, int shortBlocks, celt_sig * OPUS | |||
410 | } while (++c<C); | 413 | } while (++c<C); |
411 | } | 414 | } |
412 | } | 415 | } |
416 | #endif | ||
413 | 417 | ||
414 | /** Compute the IMDCT and apply window for all sub-frames and | 418 | /** Compute the IMDCT and apply window for all sub-frames and |
415 | all channels in a frame */ | 419 | all channels in a frame */ |
@@ -536,6 +540,7 @@ static const signed char tf_select_table[4][8] = { | |||
536 | {0, -2, 0, -3, 3, 0, 1,-1}, | 540 | {0, -2, 0, -3, 3, 0, 1,-1}, |
537 | }; | 541 | }; |
538 | 542 | ||
543 | #if 0 | ||
539 | static opus_val32 l1_metric(const celt_norm *tmp, int N, int LM, int width) | 544 | static opus_val32 l1_metric(const celt_norm *tmp, int N, int LM, int width) |
540 | { | 545 | { |
541 | int i, j; | 546 | int i, j; |
@@ -737,6 +742,7 @@ static void tf_encode(int start, int end, int isTransient, int *tf_res, int LM, | |||
737 | tf_res[i] = tf_select_table[LM][4*isTransient+2*tf_select+tf_res[i]]; | 742 | tf_res[i] = tf_select_table[LM][4*isTransient+2*tf_select+tf_res[i]]; |
738 | /*printf("%d %d ", isTransient, tf_select); for(i=0;i<end;i++)printf("%d ", tf_res[i]);printf("\n");*/ | 743 | /*printf("%d %d ", isTransient, tf_select); for(i=0;i<end;i++)printf("%d ", tf_res[i]);printf("\n");*/ |
739 | } | 744 | } |
745 | #endif | ||
740 | 746 | ||
741 | static void tf_decode(int start, int end, int isTransient, int *tf_res, int LM, ec_dec *dec) | 747 | static void tf_decode(int start, int end, int isTransient, int *tf_res, int LM, ec_dec *dec) |
742 | { | 748 | { |
@@ -788,6 +794,7 @@ static void init_caps(const CELTMode *m,int *cap,int LM,int C) | |||
788 | } | 794 | } |
789 | } | 795 | } |
790 | 796 | ||
797 | #if 0 | ||
791 | static int alloc_trim_analysis(const CELTMode *m, const celt_norm *X, | 798 | static int alloc_trim_analysis(const CELTMode *m, const celt_norm *X, |
792 | const opus_val16 *bandLogE, int end, int LM, int C, int N0) | 799 | const opus_val16 *bandLogE, int end, int LM, int C, int N0) |
793 | { | 800 | { |
@@ -1901,6 +1908,7 @@ bad_request: | |||
1901 | va_end(ap); | 1908 | va_end(ap); |
1902 | return OPUS_UNIMPLEMENTED; | 1909 | return OPUS_UNIMPLEMENTED; |
1903 | } | 1910 | } |
1911 | #endif | ||
1904 | 1912 | ||
1905 | /**********************************************************************/ | 1913 | /**********************************************************************/ |
1906 | /* */ | 1914 | /* */ |