Home
last modified time | relevance | path

Searched refs:apm (Results 1 – 25 of 39) sorted by relevance

12

/external/adhd/cras/src/server/
Dcras_apm_list.c109 struct cras_apm *apm; member
158 static void apm_destroy(struct cras_apm **apm) in apm_destroy() argument
160 if (*apm == NULL) in apm_destroy()
162 byte_buffer_destroy(&(*apm)->buffer); in apm_destroy()
163 float_buffer_destroy(&(*apm)->fbuffer); in apm_destroy()
164 cras_audio_area_destroy((*apm)->area); in apm_destroy()
167 webrtc_apm_destroy((*apm)->apm_ptr); in apm_destroy()
168 free(*apm); in apm_destroy()
169 *apm = NULL; in apm_destroy()
196 if ((active->apm->dev_ptr == dev_ptr) && in get_active_apm()
[all …]
Dinput_data.c151 struct cras_apm *apm; in input_data_get_for_stream() local
154 apm = cras_apm_list_get_active_apm(stream, data->dev_ptr); in input_data_get_for_stream()
155 if (apm == NULL) { in input_data_get_for_stream()
165 apm_processed = cras_apm_list_process(apm, data->fbuffer, in input_data_get_for_stream()
168 cras_apm_list_remove_apm(stream->apm_list, apm); in input_data_get_for_stream()
173 *area = cras_apm_list_get_processed(apm); in input_data_get_for_stream()
184 struct cras_apm *apm = in input_data_put_for_stream() local
187 if (apm) in input_data_put_for_stream()
188 cras_apm_list_put_processed(apm, frames); in input_data_put_for_stream()
199 struct cras_apm *apm; in input_data_get_software_gain_scaler() local
[all …]
Dcras_apm_list.h119 int cras_apm_list_process(struct cras_apm *apm, struct float_buffer *input,
130 struct cras_audio_area *cras_apm_list_get_processed(struct cras_apm *apm);
138 void cras_apm_list_put_processed(struct cras_apm *apm, unsigned int frames);
144 struct cras_audio_format *cras_apm_list_get_format(struct cras_apm *apm);
149 bool cras_apm_list_get_use_tuned_settings(struct cras_apm *apm);
204 static inline int cras_apm_list_process(struct cras_apm *apm, in cras_apm_list_process() argument
212 cras_apm_list_get_processed(struct cras_apm *apm) in cras_apm_list_get_processed() argument
217 static inline void cras_apm_list_put_processed(struct cras_apm *apm, in cras_apm_list_put_processed() argument
231 cras_apm_list_get_format(struct cras_apm *apm) in cras_apm_list_get_format() argument
236 static inline bool cras_apm_list_get_use_tuned_settings(struct cras_apm *apm) in cras_apm_list_get_use_tuned_settings() argument
Dcras_rstream.c354 struct cras_apm *apm; in cras_rstream_post_processing_format() local
356 apm = cras_apm_list_get_active_apm((void *)stream, dev_ptr); in cras_rstream_post_processing_format()
357 if (NULL == apm) in cras_rstream_post_processing_format()
359 return cras_apm_list_get_format(apm); in cras_rstream_post_processing_format()
/external/webrtc/modules/audio_processing/
Daudio_processing_impl_unittest.cc174 std::unique_ptr<AudioProcessing> apm( in TEST() local
179 apm->ApplyConfig(apm_config); in TEST()
188 apm->ProcessStream(frame.data(), config, config, frame.data()); in TEST()
193 apm->SetRuntimeSetting( in TEST()
199 apm->ProcessStream(frame.data(), config, config, frame.data()); in TEST()
212 std::unique_ptr<AudioProcessing> apm( in TEST() local
222 apm->ApplyConfig(apm_config); in TEST()
237 apm->ProcessStream(frame.data(), config, config, frame.data()); in TEST()
243 apm->SetRuntimeSetting( in TEST()
245 apm->ProcessStream(frame.data(), config, config, frame.data()); in TEST()
[all …]
Daudio_processing_builder_impl.cc38 AudioProcessingImpl* apm = new rtc::RefCountedObject<AudioProcessingImpl>( in Create()
42 if (apm->Initialize() != AudioProcessing::kNoError) { in Create()
43 delete apm; in Create()
44 apm = nullptr; in Create()
46 return apm; in Create()
Daudio_processing_performance_unittest.cc189 AudioProcessing* apm, in TimedThreadApiProcessor() argument
198 apm_(apm), in TimedThreadApiProcessor()
449 auto set_default_desktop_apm_runtime_settings = [](AudioProcessing* apm) { in SetUp() argument
450 AudioProcessing::Config apm_config = apm->GetConfig(); in SetUp()
459 apm->ApplyConfig(apm_config); in SetUp()
463 auto set_default_mobile_apm_runtime_settings = [](AudioProcessing* apm) { in SetUp() argument
464 AudioProcessing::Config apm_config = apm->GetConfig(); in SetUp()
472 apm->ApplyConfig(apm_config); in SetUp()
477 auto turn_off_default_apm_runtime_settings = [](AudioProcessing* apm) { in SetUp() argument
478 AudioProcessing::Config apm_config = apm->GetConfig(); in SetUp()
[all …]
Daudio_processing_unittest.cc2324 std::unique_ptr<AudioProcessing> apm( in RunApmRateAndChannelTest() local
2328 apm->ApplyConfig(apm_config); in RunApmRateAndChannelTest()
2395 int result = apm->ProcessReverseStream( in RunApmRateAndChannelTest()
2399 result = apm->ProcessStream( in RunApmRateAndChannelTest()
2463 rtc::scoped_refptr<AudioProcessing> apm = in TEST() local
2473 apm->ProcessStream(audio.data.data(), in TEST()
2485 rtc::scoped_refptr<AudioProcessing> apm = in TEST() local
2495 apm->ProcessReverseStream( in TEST()
2507 rtc::scoped_refptr<AudioProcessing> apm = in TEST() local
2517 apm->ProcessStream(audio.data.data(), in TEST()
[all …]
Daudio_processing_impl_locking_unittest.cc309 AudioProcessing* apm);
335 AudioProcessing* apm);
353 AudioProcessing* apm);
559 AudioProcessing* apm) in StatsProcessor() argument
560 : rand_gen_(rand_gen), test_config_(test_config), apm_(apm) {} in StatsProcessor()
591 AudioProcessing* apm) in CaptureProcessor() argument
597 apm_(apm), in CaptureProcessor()
822 AudioProcessing* apm) in RenderProcessor() argument
828 apm_(apm), in RenderProcessor()
/external/webrtc/modules/audio_processing/aec_dump/
Daec_dump_integration_test.cc28 std::unique_ptr<webrtc::AudioProcessing> apm( in CreateAudioProcessing() local
30 RTC_DCHECK(apm); in CreateAudioProcessing()
31 return apm; in CreateAudioProcessing()
45 auto apm = CreateAudioProcessing(); in TEST() local
47 apm->AttachAecDump(CreateMockAecDump()); in TEST()
52 auto apm = CreateAudioProcessing(); in TEST() local
65 apm->AttachAecDump(std::move(mock_aec_dump)); in TEST()
66 apm->ProcessReverseStream(frame.data(), stream_config, stream_config, in TEST()
71 auto apm = CreateAudioProcessing(); in TEST() local
94 apm->AttachAecDump(std::move(mock_aec_dump)); in TEST()
[all …]
/external/webrtc/modules/audio_processing/test/
Druntime_setting_util.cc17 void ReplayRuntimeSetting(AudioProcessing* apm, in ReplayRuntimeSetting() argument
19 RTC_CHECK(apm); in ReplayRuntimeSetting()
28 apm->SetRuntimeSetting( in ReplayRuntimeSetting()
32 apm->SetRuntimeSetting( in ReplayRuntimeSetting()
36 apm->SetRuntimeSetting( in ReplayRuntimeSetting()
40 apm->SetRuntimeSetting( in ReplayRuntimeSetting()
Daudio_processing_builder_for_testing.cc33 AudioProcessingImpl* apm = new rtc::RefCountedObject<AudioProcessingImpl>( in Create() local
37 int error = apm->Initialize(); in Create()
39 return apm; in Create()
Ddebug_dump_test.cc84 AudioProcessing* apm() const { return apm_.get(); } in apm() function in webrtc::test::__anon9b6362310111::DebugDumpGenerator
352 generator.apm()->ApplyConfig(apm_config); in TEST_F()
503 AudioProcessing::Config apm_config = generator.apm()->GetConfig(); in TEST_F()
505 generator.apm()->ApplyConfig(apm_config); in TEST_F()
518 AudioProcessing::Config apm_config = generator.apm()->GetConfig(); in TEST_F()
520 generator.apm()->ApplyConfig(apm_config); in TEST_F()
531 AudioProcessing::Config apm_config = generator.apm()->GetConfig(); in TEST_F()
533 generator.apm()->ApplyConfig(apm_config); in TEST_F()
Dapmtest.m22 % 'apm' The standard APM test set (default).
70 tests = {'apm','apmm','aec','aecm','agc','ns','vad'};
107 if strcmp(tests{i}, 'apm')
108 testdir = ['apm/'];
118 elseif strcmp(tests{i}, 'apm-swb')
120 testdir = ['apm-swb/'];
Druntime_setting_util.h19 void ReplayRuntimeSetting(AudioProcessing* apm,
/external/adhd/cras/src/tests/
Dapm_list_unittest.cc91 struct cras_apm* apm; in TEST() local
120 apm = cras_apm_list_add_apm(list, dev_ptr, &fmt, 1); in TEST()
121 EXPECT_NE((void*)NULL, apm); in TEST()
126 val = cras_apm_list_get_format(apm); in TEST()
223 struct cras_apm* apm; in TEST() local
240 apm = cras_apm_list_add_apm(list, dev_ptr, &fmt, 1); in TEST()
245 cras_apm_list_process(apm, buf, 0); in TEST()
248 area = cras_apm_list_get_processed(apm); in TEST()
253 cras_apm_list_process(apm, buf, 0); in TEST()
254 area = cras_apm_list_get_processed(apm); in TEST()
[all …]
Dinput_data_unittest.cc121 int cras_apm_list_process(struct cras_apm* apm, in cras_apm_list_process() argument
129 struct cras_audio_area* cras_apm_list_get_processed(struct cras_apm* apm) { in cras_apm_list_get_processed() argument
133 void cras_apm_list_put_processed(struct cras_apm* apm, unsigned int frames) {} in cras_apm_list_put_processed() argument
134 bool cras_apm_list_get_use_tuned_settings(struct cras_apm* apm) { in cras_apm_list_get_use_tuned_settings() argument
/external/webrtc/test/fuzzers/
Daudio_processing_fuzzer_helper.cc73 std::unique_ptr<AudioProcessing> apm) { in FuzzAudioProcessing() argument
103 apm->set_stream_delay_ms(stream_delay); in FuzzAudioProcessing()
106 apm->set_stream_key_pressed(key_pressed); in FuzzAudioProcessing()
121 apm_return_code = apm->ProcessStream( in FuzzAudioProcessing()
125 apm_return_code = apm->ProcessReverseStream( in FuzzAudioProcessing()
134 apm_return_code = ProcessAudioFrame(apm.get(), &fixed_frame); in FuzzAudioProcessing()
136 apm_return_code = ProcessReverseAudioFrame(apm.get(), &fixed_frame); in FuzzAudioProcessing()
141 static_cast<void>(apm->GetStatistics(true /*has_remote_tracks*/)); in FuzzAudioProcessing()
Daudio_processing_configs_fuzzer.cc111 std::unique_ptr<AudioProcessing> apm( in CreateApm() local
117 apm->AttachAecDump(AecDumpFactory::Create("/dev/null", -1, worker_queue)); in CreateApm()
144 apm->ApplyConfig(apm_config); in CreateApm()
146 return apm; in CreateApm()
168 auto apm = CreateApm(&fuzz_data, &field_trial_string, &worker_queue); in FuzzOneInput() local
170 if (apm) { in FuzzOneInput()
171 FuzzAudioProcessing(&fuzz_data, std::move(apm)); in FuzzOneInput()
Daudio_processing_fuzzer_helper.h21 std::unique_ptr<AudioProcessing> apm);
/external/llvm-project/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/
Dp4.cpp46 void test_deduce_ptrmem_with_qual(AnyPtrMem apm) { in test_deduce_ptrmem_with_qual() argument
47 const float X::* pm = apm; // expected-note {{instantiation of}} in test_deduce_ptrmem_with_qual()
60 void test_deduce_two_level_ptrmem_with_qual(TwoLevelPtrMem apm) { in test_deduce_two_level_ptrmem_with_qual() argument
62 const float X::* const X::* pm2 = apm; // expected-note {{instantiation of}} in test_deduce_two_level_ptrmem_with_qual()
65 const double X::* X::* pm1 = apm; // expected-note {{instantiation of}} in test_deduce_two_level_ptrmem_with_qual()
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/
Dp4.cpp42 void test_deduce_ptrmem_with_qual(AnyPtrMem apm) { in test_deduce_ptrmem_with_qual() argument
43 const float X::* pm = apm; in test_deduce_ptrmem_with_qual()
/external/adhd/cras/
Dconfigure.ac56 AC_ARG_ENABLE([webrtc-apm], AS_HELP_STRING([--enable-webrtc-apm], [Enable webrtc-apm uses]), have_w…
60 AC_DEFINE(HAVE_WEBRTC_APM, 1, [Define to use webrtc-apm.])
/external/llvm-project/clang/test/CodeGenCXX/
Dstrict-vtable-pointers.cpp391 int *const apm = &ap->m; in testCompareMembers() local
409 if (apm == bpm) { in testCompareMembers()
/external/webrtc/test/scenario/
Dcall_client.cc41 setup.apm = AudioProcessingBuilder().Create(); in InitAudio()
45 audio_state_config.audio_processing = setup.apm; in InitAudio()

12