Home
last modified time | relevance | path

Searched refs:WSIZE (Results 1 – 1 of 1) sorted by relevance

/packages/modules/Bluetooth/system/audio/asrc/
Dasrc_resampler.cc240 static const unsigned WSIZE = 64; member in bluetooth::audio::asrc::SourceAudioHalAsrc::Resampler
242 int32_t win_[2][WSIZE];
267 unsigned wbuf = idx < WSIZE / 2 || idx >= WSIZE + WSIZE / 2; in Upsample()
268 auto w = win_[wbuf] + ((idx + wbuf * WSIZE / 2) % WSIZE) - WSIZE / 2; in Upsample()
276 win_[0][(out_pos_ + WSIZE / 2) % WSIZE] = win_[1][(out_pos_)] = *in; in Upsample()
280 out_pos_ = (out_pos_ + 1) % WSIZE; in Upsample()
304 unsigned wbuf = idx < WSIZE / 2 || idx >= WSIZE + WSIZE / 2; in Downsample()
305 auto w = win_[wbuf] + ((idx + wbuf * WSIZE / 2) % WSIZE) - WSIZE / 2; in Downsample()
313 win_[0][(out_pos_ + WSIZE / 2) % WSIZE] = win_[1][(out_pos_)] = *in; in Downsample()
317 out_pos_ = (out_pos_ + 1) % WSIZE; in Downsample()