Lines Matching defs:eBands
91 opus_int16 *eBands;
98 eBands = opus_alloc(sizeof(opus_int16)*(*nbEBands+1));
100 eBands[i] = eband5ms[i];
101 return eBands;
116 eBands = opus_alloc(sizeof(opus_int16)*(*nbEBands+2));
118 if (eBands==NULL)
123 eBands[i] = i;
125 offset = eBands[low-1]*res - bark_freq[lin-1];
131 eBands[i+low] = (target+offset/2+res)/(2*res)*2;
132 offset = eBands[i+low]*res - target;
136 if (eBands[i] < i)
137 eBands[i] = i;
139 eBands[*nbEBands] = (bark_freq[nBark]+res)/(2*res)*2;
140 if (eBands[*nbEBands] > frame_size)
141 eBands[*nbEBands] = frame_size;
144 if (eBands[i+1]-eBands[i] < eBands[i]-eBands[i-1])
146 eBands[i] -= (2*eBands[i]-eBands[i-1]-eBands[i+1])/2;
151 if(eBands[i+1]>eBands[j])
152 eBands[++j]=eBands[i+1];
158 celt_assert(eBands[i]-eBands[i-1]<=eBands[*nbEBands]-eBands[*nbEBands-1]);
160 celt_assert(eBands[i+1]-eBands[i]<=2*(eBands[i]-eBands[i-1]));
163 return eBands;
194 if (400*(opus_int32)eband5ms[k] > mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize)
201 a1 = mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize - 400*(opus_int32)eband5ms[k-1];
202 a0 = 400*(opus_int32)eband5ms[k] - mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize;
345 mode->eBands = compute_ebands(Fs, mode->shortMdctSize, res, &mode->nbEBands);
346 if (mode->eBands==NULL)
351 if ((mode->eBands[mode->nbEBands] - mode->eBands[mode->nbEBands-1])<<LM >
358 while (mode->eBands[mode->effEBands] > mode->shortMdctSize)
386 logN[i] = log2_frac(mode->eBands[i+1]-mode->eBands[i], BITRES);
425 opus_free((opus_int16*)mode->eBands);