Home
last modified time | relevance | path

Searched refs:eBands (Results 1 – 9 of 9) sorted by relevance

/external/libopus/celt/
Dmodes.c91 opus_int16 *eBands; in compute_ebands() local
98 eBands = opus_alloc(sizeof(opus_int16)*(*nbEBands+1)); in compute_ebands()
100 eBands[i] = eband5ms[i]; in compute_ebands()
101 return eBands; in compute_ebands()
116 eBands = opus_alloc(sizeof(opus_int16)*(*nbEBands+2)); in compute_ebands()
118 if (eBands==NULL) in compute_ebands()
123 eBands[i] = i; in compute_ebands()
125 offset = eBands[low-1]*res - bark_freq[lin-1]; in compute_ebands()
131 eBands[i+low] = (target+offset/2+res)/(2*res)*2; in compute_ebands()
132 offset = eBands[i+low]*res - target; in compute_ebands()
[all …]
Drate.c81 const opus_int16 *eBands = m->eBands; in compute_pulse_cache() local
96 int N = (eBands[j+1]-eBands[j])<<i>>1; in compute_pulse_cache()
104 if (N == (eBands[n+1]-eBands[n])<<k>>1) in compute_pulse_cache()
152 N0 = m->eBands[j+1]-m->eBands[j]; in compute_pulse_cache()
235 max_bits = (4*max_bits/(C*((m->eBands[j+1]-m->eBands[j])<<i)))-64; in compute_pulse_cache()
336 percoeff = left/(m->eBands[codedBands]-m->eBands[start]); in interp_bits2pulses()
337 left -= (m->eBands[codedBands]-m->eBands[start])*percoeff; in interp_bits2pulses()
338 rem = IMAX(left-(m->eBands[j]-m->eBands[start]),0); in interp_bits2pulses()
339 band_width = m->eBands[codedBands]-m->eBands[j]; in interp_bits2pulses()
417 percoeff = left/(m->eBands[codedBands]-m->eBands[start]); in interp_bits2pulses()
[all …]
Dbands.c98 const opus_int16 *eBands = m->eBands; in compute_band_energies() local
107 j=M*eBands[i]; do { in compute_band_energies()
110 } while (++j<M*eBands[i+1]); in compute_band_energies()
115 j=M*eBands[i]; do { in compute_band_energies()
118 } while (++j<M*eBands[i+1]); in compute_band_energies()
134 const opus_int16 *eBands = m->eBands; in normalise_bands() local
144 j=M*eBands[i]; do { in normalise_bands()
146 } while (++j<M*eBands[i+1]); in normalise_bands()
156 const opus_int16 *eBands = m->eBands; in compute_band_energies() local
163 for (j=M*eBands[i];j<M*eBands[i+1];j++) in compute_band_energies()
[all …]
Dcelt_encoder.c570 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()
584 narrow = (m->eBands[i+1]-m->eBands[i])==1; in tf_analysis()
586 tmp[j] = X[tf_chan*N0 + j+(m->eBands[i]<<LM)]; in tf_analysis()
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()
868 for (j=m->eBands[i]<<LM;j<m->eBands[i+1]<<LM;j++) 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()
[all …]
Dquant_bands.c142 static opus_val32 loss_distortion(const opus_val16 *eBands, opus_val16 *oldEBands, int start, int e… in loss_distortion() argument
149 opus_val16 d = SUB16(SHR16(eBands[i+c*len], 3), SHR16(oldEBands[i+c*len], 3)); in loss_distortion()
157 const opus_val16 *eBands, opus_val16 *oldEBands, in quant_coarse_energy_impl() argument
191 x = eBands[i+c*m->nbEBands]; in quant_coarse_energy_impl()
262 const opus_val16 *eBands, opus_val16 *oldEBands, opus_uint32 budget, in quant_coarse_energy() argument
279 new_distortion = loss_distortion(eBands, oldEBands, start, effEnd, m->nbEBands, C); in quant_coarse_energy()
304 badness1 = quant_coarse_energy_impl(m, start, end, eBands, oldEBands_intra, budget, in quant_coarse_energy()
335 badness2 = quant_coarse_energy_impl(m, start, end, eBands, oldEBands, budget, in quant_coarse_energy()
Dquant_bands.h48 celt_ener *eBands, const opus_val16 *oldEBands, int C);
51 const opus_val16 *eBands, opus_val16 *oldEBands, opus_uint32 budget,
Dcelt_decoder.c349 const opus_int16 *eBands; in celt_decode_lost() local
356 eBands = mode->eBands; in celt_decode_lost()
412 boffs = N*c+(eBands[i]<<LM); in celt_decode_lost()
413 blen = (eBands[i+1]-eBands[i])<<LM; in celt_decode_lost()
427 int bound = eBands[effEnd]<<LM; in celt_decode_lost()
699 const opus_int16 *eBands; local
705 eBands = mode->eBands;
854 width = C*(eBands[i+1]-eBands[i])<<LM;
931 int bound = M*eBands[effEnd];
Dcelt.c188 N=(m->eBands[i+1]-m->eBands[i])<<LM; in init_caps()
Dmodes.h67 const opus_int16 *eBands; /**< Definition for each "pseudo-critical band" */ member