Lines Matching refs:nbEBands
89 static opus_int16 *compute_ebands(opus_int32 Fs, int frame_size, int res, int *nbEBands) in compute_ebands() argument
97 *nbEBands = sizeof(eband5ms)/sizeof(eband5ms[0])-1; in compute_ebands()
98 eBands = opus_alloc(sizeof(opus_int16)*(*nbEBands+1)); in compute_ebands()
99 for (i=0;i<*nbEBands+1;i++) in compute_ebands()
115 *nbEBands = low+high; in compute_ebands()
116 eBands = opus_alloc(sizeof(opus_int16)*(*nbEBands+2)); in compute_ebands()
135 for (i=0;i<*nbEBands;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()
142 for (i=1;i<*nbEBands-1;i++) in compute_ebands()
150 for (i=j=0;i<*nbEBands;i++) in compute_ebands()
153 *nbEBands=j; in compute_ebands()
155 for (i=1;i<*nbEBands;i++) in compute_ebands()
158 celt_assert(eBands[i]-eBands[i-1]<=eBands[*nbEBands]-eBands[*nbEBands-1]); in compute_ebands()
173 allocVectors = opus_alloc(sizeof(unsigned char)*(BITALLOC_SIZE*mode->nbEBands)); in compute_allocation_table()
180 for (i=0;i<BITALLOC_SIZE*mode->nbEBands;i++) in compute_allocation_table()
189 for (j=0;j<mode->nbEBands;j++) in compute_allocation_table()
198 allocVectors[i*mode->nbEBands+j] = band_allocation[i*maxBands + maxBands-1]; in compute_allocation_table()
203 allocVectors[i*mode->nbEBands+j] = (a0*band_allocation[i*maxBands+k-1] in compute_allocation_table()
345 mode->eBands = compute_ebands(Fs, mode->shortMdctSize, res, &mode->nbEBands); in opus_custom_mode_create()
351 if ((mode->eBands[mode->nbEBands] - mode->eBands[mode->nbEBands-1])<<LM > in opus_custom_mode_create()
357 mode->effEBands = mode->nbEBands; in opus_custom_mode_create()
381 logN = (opus_int16*)opus_alloc(mode->nbEBands*sizeof(opus_int16)); in opus_custom_mode_create()
385 for (i=0;i<mode->nbEBands;i++) in opus_custom_mode_create()