• Home
  • Raw
  • Download

Lines Matching refs:LM

420                           celt_sig * OPUS_RESTRICT out, int C, int CC, int LM, int upsample)  in compute_mdcts()  argument
434 N = mode->shortMdctSize<<LM; in compute_mdcts()
435 shift = mode->maxLM-LM; in compute_mdcts()
535 static opus_val32 l1_metric(const celt_norm *tmp, int N, int LM, opus_val16 bias) in l1_metric() argument
543 L1 = MAC16_32_Q15(L1, LM*bias, L1); in l1_metric()
549 int *tf_res, int lambda, celt_norm *X, int N0, int LM, in tf_analysis() argument
570 ALLOC(tmp, (m->eBands[len]-m->eBands[len-1])<<LM, celt_norm); in tf_analysis()
571 ALLOC(tmp_1, (m->eBands[len]-m->eBands[len-1])<<LM, celt_norm); in tf_analysis()
582 N = (m->eBands[i+1]-m->eBands[i])<<LM; in tf_analysis()
586 tmp[j] = X[tf_chan*N0 + j+(m->eBands[i]<<LM)]; in tf_analysis()
591 L1 = l1_metric(tmp, N, isTransient ? LM : 0, bias); in tf_analysis()
598 haar1(tmp_1, N>>LM, 1<<LM); in tf_analysis()
599 L1 = l1_metric(tmp_1, N, LM+1, bias); in tf_analysis()
607 for (k=0;k<LM+!(isTransient||narrow);k++) in tf_analysis()
612 B = (LM-k-1); in tf_analysis()
632 *tf_sum += (isTransient ? LM : 0) - metric[i]/2; in tf_analysis()
635 if (narrow && (metric[i]==0 || metric[i]==-2*LM)) in tf_analysis()
651 cost0 = curr0 + abs(metric[i]-2*tf_select_table[LM][4*isTransient+2*sel+0]); in tf_analysis()
652 cost1 = curr1 + abs(metric[i]-2*tf_select_table[LM][4*isTransient+2*sel+1]); in tf_analysis()
690 cost0 = curr0 + abs(metric[i]-2*tf_select_table[LM][4*isTransient+2*tf_select+0]); in tf_analysis()
691 cost1 = curr1 + abs(metric[i]-2*tf_select_table[LM][4*isTransient+2*tf_select+1]); in tf_analysis()
713 static void tf_encode(int start, int end, int isTransient, int *tf_res, int LM, int tf_select, ec_e… in tf_encode() argument
725 tf_select_rsv = LM>0 && tell+logp+1 <= budget; in tf_encode()
743 tf_select_table[LM][4*isTransient+0+tf_changed]!= in tf_encode()
744 tf_select_table[LM][4*isTransient+2+tf_changed]) in tf_encode()
749 tf_res[i] = tf_select_table[LM][4*isTransient+2*tf_select+tf_res[i]]; in tf_encode()
755 const opus_val16 *bandLogE, int end, int LM, int C, int N0, in alloc_trim_analysis() argument
774 for (j=m->eBands[i]<<LM;j<m->eBands[i+1]<<LM;j++) in alloc_trim_analysis()
785 for (j=m->eBands[i]<<LM;j<m->eBands[i+1]<<LM;j++) in alloc_trim_analysis()
858 int LM, int N0) in stereo_analysis() argument
868 for (j=m->eBands[i]<<LM;j<m->eBands[i+1]<<LM;j++) in stereo_analysis()
883 if (LM<=1) in stereo_analysis()
885 return MULT16_32_Q15((m->eBands[13]<<(LM+1))+thetas, sumMS) in stereo_analysis()
886 > MULT16_32_Q15(m->eBands[13]<<(LM+1), sumLR); in stereo_analysis()
891 int isTransient, int vbr, int constrained_vbr, const opus_int16 *eBands, int LM, in dynalloc_analysis() argument
920 if (effectiveBytes > 50 && LM>=1 && !lfe) in dynalloc_analysis()
975 width = C*(eBands[i+1]-eBands[i])<<LM; in dynalloc_analysis()
1133 int LM, opus_int32 bitrate, int lastCodedBands, int C, int intensity, in compute_vbr() argument
1151 coded_bins = eBands[coded_bands]<<LM; in compute_vbr()
1153 coded_bins += eBands[IMIN(intensity, coded_bands)]<<LM; in compute_vbr()
1169 coded_stereo_dof = (eBands[coded_stereo_bands]<<LM)-coded_stereo_bands; in compute_vbr()
1178 target += tot_boost-(16<<LM); in compute_vbr()
1211 bins = eBands[nbEBands-2]<<LM; in compute_vbr()
1273 int LM, M; in celt_encode_with_ec() local
1327 for (LM=0;LM<=mode->maxLM;LM++) in celt_encode_with_ec()
1328 if (mode->shortMdctSize<<LM==frame_size) in celt_encode_with_ec()
1330 if (LM>mode->maxLM) in celt_encode_with_ec()
1335 M=1<<LM; in celt_encode_with_ec()
1358 compressed[0] |= LM<<3; in celt_encode_with_ec()
1403 equiv_rate = st->bitrate - (40*C+20)*((400>>LM) - 50); in celt_encode_with_ec()
1488 …&& st->complexity >= 5 && !(st->consec_transient && LM!=3 && st->variable_duration==OPUS_FRAMESIZE… in celt_encode_with_ec()
1521 if (LM>0 && ec_tell(enc)+3<=total_bits) in celt_encode_with_ec()
1538 compute_mdcts(mode, 0, in, freq, C, CC, LM, st->upsample); in celt_encode_with_ec()
1542 bandLogE2[i] += HALF16(SHL16(LM, DB_SHIFT)); in celt_encode_with_ec()
1545 compute_mdcts(mode, shortBlocks, in, freq, C, CC, LM, st->upsample); in celt_encode_with_ec()
1642 opus_val16 offset = shortBlocks?HALF16(SHL16(LM, DB_SHIFT)):0; in celt_encode_with_ec()
1667 if (LM>0 && ec_tell(enc)+3<=total_bits && !isTransient && st->complexity>=5 && !st->lfe) in celt_encode_with_ec()
1673 compute_mdcts(mode, shortBlocks, in, freq, C, CC, LM, st->upsample); in celt_encode_with_ec()
1678 bandLogE2[i] += HALF16(SHL16(LM, DB_SHIFT)); in celt_encode_with_ec()
1683 if (LM>0 && ec_tell(enc)+3<=total_bits) in celt_encode_with_ec()
1705 …tf_select = tf_analysis(mode, effEnd, isTransient, tf_res, lambda, X, N, LM, &tf_sum, tf_estimate,… in celt_encode_with_ec()
1718 C, LM, nbAvailableBytes, st->force_intra, in celt_encode_with_ec()
1721 tf_encode(st->start, st->end, isTransient, tf_res, LM, tf_select, enc); in celt_encode_with_ec()
1765 eBands, LM, effectiveBytes, &tot_boost, st->lfe, surround_dynalloc); in celt_encode_with_ec()
1770 init_caps(mode,cap,LM,C); in celt_encode_with_ec()
1782 width = C*(eBands[i+1]-eBands[i])<<LM; in celt_encode_with_ec()
1816 if (LM!=0) in celt_encode_with_ec()
1817 dual_stereo = stereo_analysis(mode, X, LM, N); in celt_encode_with_ec()
1831 … st->end, LM, C, N, &st->analysis, &st->stereo_saving, tf_estimate, st->intensity, surround_trim); in celt_encode_with_ec()
1844 int lm_diff = mode->maxLM - LM; in celt_encode_with_ec()
1848 nbCompressedBytes = IMIN(nbCompressedBytes,1275>>(3-LM)); in celt_encode_with_ec()
1854 target = compute_vbr(mode, &st->analysis, base_target, LM, equiv_rate, in celt_encode_with_ec()
1931 anti_collapse_rsv = isTransient&&LM>=2&&bits>=((LM+2)<<BITRES) ? (1<<BITRES) : 0; in celt_encode_with_ec()
1955 fine_quant, fine_priority, C, LM, enc, 1, st->lastCodedBands, signalBandwidth); in celt_encode_with_ec()
1967 nbCompressedBytes*(8<<BITRES)-anti_collapse_rsv, balance, enc, LM, codedBands, &st->rng); in celt_encode_with_ec()
1992 anti_collapse(mode, X, collapse_masks, LM, C, N, in celt_encode_with_ec()
2019 compute_inv_mdcts(mode, shortBlocks, freq, out_mem, CC, LM); in celt_encode_with_ec()
2027 if (LM!=0) in celt_encode_with_ec()
2045 if (LM!=0) in celt_encode_with_ec()