Lines Matching refs:LM
95 …mpute_band_energies(const CELTMode *m, const celt_sig *X, celt_ener *bandE, int end, int C, int LM) in compute_band_energies() argument
99 N = m->shortMdctSize<<LM; in compute_band_energies()
107 maxval = celt_maxabs32(&X[c*N+(eBands[i]<<LM)], (eBands[i+1]-eBands[i])<<LM); in compute_band_energies()
110 int shift = celt_ilog2(maxval) - 14 + (((m->logN[i]>>BITRES)+LM+1)>>1); in compute_band_energies()
111 j=eBands[i]<<LM; in compute_band_energies()
117 } while (++j<eBands[i+1]<<LM); in compute_band_energies()
122 } while (++j<eBands[i+1]<<LM); in compute_band_energies()
158 …mpute_band_energies(const CELTMode *m, const celt_sig *X, celt_ener *bandE, int end, int C, int LM) in compute_band_energies() argument
162 N = m->shortMdctSize<<LM; in compute_band_energies()
167 … 1e-27f + celt_inner_prod_c(&X[c*N+(eBands[i]<<LM)], &X[c*N+(eBands[i]<<LM)], (eBands[i+1]-eBands[… in compute_band_energies()
267 void anti_collapse(const CELTMode *m, celt_norm *X_, unsigned char *collapse_masks, int LM, int C, … in anti_collapse() argument
285 depth = celt_udiv(1+pulses[i], (m->eBands[i+1]-m->eBands[i]))>>LM; in anti_collapse()
292 t = N0<<LM; in anti_collapse()
299 sqrt_1 = celt_rsqrt(N0<<LM); in anti_collapse()
328 if (LM==3) in anti_collapse()
336 if (LM==3) in anti_collapse()
341 X = X_+c*size+(m->eBands[i]<<LM); in anti_collapse()
342 for (k=0;k<1<<LM;k++) in anti_collapse()
351 X[(j<<LM)+k] = (seed&0x8000 ? r : -r); in anti_collapse()
358 renormalise_vector(X, N0<<LM, Q15ONE, arch); in anti_collapse()
673 int LM, in compute_theta() argument
700 pulse_cap = m->logN[i]+LM*(1<<BITRES); in compute_theta()
892 int LM, in quant_partition() argument
921 cache = m->cache.bits + m->cache.index[(LM+1)*m->nbEBands+i]; in quant_partition()
922 if (LM != -1 && b > cache[cache[0]]+12 && N>2) in quant_partition()
933 LM -= 1; in quant_partition()
939 LM, 0, &fill); in quant_partition()
958 delta -= delta>>(4-LM); in quant_partition()
961 delta = IMIN(0, delta + (N<<BITRES>>(5-LM))); in quant_partition()
974 lowband, LM, in quant_partition()
980 next_lowband2, LM, in quant_partition()
984 next_lowband2, LM, in quant_partition()
990 lowband, LM, in quant_partition()
995 q = bits2pulses(m, i, LM, b); in quant_partition()
996 curr_bits = pulses2bits(m, i, LM, q); in quant_partition()
1004 curr_bits = pulses2bits(m, i, LM, q); in quant_partition()
1072 int LM, celt_norm *lowband_out, in quant_band() argument
1155 LM, gain, fill); in quant_band()
1204 int LM, celt_norm *lowband_out, in quant_band_stereo() argument
1236 LM, 1, &fill); in quant_band_stereo()
1285 LM, lowband_out, Q15ONE, lowband_scratch, orig_fill); in quant_band_stereo()
1318 lowband, LM, lowband_out, in quant_band_stereo()
1327 NULL, LM, NULL, in quant_band_stereo()
1333 NULL, LM, NULL, in quant_band_stereo()
1341 lowband, LM, lowband_out, in quant_band_stereo()
1367 opus_int32 balance, ec_ctx *ec, int LM, int codedBands, in quant_all_bands() argument
1390 M = 1<<LM; in quant_all_bands()
1500 effective_lowband != -1 ? norm+effective_lowband : NULL, LM, in quant_all_bands()
1503 effective_lowband != -1 ? norm2+effective_lowband : NULL, LM, in quant_all_bands()
1509 effective_lowband != -1 ? norm+effective_lowband : NULL, LM, in quant_all_bands()
1513 effective_lowband != -1 ? norm+effective_lowband : NULL, LM, in quant_all_bands()