diff options
author | Nils Wallménius <nils@rockbox.org> | 2012-09-22 12:01:01 +0200 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2012-09-24 15:20:21 +0200 |
commit | f49814214355913458f9f7635561365afa5bc7aa (patch) | |
tree | 08a049b9a379a8010b8c1ee0cc2b213cecf75c8d /lib/rbcodec/codecs/libopus/celt/bands.c | |
parent | c555938ea0da97b2538530c1da9aeae4822bece7 (diff) | |
download | rockbox-f49814214355913458f9f7635561365afa5bc7aa.tar.gz rockbox-f49814214355913458f9f7635561365afa5bc7aa.zip |
opus: #if 0 out some unused code
Change-Id: I16fa9b439f8da5b9b8a4f17040487b9535078ec5
Diffstat (limited to 'lib/rbcodec/codecs/libopus/celt/bands.c')
-rw-r--r-- | lib/rbcodec/codecs/libopus/celt/bands.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libopus/celt/bands.c b/lib/rbcodec/codecs/libopus/celt/bands.c index 6e612980b6..c7cb0d5500 100644 --- a/lib/rbcodec/codecs/libopus/celt/bands.c +++ b/lib/rbcodec/codecs/libopus/celt/bands.c | |||
@@ -73,6 +73,7 @@ static int bitexact_log2tan(int isin,int icos) | |||
73 | -FRAC_MUL16(icos, FRAC_MUL16(icos, -2597) + 7932); | 73 | -FRAC_MUL16(icos, FRAC_MUL16(icos, -2597) + 7932); |
74 | } | 74 | } |
75 | 75 | ||
76 | #if 0 | ||
76 | #ifdef FIXED_POINT | 77 | #ifdef FIXED_POINT |
77 | /* Compute the amplitude (sqrt energy) in each of the bands */ | 78 | /* Compute the amplitude (sqrt energy) in each of the bands */ |
78 | void compute_band_energies(const CELTMode *m, const celt_sig *X, celt_ener *bandE, int end, int C, int M) | 79 | void compute_band_energies(const CELTMode *m, const celt_sig *X, celt_ener *bandE, int end, int C, int M) |
@@ -170,6 +171,7 @@ void normalise_bands(const CELTMode *m, const celt_sig * OPUS_RESTRICT freq, cel | |||
170 | } | 171 | } |
171 | 172 | ||
172 | #endif /* FIXED_POINT */ | 173 | #endif /* FIXED_POINT */ |
174 | #endif | ||
173 | 175 | ||
174 | /* De-normalise the energy to produce the synthesis from the unit-energy bands */ | 176 | /* De-normalise the energy to produce the synthesis from the unit-energy bands */ |
175 | void denormalise_bands(const CELTMode *m, const celt_norm * OPUS_RESTRICT X, celt_sig * OPUS_RESTRICT freq, const celt_ener *bandE, int end, int C, int M) | 177 | void denormalise_bands(const CELTMode *m, const celt_norm * OPUS_RESTRICT X, celt_sig * OPUS_RESTRICT freq, const celt_ener *bandE, int end, int C, int M) |
@@ -390,6 +392,7 @@ static void stereo_merge(celt_norm *X, celt_norm *Y, opus_val16 mid, int N) | |||
390 | } | 392 | } |
391 | } | 393 | } |
392 | 394 | ||
395 | #if 0 | ||
393 | /* Decide whether we should spread the pulses in the current frame */ | 396 | /* Decide whether we should spread the pulses in the current frame */ |
394 | int spreading_decision(const CELTMode *m, celt_norm *X, int *average, | 397 | int spreading_decision(const CELTMode *m, celt_norm *X, int *average, |
395 | int last_decision, int *hf_average, int *tapset_decision, int update_hf, | 398 | int last_decision, int *hf_average, int *tapset_decision, int update_hf, |
@@ -482,6 +485,7 @@ int spreading_decision(const CELTMode *m, celt_norm *X, int *average, | |||
482 | #endif | 485 | #endif |
483 | return decision; | 486 | return decision; |
484 | } | 487 | } |
488 | #endif | ||
485 | 489 | ||
486 | #ifdef MEASURE_NORM_MSE | 490 | #ifdef MEASURE_NORM_MSE |
487 | 491 | ||