/external/chromium_org/third_party/opus/src/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() 696 int nbEBands; local 702 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() 372 int patch_transient_decision(opus_val16 *newE, opus_val16 *oldE, int nbEBands, in patch_transient_decision() argument 386 spread_old[0] = MAX16(oldE[0],oldE[nbEBands]); in patch_transient_decision() 389 MAX16(oldE[i],oldE[i+nbEBands])); in patch_transient_decision() 806 diff += bandLogE[i+c*m->nbEBands]*(opus_int32)(2+2*i-end); in alloc_trim_analysis() 878 int nbEBands, int start, int end, int C, int *offsets, int lsb_depth, const opus_int16 *logN, in dynalloc_analysis() argument 888 ALLOC(follower, C*nbEBands, opus_val16); in dynalloc_analysis() 889 ALLOC(noise_floor, C*nbEBands, opus_val16); in dynalloc_analysis() 890 for (i=0;i<nbEBands;i++) in dynalloc_analysis() 905 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() 284 prev1 = prev1logE[c*m->nbEBands+i]; in anti_collapse() 285 prev2 = prev2logE[c*m->nbEBands+i]; in anti_collapse() 288 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 | modes.h | 64 int nbEBands; member
|
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()
|
/external/chromium_org/third_party/opus/src/celt/dump_modes/ |
D | dump_modes.c | 81 …intf (file, "static const opus_int16 eBands%d_%d[%d] = {\n", mode->Fs, mdctSize, mode->nbEBands+2); in dump_modes() 82 for (j=0;j<mode->nbEBands+2;j++) in dump_modes() 102 …t unsigned char allocVectors%d_%d[%d] = {\n", mode->Fs, mdctSize, mode->nbEBands*mode->nbAllocVect… in dump_modes() 105 for (k=0;k<mode->nbEBands;k++) in dump_modes() 106 fprintf (file, "%2d, ", mode->allocVectors[j*mode->nbEBands+k]); in dump_modes() 116 fprintf (file, "static const opus_int16 logN%d[%d] = {\n", framerate, mode->nbEBands); in dump_modes() 117 for (j=0;j<mode->nbEBands;j++) in dump_modes() 126 …atic const opus_int16 cache_index%d[%d] = {\n", mode->Fs/mdctSize, (mode->maxLM+2)*mode->nbEBands); in dump_modes() 127 for (j=0;j<mode->nbEBands*(mode->maxLM+2);j++) in dump_modes() 134 … const unsigned char cache_caps%d[%d] = {\n", mode->Fs/mdctSize, (mode->maxLM+1)*2*mode->nbEBands); in dump_modes() [all …]
|