/system/media/audio_utils/ |
D | mono_blend.cpp | 23 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()
|
D | resampler.c | 192 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()
|
D | PowerLog.cpp | 44 uint32_t channelCount, in PowerLog() argument 54 , mChannelCount(channelCount) in PowerLog()
|
/system/media/audio_utils/tests/ |
D | biquad_filter_tests.cpp | 55 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/ |
D | monoblend_fuzzer.cpp | 44 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/ |
D | btif_avrcp_audio_track.cc | 34 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/ |
D | BiquadFilter.h | 98 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 …]
|
D | mono_blend.h | 43 void mono_blend(void *buf, audio_format_t format, size_t channelCount, size_t frames,
|
D | resampler.h | 97 uint32_t channelCount,
|
D | PowerLog.h | 55 uint32_t channelCount,
|
/system/media/audio_utils/benchmarks/ |
D | biquad_filter_benchmark.cpp | 222 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/ |
D | btif_avrcp_audio_track.h | 39 int channelCount);
|
/system/bt/test/mock/ |
D | mock_frameworks_libaudio.cc | 225 int32_t channelCount) { in AAudioStreamBuilder_setChannelCount() argument
|