Lines Matching refs:eBands
91 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()
136 if (eBands[i] < i) in compute_ebands()
137 eBands[i] = 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()
144 if (eBands[i+1]-eBands[i] < eBands[i]-eBands[i-1]) in compute_ebands()
146 eBands[i] -= (2*eBands[i]-eBands[i-1]-eBands[i+1])/2; in compute_ebands()
151 if(eBands[i+1]>eBands[j]) in compute_ebands()
152 eBands[++j]=eBands[i+1]; in compute_ebands()
158 celt_assert(eBands[i]-eBands[i-1]<=eBands[*nbEBands]-eBands[*nbEBands-1]); in compute_ebands()
160 celt_assert(eBands[i+1]-eBands[i]<=2*(eBands[i]-eBands[i-1])); in compute_ebands()
163 return eBands; in compute_ebands()
194 … if (400*(opus_int32)eband5ms[k] > mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize) in compute_allocation_table()
201 … a1 = mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize - 400*(opus_int32)eband5ms[k-1]; in compute_allocation_table()
202 … a0 = 400*(opus_int32)eband5ms[k] - mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize; in compute_allocation_table()
345 mode->eBands = compute_ebands(Fs, mode->shortMdctSize, res, &mode->nbEBands); in opus_custom_mode_create()
346 if (mode->eBands==NULL) in opus_custom_mode_create()
351 if ((mode->eBands[mode->nbEBands] - mode->eBands[mode->nbEBands-1])<<LM > in opus_custom_mode_create()
358 while (mode->eBands[mode->effEBands] > mode->shortMdctSize) in opus_custom_mode_create()
386 logN[i] = log2_frac(mode->eBands[i+1]-mode->eBands[i], BITRES); in opus_custom_mode_create()
425 opus_free((opus_int16*)mode->eBands); in opus_custom_mode_destroy()