Home
last modified time | relevance | path

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

/external/libopus/celt/
Dmodes.c92 opus_int16 *eBands; in compute_ebands() local
99 eBands = opus_alloc(sizeof(opus_int16)*(*nbEBands+1)); in compute_ebands()
101 eBands[i] = eband5ms[i]; in compute_ebands()
102 return eBands; in compute_ebands()
117 eBands = opus_alloc(sizeof(opus_int16)*(*nbEBands+2)); in compute_ebands()
119 if (eBands==NULL) in compute_ebands()
124 eBands[i] = i; in compute_ebands()
126 offset = eBands[low-1]*res - bark_freq[lin-1]; in compute_ebands()
132 eBands[i+low] = (target+offset/2+res)/(2*res)*2; in compute_ebands()
133 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 = celt_udiv(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()
422 percoeff = celt_udiv(left, m->eBands[codedBands]-m->eBands[start]); in interp_bits2pulses()
[all …]
Dbands.c98 const opus_int16 *eBands = m->eBands; in compute_band_energies() local
108 maxval = celt_maxabs32(&X[c*N+(eBands[i]<<LM)], (eBands[i+1]-eBands[i])<<LM); in compute_band_energies()
112 j=eBands[i]<<LM; in compute_band_energies()
118 } while (++j<eBands[i+1]<<LM); in compute_band_energies()
123 } while (++j<eBands[i+1]<<LM); in compute_band_energies()
140 const opus_int16 *eBands = m->eBands; in normalise_bands() local
150 j=M*eBands[i]; do { in normalise_bands()
152 } while (++j<M*eBands[i+1]); in normalise_bands()
162 const opus_int16 *eBands = m->eBands; in compute_band_energies() local
168 …sum = 1e-27f + celt_inner_prod(&X[c*N+(eBands[i]<<LM)], &X[c*N+(eBands[i]<<LM)], (eBands[i+1]-eBan… in compute_band_energies()
[all …]
Dcelt_encoder.c606 ALLOC(tmp, (m->eBands[len]-m->eBands[len-1])<<LM, celt_norm); in tf_analysis()
607 ALLOC(tmp_1, (m->eBands[len]-m->eBands[len-1])<<LM, celt_norm); in tf_analysis()
617 N = (m->eBands[i+1]-m->eBands[i])<<LM; in tf_analysis()
619 narrow = (m->eBands[i+1]-m->eBands[i])==1; in tf_analysis()
620 OPUS_COPY(tmp, &X[tf_chan*N0 + (m->eBands[i]<<LM)], N); in tf_analysis()
813 partial = celt_inner_prod(&X[m->eBands[i]<<LM], &X[N0+(m->eBands[i]<<LM)], in alloc_trim_analysis()
814 (m->eBands[i+1]-m->eBands[i])<<LM, arch); in alloc_trim_analysis()
823 partial = celt_inner_prod(&X[m->eBands[i]<<LM], &X[N0+(m->eBands[i]<<LM)], in alloc_trim_analysis()
824 (m->eBands[i+1]-m->eBands[i])<<LM, arch); in alloc_trim_analysis()
889 for (j=m->eBands[i]<<LM;j<m->eBands[i+1]<<LM;j++) 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.c511 const opus_int16 *eBands; in celt_decode_lost() local
517 eBands = mode->eBands; in celt_decode_lost()
570 boffs = N*c+(eBands[i]<<LM); in celt_decode_lost()
571 blen = (eBands[i+1]-eBands[i])<<LM; in celt_decode_lost()
864 const opus_int16 *eBands; local
871 eBands = mode->eBands;
1028 width = C*(eBands[i+1]-eBands[i])<<LM;
Dmodes.h59 const opus_int16 *eBands; /**< Definition for each "pseudo-critical band" */ member
Dcelt.c278 N=(m->eBands[i+1]-m->eBands[i])<<LM; in init_caps()
/external/libopus/doc/
Dopus_update.patch9 - if (resynth && M*eBands[i]-N >= M*eBands[start] && (update_lowband || lowband_offset==0))
10 + if (resynth && (M*eBands[i]-N >= M*eBands[start] || i==start+1) && (update_lowband || lowban…
17 + n1 = M*(eBands[start+1]-eBands[start]);
18 + n2 = M*(eBands[start+2]-eBands[start+1]);
19 + offset = M*eBands[start];
32 while(M*eBands[--fold_start] > effective_lowband);
34 - while(M*eBands[++fold_end] < effective_lowband+N);
35 + while(++fold_end < i && M*eBands[fold_end] < effective_lowband+N);
48 eBands[i+c*m->nbEBands] = PSHR32(celt_exp2(lg),4);
/external/libopus/celt/dump_modes/
Ddump_modes.c89 fprintf (file, "%d, ", mode->eBands[j]); in dump_modes()