Lines Matching refs:eBands
92 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()
137 if (eBands[i] < i) in compute_ebands()
138 eBands[i] = i; in compute_ebands()
140 eBands[*nbEBands] = (bark_freq[nBark]+res)/(2*res)*2; in compute_ebands()
141 if (eBands[*nbEBands] > frame_size) in compute_ebands()
142 eBands[*nbEBands] = frame_size; in compute_ebands()
145 if (eBands[i+1]-eBands[i] < eBands[i]-eBands[i-1]) in compute_ebands()
147 eBands[i] -= (2*eBands[i]-eBands[i-1]-eBands[i+1])/2; in compute_ebands()
152 if(eBands[i+1]>eBands[j]) in compute_ebands()
153 eBands[++j]=eBands[i+1]; in compute_ebands()
159 celt_assert(eBands[i]-eBands[i-1]<=eBands[*nbEBands]-eBands[*nbEBands-1]); in compute_ebands()
161 celt_assert(eBands[i+1]-eBands[i]<=2*(eBands[i]-eBands[i-1])); in compute_ebands()
164 return eBands; in compute_ebands()
195 … if (400*(opus_int32)eband5ms[k] > mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize) in compute_allocation_table()
202 … a1 = mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize - 400*(opus_int32)eband5ms[k-1]; in compute_allocation_table()
203 … a0 = 400*(opus_int32)eband5ms[k] - mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize; in compute_allocation_table()
347 mode->eBands = compute_ebands(Fs, mode->shortMdctSize, res, &mode->nbEBands); in opus_custom_mode_create()
348 if (mode->eBands==NULL) in opus_custom_mode_create()
353 if ((mode->eBands[mode->nbEBands] - mode->eBands[mode->nbEBands-1])<<LM > in opus_custom_mode_create()
360 while (mode->eBands[mode->effEBands] > mode->shortMdctSize) in opus_custom_mode_create()
388 logN[i] = log2_frac(mode->eBands[i+1]-mode->eBands[i], BITRES); in opus_custom_mode_create()
429 opus_free((opus_int16*)mode->eBands); in opus_custom_mode_destroy()