Home
last modified time | relevance | path

Searched refs:inputCfg (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/av/media/libeffects/downmix/benchmark/
Ddownmix_benchmark.cpp116 config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in BM_Downmix()
117 config.inputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in BM_Downmix()
118 config.inputCfg.bufferProvider.getBuffer = nullptr; in BM_Downmix()
119 config.inputCfg.bufferProvider.releaseBuffer = nullptr; in BM_Downmix()
120 config.inputCfg.bufferProvider.cookie = nullptr; in BM_Downmix()
121 config.inputCfg.mask = EFFECT_CONFIG_ALL; in BM_Downmix()
130 config.inputCfg.samplingRate = sampleRate; in BM_Downmix()
131 config.inputCfg.channels = channelMask; in BM_Downmix()
/frameworks/av/media/libeffects/downmix/tests/
Ddownmixtest.cpp65 pConfig->inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in DownmixDefaultConfig()
66 pConfig->inputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in DownmixDefaultConfig()
67 pConfig->inputCfg.channels = AUDIO_CHANNEL_OUT_7POINT1; in DownmixDefaultConfig()
68 pConfig->inputCfg.bufferProvider.getBuffer = nullptr; in DownmixDefaultConfig()
69 pConfig->inputCfg.bufferProvider.releaseBuffer = nullptr; in DownmixDefaultConfig()
70 pConfig->inputCfg.bufferProvider.cookie = nullptr; in DownmixDefaultConfig()
71 pConfig->inputCfg.mask = EFFECT_CONFIG_ALL; in DownmixDefaultConfig()
73 pConfig->inputCfg.samplingRate = 44100; in DownmixDefaultConfig()
74 pConfig->outputCfg.samplingRate = pConfig->inputCfg.samplingRate; in DownmixDefaultConfig()
235 descriptor.config.inputCfg.samplingRate = samplingFreq; in main()
[all …]
Ddownmix_tests.cpp286 config_.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in reconfig()
287 config_.inputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in reconfig()
288 config_.inputCfg.bufferProvider.getBuffer = nullptr; in reconfig()
289 config_.inputCfg.bufferProvider.releaseBuffer = nullptr; in reconfig()
290 config_.inputCfg.bufferProvider.cookie = nullptr; in reconfig()
291 config_.inputCfg.mask = EFFECT_CONFIG_ALL; in reconfig()
300 config_.inputCfg.samplingRate = sampleRate; in reconfig()
301 config_.inputCfg.channels = channelMask; in reconfig()
302 inputChannelCount_ = audio_channel_count_from_out_mask(config_.inputCfg.channels); in reconfig()
/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp97 pContext->mCompressor->Initialize(targetAmp, pContext->mConfig.inputCfg.samplingRate); in LE_reset()
121 if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate) return -EINVAL; in LE_setConfig()
122 if (pConfig->inputCfg.channels != pConfig->outputCfg.channels) return -EINVAL; in LE_setConfig()
123 if (pConfig->inputCfg.format != pConfig->outputCfg.format) return -EINVAL; in LE_setConfig()
124 if (pConfig->inputCfg.channels != AUDIO_CHANNEL_OUT_STEREO) return -EINVAL; in LE_setConfig()
127 if (pConfig->inputCfg.format != kProcessFormat) return -EINVAL; in LE_setConfig()
173 pContext->mConfig.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in LE_init()
174 pContext->mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in LE_init()
175 pContext->mConfig.inputCfg.format = kProcessFormat; in LE_init()
176 pContext->mConfig.inputCfg.samplingRate = 44100; in LE_init()
[all …]
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp234 CHECK_ARG(pConfig->inputCfg.samplingRate == pConfig->outputCfg.samplingRate); in Equalizer_setConfig()
235 CHECK_ARG(pConfig->inputCfg.channels == pConfig->outputCfg.channels); in Equalizer_setConfig()
236 CHECK_ARG(pConfig->inputCfg.format == pConfig->outputCfg.format); in Equalizer_setConfig()
237 CHECK_ARG((pConfig->inputCfg.channels == AUDIO_CHANNEL_OUT_MONO) || in Equalizer_setConfig()
238 (pConfig->inputCfg.channels == AUDIO_CHANNEL_OUT_STEREO)); in Equalizer_setConfig()
241 CHECK_ARG(pConfig->inputCfg.format == AUDIO_FORMAT_PCM_16_BIT); in Equalizer_setConfig()
244 if (pConfig->inputCfg.channels == AUDIO_CHANNEL_OUT_MONO) { in Equalizer_setConfig()
254 pConfig->inputCfg.samplingRate); in Equalizer_setConfig()
257 pConfig->inputCfg.format, in Equalizer_setConfig()
307 pContext->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in Equalizer_init()
[all …]
DEffectReverb.c228 if (pRvbModule->config.inputCfg.channels == pRvbModule->config.outputCfg.channels) { in Reverb_Process()
467 pRvbModule->config.inputCfg.samplingRate = 44100; in Reverb_Init()
469 pRvbModule->config.inputCfg.channels = AUDIO_CHANNEL_OUT_MONO; in Reverb_Init()
471 pRvbModule->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in Reverb_Init()
473 pRvbModule->config.inputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in Reverb_Init()
474 pRvbModule->config.inputCfg.bufferProvider.getBuffer = NULL; in Reverb_Init()
475 pRvbModule->config.inputCfg.bufferProvider.releaseBuffer = NULL; in Reverb_Init()
476 pRvbModule->config.inputCfg.bufferProvider.cookie = NULL; in Reverb_Init()
477 pRvbModule->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in Reverb_Init()
478 pRvbModule->config.inputCfg.mask = EFFECT_CONFIG_ALL; in Reverb_Init()
[all …]
/frameworks/av/media/libeffects/hapticgenerator/
DEffectHapticGenerator.cpp129 context->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in HapticGenerator_Init()
130 context->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in HapticGenerator_Init()
131 context->config.inputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in HapticGenerator_Init()
132 context->config.inputCfg.samplingRate = 0; in HapticGenerator_Init()
133 context->config.inputCfg.bufferProvider.getBuffer = nullptr; in HapticGenerator_Init()
134 context->config.inputCfg.bufferProvider.releaseBuffer = nullptr; in HapticGenerator_Init()
135 context->config.inputCfg.bufferProvider.cookie = nullptr; in HapticGenerator_Init()
136 context->config.inputCfg.mask = EFFECT_CONFIG_ALL; in HapticGenerator_Init()
261 if (config->inputCfg.samplingRate != config->outputCfg.samplingRate || in HapticGenerator_Configure()
262 config->inputCfg.format != config->outputCfg.format || in HapticGenerator_Configure()
[all …]
/frameworks/av/media/libeffects/downmix/
DEffectDownmix.cpp347 (audio_channel_mask_t)pDwmModule->config.inputCfg.channels; in Downmix_Process()
587 pDwmModule->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in Downmix_Init()
588 pDwmModule->config.inputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in Downmix_Init()
589 pDwmModule->config.inputCfg.channels = AUDIO_CHANNEL_OUT_7POINT1; in Downmix_Init()
590 pDwmModule->config.inputCfg.bufferProvider.getBuffer = NULL; in Downmix_Init()
591 pDwmModule->config.inputCfg.bufferProvider.releaseBuffer = NULL; in Downmix_Init()
592 pDwmModule->config.inputCfg.bufferProvider.cookie = NULL; in Downmix_Init()
593 pDwmModule->config.inputCfg.mask = EFFECT_CONFIG_ALL; in Downmix_Init()
595 pDwmModule->config.inputCfg.samplingRate = 44100; in Downmix_Init()
596 pDwmModule->config.outputCfg.samplingRate = pDwmModule->config.inputCfg.samplingRate; in Downmix_Init()
[all …]
/frameworks/av/media/libeffects/tests/common/
DEffectTestHelper.cpp33 config.inputCfg.samplingRate = config.outputCfg.samplingRate = mSampleRate; in setConfig()
34 config.inputCfg.channels = mInChMask; in setConfig()
36 config.inputCfg.format = config.outputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in setConfig()
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp155 if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate) return -EINVAL; in Visualizer_setConfig()
156 if (pConfig->inputCfg.channels != pConfig->outputCfg.channels) return -EINVAL; in Visualizer_setConfig()
157 if (pConfig->inputCfg.format != pConfig->outputCfg.format) return -EINVAL; in Visualizer_setConfig()
158 const uint32_t channelCount = audio_channel_count_from_out_mask(pConfig->inputCfg.channels); in Visualizer_setConfig()
166 if (pConfig->inputCfg.format != kProcessFormat) return -EINVAL; in Visualizer_setConfig()
211 pContext->mConfig.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in Visualizer_init()
212 pContext->mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in Visualizer_init()
213 pContext->mConfig.inputCfg.format = kProcessFormat; in Visualizer_init()
214 pContext->mConfig.inputCfg.samplingRate = 44100; in Visualizer_init()
215 pContext->mConfig.inputCfg.bufferProvider.getBuffer = NULL; in Visualizer_init()
[all …]
/frameworks/av/services/audioflinger/
DEffects.cpp633 memset(mConfig.inputCfg.buffer.raw, in updateState_l()
635 mConfig.inputCfg.buffer.frameCount*sizeof(int32_t)); in updateState_l()
666 mHandles[i]->framesProcessed(mConfig.inputCfg.buffer.frameCount); in updateState_l()
686 audio_channel_count_from_out_mask(mConfig.inputCfg.channels); in process()
699 mConfig.inputCfg.buffer.frameCount, in process()
704 mConfig.inputCfg.buffer.f32, in process()
710 mConfig.inputCfg.buffer.f32, in process()
723 mConfig.inputCfg.buffer.s16, in process()
724 mConfig.inputCfg.buffer.f32, in process()
725 mConfig.inputCfg.buffer.frameCount); in process()
[all …]
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp255 int channels = audio_channel_count_from_out_mask(pContext->config.inputCfg.channels); in EffectCreate()
335 int channels = audio_channel_count_from_out_mask(pContext->config.inputCfg.channels); in process()
545 CHECK_ARG(pConfig->inputCfg.samplingRate == pConfig->outputCfg.samplingRate); in Reverb_setConfig()
546 CHECK_ARG(pConfig->inputCfg.format == pConfig->outputCfg.format); in Reverb_setConfig()
547 int inputChannels = audio_channel_count_from_out_mask(pConfig->inputCfg.channels); in Reverb_setConfig()
548 CHECK_ARG((pContext->auxiliary && pConfig->inputCfg.channels == AUDIO_CHANNEL_OUT_MONO) || in Reverb_setConfig()
554 CHECK_ARG(pConfig->inputCfg.format == EFFECT_BUFFER_FORMAT); in Reverb_setConfig()
558 SampleRate = lvmFsForSampleRate(pConfig->inputCfg.samplingRate); in Reverb_setConfig()
560 ALOGE("Reverb_setConfig invalid sampling rate %d", pConfig->inputCfg.samplingRate); in Reverb_setConfig()
631 pContext->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in Reverb_init()
[all …]
/frameworks/av/media/libeffects/dynamicsproc/
DEffectDynamicsProcessing.cpp135 if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate) return -EINVAL; in DP_setConfig()
136 if (pConfig->inputCfg.channels != pConfig->outputCfg.channels) return -EINVAL; in DP_setConfig()
137 if (pConfig->inputCfg.format != pConfig->outputCfg.format) return -EINVAL; in DP_setConfig()
140 if (pConfig->inputCfg.format != AUDIO_FORMAT_PCM_FLOAT) return -EINVAL; in DP_setConfig()
188 pContext->mConfig.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in DP_init()
189 pContext->mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in DP_init()
190 pContext->mConfig.inputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in DP_init()
191 pContext->mConfig.inputCfg.samplingRate = 48000; in DP_init()
192 pContext->mConfig.inputCfg.bufferProvider.getBuffer = NULL; in DP_init()
193 pContext->mConfig.inputCfg.bufferProvider.releaseBuffer = NULL; in DP_init()
[all …]
/frameworks/av/media/libeffects/preprocessing/
DPreProcessing.cpp895 uint32_t inCnl = audio_channel_count_from_in_mask(config->inputCfg.channels); in Session_SetConfig()
898 if (config->inputCfg.samplingRate != config->outputCfg.samplingRate || in Session_SetConfig()
899 config->inputCfg.format != config->outputCfg.format || in Session_SetConfig()
900 config->inputCfg.format != AUDIO_FORMAT_PCM_16_BIT) { in Session_SetConfig()
904 ALOGV("Session_SetConfig sr %d cnl %08x", config->inputCfg.samplingRate, in Session_SetConfig()
905 config->inputCfg.channels); in Session_SetConfig()
907 session->samplingRate = config->inputCfg.samplingRate; in Session_SetConfig()
926 config->inputCfg.samplingRate = config->outputCfg.samplingRate = session->samplingRate; in Session_GetConfig()
927 config->inputCfg.format = config->outputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in Session_GetConfig()
928 config->inputCfg.channels = audio_channel_in_mask_from_count(session->inChannelCount); in Session_GetConfig()
[all …]
/frameworks/av/media/libeffects/lvm/benchmarks/
Dlvm_benchmark.cpp184 config.inputCfg.samplingRate = config.outputCfg.samplingRate = kSampleRate; in BM_LVM()
185 config.inputCfg.channels = config.outputCfg.channels = chMask; in BM_LVM()
186 config.inputCfg.format = config.outputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in BM_LVM()
Dreverb_benchmark.cpp123 config.inputCfg.samplingRate = config.outputCfg.samplingRate = kSampleRate; in BM_REVERB()
124 config.inputCfg.channels = config.outputCfg.channels = chMask; in BM_REVERB()
125 config.inputCfg.format = config.outputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in BM_REVERB()
/frameworks/av/media/libeffects/preprocessing/tests/
DEffectTestHelper.cpp32 config.inputCfg.samplingRate = config.outputCfg.samplingRate = mSampleRate; in setConfig()
33 config.inputCfg.channels = config.outputCfg.channels = mChMask; in setConfig()
34 config.inputCfg.format = config.outputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in setConfig()
DPreProcessingTest.cpp352 config.inputCfg.samplingRate = config.outputCfg.samplingRate = preProcCfgParams.samplingFreq; in main()
353 config.inputCfg.channels = config.outputCfg.channels = preProcCfgParams.chMask; in main()
354 config.inputCfg.format = config.outputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in main()
/frameworks/av/media/libeffects/lvm/tests/
Dlvmtest.cpp212 pContext->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in LvmBundle_init()
213 pContext->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in LvmBundle_init()
214 pContext->config.inputCfg.format = EFFECT_BUFFER_FORMAT; in LvmBundle_init()
215 pContext->config.inputCfg.samplingRate = 44100; in LvmBundle_init()
216 pContext->config.inputCfg.bufferProvider.getBuffer = NULL; in LvmBundle_init()
217 pContext->config.inputCfg.bufferProvider.releaseBuffer = NULL; in LvmBundle_init()
218 pContext->config.inputCfg.bufferProvider.cookie = NULL; in LvmBundle_init()
219 pContext->config.inputCfg.mask = EFFECT_CONFIG_ALL; in LvmBundle_init()
384 pContext->config.inputCfg.channels = plvmConfigParams->nrChannels; in lvmCreate()
Dreverb_test.cpp314 config.inputCfg.samplingRate = config.outputCfg.samplingRate = revConfigParams.sampleRate; in main()
315 config.inputCfg.channels = config.outputCfg.channels = revConfigParams.chMask; in main()
316 config.inputCfg.format = config.outputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in main()
/frameworks/av/media/libeffects/spatializer/benchmarks/
Dspatializer_benchmark.cpp111 config.inputCfg.samplingRate = config.outputCfg.samplingRate = sampleRate; in BM_SPATIALIZER()
112 config.inputCfg.channels = kInputChMask; in BM_SPATIALIZER()
114 config.inputCfg.format = config.outputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in BM_SPATIALIZER()
/frameworks/av/media/libeffects/preprocessing/benchmarks/
Dpreprocessing_benchmark.cpp235 config.inputCfg.samplingRate = config.outputCfg.samplingRate = kSampleRate; in BM_PREPROCESSING()
236 config.inputCfg.channels = config.outputCfg.channels = chMask; in BM_PREPROCESSING()
237 config.inputCfg.format = config.outputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in BM_PREPROCESSING()
/frameworks/av/media/libaudioclient/aidl/android/media/
DEffectConfig.aidl30 AudioConfigBase inputCfg;
/frameworks/av/media/libaudioprocessing/
DBufferProviders.cpp175 mDownmixConfig.inputCfg.channels = inputChannelMask; // FIXME: Should be bits in DownmixerBufferProvider()
177 mDownmixConfig.inputCfg.format = format; in DownmixerBufferProvider()
179 mDownmixConfig.inputCfg.samplingRate = sampleRate; in DownmixerBufferProvider()
181 mDownmixConfig.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in DownmixerBufferProvider()
185 mDownmixConfig.inputCfg.mask = EFFECT_CONFIG_SMP_RATE | EFFECT_CONFIG_CHANNELS | in DownmixerBufferProvider()
187 mDownmixConfig.outputCfg.mask = mDownmixConfig.inputCfg.mask; in DownmixerBufferProvider()
188 mDownmixConfig.inputCfg.buffer.frameCount = bufferFrameCount; in DownmixerBufferProvider()
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp482 pContext->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in LvmBundle_init()
483 pContext->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in LvmBundle_init()
484 pContext->config.inputCfg.format = EFFECT_BUFFER_FORMAT; in LvmBundle_init()
485 pContext->config.inputCfg.samplingRate = 44100; in LvmBundle_init()
486 pContext->config.inputCfg.bufferProvider.getBuffer = NULL; in LvmBundle_init()
487 pContext->config.inputCfg.bufferProvider.releaseBuffer = NULL; in LvmBundle_init()
488 pContext->config.inputCfg.bufferProvider.cookie = NULL; in LvmBundle_init()
489 pContext->config.inputCfg.mask = EFFECT_CONFIG_ALL; in LvmBundle_init()
636 audio_channel_count_from_out_mask(pContext->config.inputCfg.channels); in LvmBundle_process()
950 CHECK_ARG(pConfig->inputCfg.samplingRate == pConfig->outputCfg.samplingRate); in Effect_setConfig()
[all …]

12