Lines Matching refs:Fs
90 static opus_int16 *compute_ebands(opus_int32 Fs, int frame_size, int res, int *nbEBands) in compute_ebands() argument
96 if (Fs == 400*(opus_int32)frame_size) in compute_ebands()
106 if (bark_freq[nBark+1]*2 >= Fs) in compute_ebands()
179 if (mode->Fs == 400*(opus_int32)mode->shortMdctSize) in compute_allocation_table()
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()
224 CELTMode *opus_custom_mode_create(opus_int32 Fs, int frame_size, int *error) in opus_custom_mode_create() argument
247 if (Fs == static_mode_list[i]->Fs && in opus_custom_mode_create()
266 if (Fs < 8000 || Fs > 96000) in opus_custom_mode_create()
279 if ((opus_int32)frame_size*1000 < Fs) in opus_custom_mode_create()
286 if ((opus_int32)frame_size*75 >= Fs && (frame_size%16)==0) in opus_custom_mode_create()
289 } else if ((opus_int32)frame_size*150 >= Fs && (frame_size%8)==0) in opus_custom_mode_create()
292 } else if ((opus_int32)frame_size*300 >= Fs && (frame_size%4)==0) in opus_custom_mode_create()
301 if ((opus_int32)(frame_size>>LM)*300 > Fs) in opus_custom_mode_create()
311 mode->Fs = Fs; in opus_custom_mode_create()
316 if(Fs < 12000) /* 8 kHz */ in opus_custom_mode_create()
322 } else if(Fs < 24000) /* 16 kHz */ in opus_custom_mode_create()
328 } else if(Fs < 40000) /* 32 kHz */ in opus_custom_mode_create()
345 res = (mode->Fs+mode->shortMdctSize)/(2*mode->shortMdctSize); in opus_custom_mode_create()
347 mode->eBands = compute_ebands(Fs, mode->shortMdctSize, res, &mode->nbEBands); in opus_custom_mode_create()