From 4b4cee1c2cb977473923f16aee57dbfe29ece36e Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Wed, 6 Jan 2016 02:02:16 -0500 Subject: wip --- celt/bands.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 60 insertions(+), 6 deletions(-) diff --git a/celt/bands.c b/celt/bands.c index f5a88113..5eb20f47 100644 --- a/celt/bands.c +++ b/celt/bands.c @@ -1330,7 +1330,13 @@ static unsigned quant_band_stereo(struct band_ctx *ctx, celt_norm *X, celt_norm return cm; } - +static double celt_dist(opus_val16 *x, opus_val16 *y, int N) +{ + double sum = 0; + int i; + for (i=0;i