From f3cca9455827a1776f22f95a0213595a0555ee22 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Thu, 18 Jan 2018 16:21:38 -0500 Subject: move to celt_encoder.c --- celt/bands.c | 40 ---------------------------------------- celt/bands.h | 2 -- celt/celt_encoder.c | 42 ++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 40 insertions(+), 44 deletions(-) diff --git a/celt/bands.c b/celt/bands.c index 8f0732c0..950b727c 100644 --- a/celt/bands.c +++ b/celt/bands.c @@ -192,46 +192,6 @@ void normalise_bands(const CELTMode *m, const celt_sig * OPUS_RESTRICT freq, cel #endif /* FIXED_POINT */ -static opus_val32 tf_metric(const celt_norm *tmp, int N, int LM) -{ - int i, j; - opus_val32 L2; - opus_val32 L_1; - L_1=0; - L2=0; - for (i=0;i<1<>LM;j++) - sum = MAC16_16(sum, tmp[(j<eBands; - N = m->shortMdctSize<0)+(i>13)+(i>17); - int e = (i!=end-1) ? (2 + (i>13) + (i>17)) : 0; - band_transient[i] += tf_metric(&X[c*N + ((eBands[i] - b)<>LM;j++) + sum = MAC16_16(sum, tmp[(j<eBands; + N = m->shortMdctSize<0)+(i>13)+(i>17); + int e = (i!=end-1) ? (2 + (i>13) + (i>17)) : 0; + band_transient[i] += band_transient_metric(&X[c*N + ((eBands[i] - b)<complexity > -4) { VARDECL(celt_norm, X2); @@ -1842,7 +1880,7 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm, compute_band_energies(mode, freq, bandE2, effEnd, C, LM, st->arch); ALLOC(X2, C*N, celt_norm); /**< Interleaved normalised MDCTs */ normalise_bands(mode, freq, X2, bandE2, effEnd, C, M); - tf_hack(mode, X2, band_transient, effEnd, C, LM); + tf_extra_analysis(mode, X2, band_transient, effEnd, C, LM); } ALLOC(offsets, nbEBands, int); -- cgit v1.2.1