Home
last modified time | relevance | path

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

/system/media/audio_utils/
Dmono_blend.cpp26 void mono_blend(void *buf, audio_format_t format, size_t channelCount, size_t frames, bool limit) { in mono_blend() argument
27 if (channelCount < 2) { in mono_blend()
36 for (size_t j = 0; j < channelCount; ++j) { in mono_blend()
39 accum /= channelCount; // round to 0 in mono_blend()
40 for (size_t j = 0; j < channelCount; ++j) { in mono_blend()
47 const float recipdiv = 1. / channelCount; in mono_blend()
51 for (size_t j = 0; j < channelCount; ++j) { in mono_blend()
54 if (limit && channelCount == 2) { in mono_blend()
59 for (size_t j = 0; j < channelCount; ++j) { in mono_blend()
Dresampler.c192 uint32_t channelCount, in create_resampler() argument
201 inSampleRate, outSampleRate, channelCount); in create_resampler()
215 rsmp->speex_resampler = speex_resampler_init(channelCount, in create_resampler()
234 rsmp->channel_count = channelCount; in create_resampler()
DPowerLog.cpp44 uint32_t channelCount, in PowerLog() argument
54 , mChannelCount(channelCount) in PowerLog()
/system/media/audio_utils/tests/
Dbiquad_filter_tests.cpp56 const size_t channelCount,
62 const size_t channelCount, in populateBuffer() argument
65 for (size_t j = 0; j < channelCount; ++j) { in populateBuffer()
66 buffer[i * channelCount + j] = singleChannelBuffer[i]; in populateBuffer()
72 const size_t channelCount = static_cast<size_t>(GetParam()); in TEST_P() local
73 const size_t sampleCount = FRAME_COUNT * channelCount; in TEST_P()
78 populateBuffer(INPUT[i], FRAME_COUNT, channelCount, inputBuffer[i]); in TEST_P()
80 OUTPUT[i], FRAME_COUNT, channelCount, expectedOutputBuffer[i]); in TEST_P()
82 BiquadFilter filter(channelCount, COEFS); in TEST_P()
/system/media/audio_utils/include/audio_utils/
DBiquadFilter.h53 void biquad_filter_fast(const float *coefs, const float *in, size_t channelCount, in biquad_filter_fast() argument
63 for (size_t i = 0; i < channelCount; ++i) { in biquad_filter_fast()
81 input += channelCount; in biquad_filter_fast()
84 output += channelCount; in biquad_filter_fast()
103 explicit BiquadFilter(const size_t channelCount, const T& coefs = {})
104 : mChannelCount(channelCount), mDelays(channelCount * kBiquadNumDelays) { in mChannelCount() argument
211 static void func(const float *coef, const float *in, const size_t channelCount, in func()
213 details::biquad_filter_fast<OCCUPANCY>(coef, in, channelCount, frames, delays, out); in func()
Dmono_blend.h43 void mono_blend(void *buf, audio_format_t format, size_t channelCount, size_t frames,
Dresampler.h97 uint32_t channelCount,
DPowerLog.h55 uint32_t channelCount,
/system/media/audio_utils/fuzz/monoblend_fuzzer/
Dmonoblend_fuzzer.cpp44 size_t channelCount = samples / std::max(fuzzed_data.ConsumeIntegral<uint32_t>(), (uint32_t)1); in LLVMFuzzerTestOneInput() local
45 size_t frames = samples / std::max(channelCount, (size_t)1); in LLVMFuzzerTestOneInput()
49 for (size_t i = 0; i < frames * channelCount; ++i) { in LLVMFuzzerTestOneInput()
53 mono_blend((void *) buf, format, channelCount, frames, limit); in LLVMFuzzerTestOneInput()
/system/media/audio_utils/benchmarks/
Dbiquad_filter_benchmark.cpp173 const size_t channelCount = state.range(1); in BM_BiquadFilter() local
176 std::vector<float> input(DATA_SIZE * channelCount); in BM_BiquadFilter()
177 std::vector<float> output(DATA_SIZE * channelCount); in BM_BiquadFilter()
184 for (size_t i = 0; i < DATA_SIZE * channelCount; ++i) { in BM_BiquadFilter()
191 android::audio_utils::BiquadFilter biquadFilter(channelCount, coefs); in BM_BiquadFilter()
/system/bt/btif/src/
Dbtif_avrcp_audio_track.cc34 int channelCount; member
45 int channelCount) { in BtifAvrcpAudioTrackCreate() argument
47 __func__, trackFreq, bitsPerSample, channelCount); in BtifAvrcpAudioTrackCreate()
54 AAudioStreamBuilder_setChannelCount(builder, channelCount); in BtifAvrcpAudioTrackCreate()
66 trackHolder->channelCount = channelCount; in BtifAvrcpAudioTrackCreate()
68 trackHolder->channelCount * AAudioStream_getBufferSizeInFrames(stream); in BtifAvrcpAudioTrackCreate()
219 transcodedCount / (sampleSize * trackHolder->channelCount), in BtifAvrcpAudioTrackWriteData()
/system/bt/btif/include/
Dbtif_avrcp_audio_track.h39 int channelCount);