Lines Matching refs:dist2
585 float dist1 = 0.0f, dist2 = 0.0f, noise_amp;
663 dist2 += band->energy/(band->spread*band->spread)*lambda*dist_thresh/band->threshold;
666 dist2 += 5;
668 dist2 += 9;
672 if (sce->zeroes[w*16+g] || !sce->band_alt[w*16+g] || (energy_ratio > 0.85f && energy_ratio < 1.25f && dist2 < dist1)) {
801 float dist1 = 0.0f, dist2 = 0.0f;
852 dist2 += quantize_band_cost(s, M,
858 dist2 += quantize_band_cost(s, S,
867 dist2 -= b3+b4;
869 cpe->ms_mask[w*16+g] = dist2 <= dist1 && B1 < B0;