Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/stack/mmc/codec_server/
Da2dp_aac_mmc_encoder.cc152 const int bytes_per_sample = bit_depth / 8; in transcode() local
179 for (int i = 0; i < i_len / bytes_per_sample; ++i) { in transcode()
181 buff += bytes_per_sample; in transcode()
/packages/modules/Bluetooth/system/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc218 int bytes_per_sample; in calc_audiotime_usec() local
222 bytes_per_sample = 1; in calc_audiotime_usec()
225 bytes_per_sample = 2; in calc_audiotime_usec()
228 bytes_per_sample = 3; in calc_audiotime_usec()
231 bytes_per_sample = 4; in calc_audiotime_usec()
234 bytes_per_sample = 4; in calc_audiotime_usec()
238 bytes_per_sample = 2; in calc_audiotime_usec()
243 int)(((int64_t)bytes * (USEC_PER_SEC / (chan_count * bytes_per_sample))) / in calc_audiotime_usec()
/packages/modules/Bluetooth/system/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc212 int bytes_per_sample; in calc_audiotime_usec() local
216 bytes_per_sample = 1; in calc_audiotime_usec()
219 bytes_per_sample = 2; in calc_audiotime_usec()
222 bytes_per_sample = 3; in calc_audiotime_usec()
225 bytes_per_sample = 4; in calc_audiotime_usec()
228 bytes_per_sample = 4; in calc_audiotime_usec()
232 bytes_per_sample = 2; in calc_audiotime_usec()
237 int)(((int64_t)bytes * (USEC_PER_SEC / (chan_count * bytes_per_sample))) / in calc_audiotime_usec()
/packages/modules/Bluetooth/system/bta/le_audio/audio_hal_client/
Daudio_source_hal_client.cc210 int bytes_per_sample = (source_codec_config_.bits_per_sample == 24) in SendAudioData() local
215 source_codec_config_.data_interval_us / 1000 * bytes_per_sample) / in SendAudioData()
/packages/modules/Bluetooth/system/bta/le_audio/
Dclient.cc3343 int bytes_per_sample, size_t frames) { in mono_blend() argument
3345 mono_out.resize(frames * bytes_per_sample); in mono_blend()
3347 if (bytes_per_sample == 2) { in mono_blend()
3357 } else if (bytes_per_sample == 4) { in mono_blend()
3368 log::error("Don't know how to mono blend that {}!", bytes_per_sample); in mono_blend()
3381 uint8_t bytes_per_sample = sw_enc_left->GetNumOfBytesPerSample(); in PrepareAndSendToTwoCises() local
3382 if (data.size() < bytes_per_sample * 2 /* channels */ * in PrepareAndSendToTwoCises()
3385 bytes_per_sample * 2 * number_of_required_samples_per_channel); in PrepareAndSendToTwoCises()
3402 data, bytes_per_sample, number_of_required_samples_per_channel); in PrepareAndSendToTwoCises()
3412 sw_enc_right->Encode(data.data() + bytes_per_sample, 2, byte_count); in PrepareAndSendToTwoCises()
[all …]
/packages/modules/Bluetooth/system/bta/le_audio/broadcaster/
Dbroadcaster.cc1207 const auto bytes_per_sample = (subgroup_config.GetBitsPerSample() / 8); in OnAudioDataReady() local
1211 auto initial_channel_offset = bis_idx * bytes_per_sample; in OnAudioDataReady()