ref: 2dc27dfa13eb4f2b9cd291852b4e9c9508cd9cb2
parent: ab86a9cca7f891044d64e4ca6c055bc95224d773
author: Jean-Marc Valin <[email protected]>
date: Wed Nov 13 14:35:43 EST 2013
Rename preemphasis() to celt_preemphasis() to avoid amrnb symbol clash http://lists.xiph.org/pipermail/opus/2013-November/002372.html
--- a/celt/celt.h
+++ b/celt/celt.h
@@ -194,7 +194,7 @@
int resampling_factor(opus_int32 rate);
-void preemphasis(const opus_val16 * OPUS_RESTRICT pcmp, celt_sig * OPUS_RESTRICT inp,
+void celt_preemphasis(const opus_val16 * OPUS_RESTRICT pcmp, celt_sig * OPUS_RESTRICT inp,
int N, int CC, int upsample, const opus_val16 *coef, celt_sig *mem, int clip);
void comb_filter(opus_val32 *y, opus_val32 *x, int T0, int T1, int N,
--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -450,7 +450,7 @@
}
-void preemphasis(const opus_val16 * OPUS_RESTRICT pcmp, celt_sig * OPUS_RESTRICT inp,
+void celt_preemphasis(const opus_val16 * OPUS_RESTRICT pcmp, celt_sig * OPUS_RESTRICT inp,
int N, int CC, int upsample, const opus_val16 *coef, celt_sig *mem, int clip)
{
int i;
@@ -1452,7 +1452,7 @@
enc->nbits_total+=tell-ec_tell(enc);
}
c=0; do {
- preemphasis(pcm+c, in+c*(N+st->overlap)+st->overlap, N, CC, st->upsample,
+ celt_preemphasis(pcm+c, in+c*(N+st->overlap)+st->overlap, N, CC, st->upsample,
mode->preemph, st->preemph_memE+c, st->clip);
} while (++c<CC);
--- a/src/opus_multistream_encoder.c
+++ b/src/opus_multistream_encoder.c
@@ -256,7 +256,7 @@
{
OPUS_COPY(in, mem+c*overlap, overlap);
(*copy_channel_in)(x, 1, pcm, channels, c, len);
- preemphasis(x, in+overlap, frame_size, 1, upsample, celt_mode->preemph, preemph_mem+c, 0);
+ celt_preemphasis(x, in+overlap, frame_size, 1, upsample, celt_mode->preemph, preemph_mem+c, 0);
clt_mdct_forward(&celt_mode->mdct, in, freq, celt_mode->window, overlap, celt_mode->maxLM-LM, 1);
if (upsample != 1)
{