Home
last modified time | relevance | path

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

/system/media/audio_utils/
Dmono_blend.cpp23 void mono_blend(void *buf, audio_format_t format, size_t channelCount, size_t frames, bool limit) { in mono_blend() argument
24 if (channelCount < 2) { in mono_blend()
33 for (size_t j = 0; j < channelCount; ++j) { in mono_blend()
36 accum /= channelCount; // round to 0 in mono_blend()
37 for (size_t j = 0; j < channelCount; ++j) { in mono_blend()
44 const float recipdiv = 1. / channelCount; in mono_blend()
48 for (size_t j = 0; j < channelCount; ++j) { in mono_blend()
51 if (limit && channelCount == 2) { in mono_blend()
56 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.cpp55 size_t channelCount, size_t zeroChannels, D *buffer) { in populateBuffer() argument
56 const size_t stride = channelCount + zeroChannels; in populateBuffer()
59 for (; j < channelCount; ++j) { in populateBuffer()
69 static void randomBuffer(D *buffer, size_t frameCount, size_t channelCount) { in randomBuffer() argument
73 for (size_t i = 0; i < frameCount * channelCount; ++i) { in randomBuffer()
108 const size_t channelCount = static_cast<size_t>(GetParam()); in testProcess() local
109 const size_t stride = channelCount + zeroChannels; in testProcess()
115 populateBuffer(INPUT[i], FRAME_COUNT, channelCount, zeroChannels, inputBuffer[i]); in testProcess()
117 OUTPUT[i], FRAME_COUNT, channelCount, zeroChannels, expectedOutputBuffer[i]); in testProcess()
119 BiquadFilter<T> filter(channelCount, COEFS); in testProcess()
[all …]
/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/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/media/audio_utils/include/audio_utils/
DBiquadFilter.h98 DEST& dest, size_t offset, size_t stride, size_t channelCount, const T& coef) { in setCoefficients() argument
102 for (size_t j = 0; j < channelCount; ++j) { in setCoefficients()
114 size_t channelCount, D *delays, const D *coefs, size_t localStride) { in biquad_filter_1fast() argument
127 for (size_t i = 0; i < channelCount; ++i) { in biquad_filter_1fast()
172 void zeroChannels(D *out, size_t frames, size_t stride, size_t channelCount) { in zeroChannels() argument
173 if (stride == channelCount) { in zeroChannels()
174 memset(out, 0, sizeof(float) * frames * channelCount); in zeroChannels()
177 memset(out, 0, sizeof(float) * channelCount); in zeroChannels()
185 size_t channelCount, D *delays, const D *coefs, size_t localStride) { in biquad_filter_fast() argument
187 zeroChannels(out, frames, stride, channelCount); in biquad_filter_fast()
[all …]
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/benchmarks/
Dbiquad_filter_benchmark.cpp222 const size_t channelCount = state.range(1); in BM_BiquadFilter() local
225 std::vector<F> input(DATA_SIZE * channelCount); in BM_BiquadFilter()
226 std::vector<F> output(DATA_SIZE * channelCount); in BM_BiquadFilter()
233 for (size_t i = 0; i < DATA_SIZE * channelCount; ++i) { in BM_BiquadFilter()
240 android::audio_utils::BiquadFilter<F> biquadFilter(channelCount, coefs, optimized); in BM_BiquadFilter()
/system/bt/btif/include/
Dbtif_avrcp_audio_track.h39 int channelCount);
/system/bt/test/mock/
Dmock_frameworks_libaudio.cc225 int32_t channelCount) { in AAudioStreamBuilder_setChannelCount() argument