Searched refs:nbEBands (Results 1 – 9 of 9) sorted by relevance
/external/libopus/celt/ |
D | modes.c | 89 static opus_int16 *compute_ebands(opus_int32 Fs, int frame_size, int res, int *nbEBands) in compute_ebands() argument 97 *nbEBands = sizeof(eband5ms)/sizeof(eband5ms[0])-1; in compute_ebands() 98 eBands = opus_alloc(sizeof(opus_int16)*(*nbEBands+1)); in compute_ebands() 99 for (i=0;i<*nbEBands+1;i++) in compute_ebands() 115 *nbEBands = low+high; in compute_ebands() 116 eBands = opus_alloc(sizeof(opus_int16)*(*nbEBands+2)); in compute_ebands() 135 for (i=0;i<*nbEBands;i++) in compute_ebands() 139 eBands[*nbEBands] = (bark_freq[nBark]+res)/(2*res)*2; in compute_ebands() 140 if (eBands[*nbEBands] > frame_size) in compute_ebands() 141 eBands[*nbEBands] = frame_size; in compute_ebands() [all …]
|
D | quant_bands.c | 191 x = eBands[i+c*m->nbEBands]; in quant_coarse_energy_impl() 192 oldE = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]); in quant_coarse_energy_impl() 198 SUB32((opus_val32)oldEBands[i+c*m->nbEBands],max_decay))); in quant_coarse_energy_impl() 203 decay_bound = MAX16(-QCONST16(28.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]) - max_decay; in quant_coarse_energy_impl() 246 error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(qi,DB_SHIFT); in quant_coarse_energy_impl() 254 oldEBands[i+c*m->nbEBands] = PSHR32(tmp, 7); in quant_coarse_energy_impl() 279 new_distortion = loss_distortion(eBands, oldEBands, start, effEnd, m->nbEBands, C); in quant_coarse_energy() 298 ALLOC(oldEBands_intra, C*m->nbEBands, opus_val16); in quant_coarse_energy() 299 ALLOC(error_intra, C*m->nbEBands, opus_val16); in quant_coarse_energy() 300 OPUS_COPY(oldEBands_intra, oldEBands, C*m->nbEBands); in quant_coarse_energy() [all …]
|
D | celt_decoder.c | 110 + 4*2*mode->nbEBands*sizeof(opus_val16); in opus_custom_decoder_get_size() 343 int nbEBands; in celt_decode_lost() local 354 nbEBands = mode->nbEBands; in celt_decode_lost() 364 oldLogE = oldBandE + 2*nbEBands; in celt_decode_lost() 365 oldLogE2 = oldLogE + 2*nbEBands; in celt_decode_lost() 366 backgroundLogE = oldLogE2 + 2*nbEBands; in celt_decode_lost() 400 oldBandE[c*nbEBands+i] -= decay; in celt_decode_lost() 697 int nbEBands; local 703 nbEBands = mode->nbEBands; 713 oldLogE = oldBandE + 2*nbEBands; [all …]
|
D | celt_encoder.c | 140 …+ 3*channels*mode->nbEBands*sizeof(opus_val16); /* opus_val16 oldBandE[channels*mode->nbEBands]; … in opus_custom_encoder_get_size() 381 int patch_transient_decision(opus_val16 *newE, opus_val16 *oldE, int nbEBands, in patch_transient_decision() argument 395 spread_old[0] = MAX16(oldE[0],oldE[nbEBands]); in patch_transient_decision() 398 MAX16(oldE[i],oldE[i+nbEBands])); in patch_transient_decision() 817 diff += bandLogE[i+c*m->nbEBands]*(opus_int32)(2+2*i-end); in alloc_trim_analysis() 890 int nbEBands, int start, int end, int C, int *offsets, int lsb_depth, const opus_int16 *logN, in dynalloc_analysis() argument 900 ALLOC(follower, C*nbEBands, opus_val16); in dynalloc_analysis() 901 ALLOC(noise_floor, C*nbEBands, opus_val16); in dynalloc_analysis() 902 for (i=0;i<nbEBands;i++) in dynalloc_analysis() 917 maxDepth = MAX16(maxDepth, bandLogE[c*nbEBands+i]-noise_floor[i]); in dynalloc_analysis() [all …]
|
D | rate.c | 87 cindex = (opus_int16 *)opus_alloc(sizeof(cache->index[0])*m->nbEBands*(LM+2)); in compute_pulse_cache() 93 for (j=0;j<m->nbEBands;j++) in compute_pulse_cache() 97 cindex[i*m->nbEBands+j] = -1; in compute_pulse_cache() 102 for (n=0;n<m->nbEBands && (k!=i || n<j);n++) in compute_pulse_cache() 106 cindex[i*m->nbEBands+j] = cindex[k*m->nbEBands+n]; in compute_pulse_cache() 111 if (cache->index[i*m->nbEBands+j] == -1 && N!=0) in compute_pulse_cache() 119 cindex[i*m->nbEBands+j] = curr; in compute_pulse_cache() 143 cache->caps = cap = (unsigned char *)opus_alloc(sizeof(cache->caps[0])*(LM+1)*2*m->nbEBands); in compute_pulse_cache() 148 for (j=0;j<m->nbEBands;j++) in compute_pulse_cache() 183 pcache = bits + cindex[(LM0+1)*m->nbEBands+j]; in compute_pulse_cache() [all …]
|
D | bands.c | 120 bandE[i+c*m->nbEBands] = EPSILON+VSHR32(EXTEND32(celt_sqrt(sum)),-shift); in compute_band_energies() 122 bandE[i+c*m->nbEBands] = EPSILON; in compute_band_energies() 141 shift = celt_zlog2(bandE[i+c*m->nbEBands])-13; in normalise_bands() 142 E = VSHR32(bandE[i+c*m->nbEBands], shift); in normalise_bands() 165 bandE[i+c*m->nbEBands] = celt_sqrt(sum); in compute_band_energies() 182 opus_val16 g = 1.f/(1e-27f+bandE[i+c*m->nbEBands]); in normalise_bands() 216 lg = ADD16(bandLogE[i+c*m->nbEBands], SHL16((opus_val16)eMeans[i],6)); in denormalise_bands() 300 prev1 = prev1logE[c*m->nbEBands+i]; in anti_collapse() 301 prev2 = prev2logE[c*m->nbEBands+i]; in anti_collapse() 304 prev1 = MAX16(prev1,prev1logE[m->nbEBands+i]); in anti_collapse() [all …]
|
D | rate.h | 60 cache = m->cache.bits + m->cache.index[LM*m->nbEBands+band]; in bits2pulses() 85 cache = m->cache.bits + m->cache.index[LM*m->nbEBands+band]; in pulses2bits()
|
D | celt.c | 185 for (i=0;i<m->nbEBands;i++) in init_caps() 189 cap[i] = (m->cache.caps[m->nbEBands*(2*LM+C-1)+i]+64)*C*N>>2; in init_caps()
|
D | modes.h | 64 int nbEBands; member
|