From f49814214355913458f9f7635561365afa5bc7aa Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Sat, 22 Sep 2012 12:01:01 +0200 Subject: opus: #if 0 out some unused code Change-Id: I16fa9b439f8da5b9b8a4f17040487b9535078ec5 --- lib/rbcodec/codecs/libopus/celt/bands.c | 4 ++++ lib/rbcodec/codecs/libopus/celt/celt.c | 8 ++++++++ lib/rbcodec/codecs/libopus/celt/kiss_fft.c | 10 ++++++++++ lib/rbcodec/codecs/libopus/celt/mdct.c | 2 ++ lib/rbcodec/codecs/libopus/celt/pitch.c | 2 ++ lib/rbcodec/codecs/libopus/opus_custom.h | 4 ++++ 6 files changed, 30 insertions(+) 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) -FRAC_MUL16(icos, FRAC_MUL16(icos, -2597) + 7932); } +#if 0 #ifdef FIXED_POINT /* Compute the amplitude (sqrt energy) in each of the bands */ 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 } #endif /* FIXED_POINT */ +#endif /* De-normalise the energy to produce the synthesis from the unit-energy bands */ 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) } } +#if 0 /* Decide whether we should spread the pulses in the current frame */ int spreading_decision(const CELTMode *m, celt_norm *X, int *average, 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, #endif return decision; } +#endif #ifdef MEASURE_NORM_MSE 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 { /* opus_val16 oldEBands[], Size = 2*channels*mode->nbEBands */ }; +#if 0 int celt_encoder_get_size(int channels) { CELTMode *mode = opus_custom_mode_create(48000, 960, NULL); @@ -280,6 +281,7 @@ void opus_custom_encoder_destroy(CELTEncoder *st) opus_free(st); } #endif /* CUSTOM_MODES */ +#endif static inline opus_val16 SIG2WORD16(celt_sig x) { @@ -293,6 +295,7 @@ static inline opus_val16 SIG2WORD16(celt_sig x) #endif } +#if 0 static int transient_analysis(const opus_val32 * OPUS_RESTRICT in, int len, int C, int overlap) { @@ -410,6 +413,7 @@ static void compute_mdcts(const CELTMode *mode, int shortBlocks, celt_sig * OPUS } while (++cint: Number of channels * @returns size */ +# if 0 OPUS_CUSTOM_EXPORT_STATIC OPUS_WARN_UNUSED_RESULT int opus_custom_encoder_get_size( const OpusCustomMode *mode, int channels ) OPUS_ARG_NONNULL(1); +#endif /** Creates a new encoder state. Each stream needs its own encoder * state (can't be shared across simultaneous streams). @@ -164,11 +166,13 @@ OPUS_CUSTOM_EXPORT OPUS_WARN_UNUSED_RESULT OpusCustomEncoder *opus_custom_encode * @param [in] channels int: Number of channels * @return OPUS_OK Success or @ref opus_errorcodes */ +#if 0 OPUS_CUSTOM_EXPORT_STATIC int opus_custom_encoder_init( OpusCustomEncoder *st, const OpusCustomMode *mode, int channels ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2); +#endif /** Destroys a an encoder state. * @param[in] st OpusCustomEncoder*: State to be freed. -- cgit v1.2.3