Lines Matching refs:nbEBands
139 …+ 3*channels*mode->nbEBands*sizeof(opus_val16); /* opus_val16 oldBandE[channels*mode->nbEBands]; … in opus_custom_encoder_get_size()
378 static int patch_transient_decision(opus_val16 *newE, opus_val16 *oldE, int nbEBands, in patch_transient_decision() argument
392 spread_old[start] = MAX16(oldE[start],oldE[start+nbEBands]); in patch_transient_decision()
395 MAX16(oldE[i],oldE[i+nbEBands])); in patch_transient_decision()
404 x1 = MAX16(0, newE[i + c*nbEBands]); in patch_transient_decision()
807 diff += bandLogE[i+c*m->nbEBands]*(opus_int32)(2+2*i-end); in alloc_trim_analysis()
931 int nbEBands, int start, int end, int C, int *offsets, int lsb_depth, const opus_int16 *logN, in dynalloc_analysis() argument
941 ALLOC(follower, C*nbEBands, opus_val16); in dynalloc_analysis()
942 ALLOC(noise_floor, C*nbEBands, opus_val16); in dynalloc_analysis()
943 OPUS_CLEAR(offsets, nbEBands); in dynalloc_analysis()
957 maxDepth = MAX16(maxDepth, bandLogE[c*nbEBands+i]-noise_floor[i]); in dynalloc_analysis()
968 f = &follower[c*nbEBands]; in dynalloc_analysis()
969 f[0] = bandLogE2[c*nbEBands]; in dynalloc_analysis()
975 if (bandLogE2[c*nbEBands+i] > bandLogE2[c*nbEBands+i-1]+QCONST16(.5f,DB_SHIFT)) in dynalloc_analysis()
977 f[i] = MIN16(f[i-1]+QCONST16(1.5f,DB_SHIFT), bandLogE2[c*nbEBands+i]); in dynalloc_analysis()
980 f[i] = MIN16(f[i], MIN16(f[i+1]+QCONST16(2.f,DB_SHIFT), bandLogE2[c*nbEBands+i])); in dynalloc_analysis()
987 f[i] = MAX16(f[i], median_of_5(&bandLogE2[c*nbEBands+i-2])-offset); in dynalloc_analysis()
988 tmp = median_of_3(&bandLogE2[c*nbEBands])-offset; in dynalloc_analysis()
991 tmp = median_of_3(&bandLogE2[c*nbEBands+end-3])-offset; in dynalloc_analysis()
1003 … follower[nbEBands+i] = MAX16(follower[nbEBands+i], follower[ i]-QCONST16(4.f,DB_SHIFT)); in dynalloc_analysis()
1004 … follower[ i] = MAX16(follower[ i], follower[nbEBands+i]-QCONST16(4.f,DB_SHIFT)); in dynalloc_analysis()
1005 … = HALF16(MAX16(0, bandLogE[i]-follower[i]) + MAX16(0, bandLogE[nbEBands+i]-follower[nbEBands+i])); in dynalloc_analysis()
1204 int nbEBands; in compute_vbr() local
1207 nbEBands = mode->nbEBands; in compute_vbr()
1210 coded_bands = lastCodedBands ? lastCodedBands : nbEBands; in compute_vbr()
1274 bins = eBands[nbEBands-2]<<LM; in compute_vbr()
1370 int nbEBands; in celt_encode_with_ec() local
1384 nbEBands = mode->nbEBands; in celt_encode_with_ec()
1410 oldLogE = oldBandE + CC*nbEBands; in celt_encode_with_ec()
1411 oldLogE2 = oldLogE + CC*nbEBands; in celt_encode_with_ec()
1605 ALLOC(bandE,nbEBands*CC, celt_ener); in celt_encode_with_ec()
1606 ALLOC(bandLogE,nbEBands*CC, opus_val16); in celt_encode_with_ec()
1609 ALLOC(bandLogE2, C*nbEBands, opus_val16); in celt_encode_with_ec()
1615 for (i=0;i<C*nbEBands;i++) in celt_encode_with_ec()
1634 ALLOC(surround_dynalloc, C*nbEBands, opus_val16); in celt_encode_with_ec()
1651 mask = MAX16(MIN16(st->energy_mask[nbEBands*c+i], in celt_encode_with_ec()
1676 unmask = MAX16(st->energy_mask[i], st->energy_mask[nbEBands+i]); in celt_encode_with_ec()
1720 follow = MAX16(follow, bandLogE[i+nbEBands]-offset); in celt_encode_with_ec()
1734 OPUS_COPY(bandLogE2, bandLogE, C*nbEBands); in celt_encode_with_ec()
1741 if (patch_transient_decision(bandLogE, oldBandE, nbEBands, start, end, C)) in celt_encode_with_ec()
1749 for (i=0;i<C*nbEBands;i++) in celt_encode_with_ec()
1763 ALLOC(tf_res, nbEBands, int); in celt_encode_with_ec()
1787 ALLOC(error, C*nbEBands, opus_val16); in celt_encode_with_ec()
1833 ALLOC(offsets, nbEBands, int); in celt_encode_with_ec()
1835 maxDepth = dynalloc_analysis(bandLogE, bandLogE2, nbEBands, start, end, C, offsets, in celt_encode_with_ec()
1841 ALLOC(cap, nbEBands, int); in celt_encode_with_ec()
1998 ALLOC(fine_quant, nbEBands, int); in celt_encode_with_ec()
1999 ALLOC(pulses, nbEBands, int); in celt_encode_with_ec()
2000 ALLOC(fine_priority, nbEBands, int); in celt_encode_with_ec()
2037 ALLOC(collapse_masks, C*nbEBands, unsigned char); in celt_encode_with_ec()
2055 for (i=0;i<C*nbEBands;i++) in celt_encode_with_ec()
2114 OPUS_COPY(&oldBandE[nbEBands], oldBandE, nbEBands); in celt_encode_with_ec()
2119 OPUS_COPY(oldLogE2, oldLogE, CC*nbEBands); in celt_encode_with_ec()
2120 OPUS_COPY(oldLogE, oldBandE, CC*nbEBands); in celt_encode_with_ec()
2122 for (i=0;i<CC*nbEBands;i++) in celt_encode_with_ec()
2130 oldBandE[c*nbEBands+i]=0; in celt_encode_with_ec()
2131 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT); in celt_encode_with_ec()
2133 for (i=end;i<nbEBands;i++) in celt_encode_with_ec()
2135 oldBandE[c*nbEBands+i]=0; in celt_encode_with_ec()
2136 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT); in celt_encode_with_ec()
2251 if (value<0 || value>=st->mode->nbEBands) in opus_custom_encoder_ctl()
2259 if (value<1 || value>st->mode->nbEBands) in opus_custom_encoder_ctl()
2335 oldLogE = oldBandE + st->channels*st->mode->nbEBands; in opus_custom_encoder_ctl()
2336 oldLogE2 = oldLogE + st->channels*st->mode->nbEBands; in opus_custom_encoder_ctl()
2340 for (i=0;i<st->channels*st->mode->nbEBands;i++) in opus_custom_encoder_ctl()