webrtc/test/fuzzers
Sam Zackrisson 03cb7e5a61 APM: Make echo detector an optionally compilable and injectable component
Important: This change does not in any way affect echo cancellation or standardized stats. The user audio experience is unchanged. Only non-standard stats are affected. Echo return loss metrics are unchanged. Residual echo likelihood {recent max} will no longer be computed by default.

Important: The echo detector is no longer enabled by default.

API change, PSA: https://groups.google.com/g/discuss-webrtc/c/mJV5cDysBDI/m/7PTPBjVHCgAJ

This CL removes the default usage of the residual echo detector in APM.
It can now only be used via injection and the helper function webrtc::CreateEchoDetector. See how the function audio_processing_unittest.cc:CreateApm() changed, for an example.

The echo detector implementation is marked poisonous, to avoid accidental dependencies.

Some cleanup is done:
- EchoDetector::PackRenderAudioBuffer is declared in one target but is defined in another target. It is not necessary to keep in the API. It is made an implementation detail, and the echo detector input is documented in the API.
- The internal state of APM is large and difficult to track. Submodule pointers that are set permanently on construction are now appropriately marked const.

Tested:
- existing + new unit tests
- audioproc_f is bitexact on a large number of aecdumps

Bug: webrtc:11539
Change-Id: I00cc2ee112fedb06451a533409311605220064d0
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/239652
Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
Reviewed-by: Per Kjellander <perkj@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35550}
2021-12-16 17:39:11 +00:00
..
configs/replay_packet_fuzzer
corpora Fix integer underflow in BitstreamReader::ConsumeBits 2021-09-20 19:37:49 +00:00
utils Use backticks not vertical bars to denote variables in comments for /test 2021-07-27 12:50:31 +00:00
aec3_config_json_fuzzer.cc Add AEC3 config json parsing fuzzer 2019-10-17 16:33:44 +00:00
aec3_fuzzer.cc Fuzz AEC3 2019-12-02 09:16:51 +00:00
agc_fuzzer.cc Reland "Replace the ExperimentalAgc config with the new config format" 2020-01-17 10:09:09 +00:00
audio_decoder_fuzzer.cc Use backticks not vertical bars to denote variables in comments for /test 2021-07-27 12:50:31 +00:00
audio_decoder_fuzzer.h Delete AudioDecoder method IncomingPacket 2019-09-24 08:30:24 +00:00
audio_decoder_ilbc_fuzzer.cc
audio_decoder_isac_fuzzer.cc
audio_decoder_isacfix_fuzzer.cc
audio_decoder_multistream_opus_fuzzer.cc
audio_decoder_opus_fuzzer.cc
audio_decoder_opus_redundant_fuzzer.cc
audio_encoder_fuzzer.cc Use backticks not vertical bars to denote variables in comments for /test 2021-07-27 12:50:31 +00:00
audio_encoder_fuzzer.h Opus Encoder fuzzer: separate target for FuzzAudioEncoder 2020-02-27 16:13:15 +00:00
audio_encoder_isac_fixed_fuzzer.cc fuzzers: fix isax typo 2020-05-26 12:51:28 +00:00
audio_encoder_isac_float_fuzzer.cc fuzzers: fix isax typo 2020-05-26 12:51:28 +00:00
audio_encoder_opus_fuzzer.cc Opus Encoder fuzzer: separate target for FuzzAudioEncoder 2020-02-27 16:13:15 +00:00
audio_processing_configs_fuzzer.cc APM: Make echo detector an optionally compilable and injectable component 2021-12-16 17:39:11 +00:00
audio_processing_fuzzer_helper.cc Use make_ref_counted in AudioProcessingBuilder 2021-08-11 15:40:28 +00:00
audio_processing_fuzzer_helper.h Use make_ref_counted in AudioProcessingBuilder 2021-08-11 15:40:28 +00:00
BUILD.gn APM: Make echo detector an optionally compilable and injectable component 2021-12-16 17:39:11 +00:00
comfort_noise_decoder_fuzzer.cc
congestion_controller_feedback_fuzzer.cc Remove REMB throttling funcionality from PacketRouter 2021-05-12 11:24:58 +00:00
dcsctp_packet_fuzzer.cc dcsctp: Add SCTP packet fuzzer 2021-04-09 12:23:42 +00:00
dcsctp_socket_fuzzer.cc dcsctp: Add socket fuzzer 2021-05-14 06:41:10 +00:00
DEPS dcsctp: Add SCTP packet fuzzer 2021-04-09 12:23:42 +00:00
field_trial_fuzzer.cc
flexfec_header_reader_fuzzer.cc Use rtc::CopyOnWriteBuffer::MutableData instead of data in fuzzers 2021-01-12 12:36:43 +00:00
flexfec_receiver_fuzzer.cc
flexfec_sender_fuzzer.cc Reland "Reland "Refactors UlpFec and FlexFec to use a common interface."" 2020-03-09 13:41:35 +00:00
forward_error_correction_fuzzer.cc Use rtc::CopyOnWriteBuffer::MutableData instead of data in fuzzers 2021-01-12 12:36:43 +00:00
frame_buffer2_fuzzer.cc Remove FrameBuffer::ReturnReason 2021-12-07 14:16:17 +00:00
frame_buffer3_fuzzer.cc New FrameBuffer3. 2021-12-07 18:31:37 +00:00
fuzz_data_helper.cc
fuzz_data_helper.h
h264_bitstream_parser_fuzzer.cc Delete deprecated H264BitstreamParser methods 2021-01-11 09:31:54 +00:00
h264_depacketizer_fuzzer.cc Change H264 depacketizer to implement VideoRtpDepacketizer interface 2020-01-15 12:26:55 +00:00
neteq_rtp_fuzzer.cc Improve neteq_rtp_fuzzer 2020-09-29 20:24:07 +00:00
neteq_signal_fuzzer.cc Reland "Enable using a custom NetEqFactory in simulations" 2020-01-20 12:46:34 +00:00
OWNERS Add danilchap@webrtc.org as owner of test/fuzzers/ 2021-09-14 08:48:03 +00:00
packet_buffer_fuzzer.cc Use backticks not vertical bars to denote variables in comments for /test 2021-07-27 12:50:31 +00:00
pseudotcp_parser_fuzzer.cc
residual_echo_detector_fuzzer.cc Surface ResidualEchoDetector creation to API 2020-05-12 10:56:18 +00:00
rtcp_receiver_fuzzer.cc Remove dependency from RtpRtcp on the Module interface. 2020-06-04 08:11:21 +00:00
rtp_depacketizer_av1_assemble_frame_fuzzer.cc Hide Av1 specfic logic from RtpVideoReceiver into depacketizer interface. 2020-03-24 15:55:00 +00:00
rtp_dependency_descriptor_fuzzer.cc Use backticks not vertical bars to denote variables in comments for /test 2021-07-27 12:50:31 +00:00
rtp_frame_reference_finder_fuzzer.cc RtpFrameReferenceFinder return frames directly instead of via callback. 2021-05-26 15:47:03 +00:00
rtp_packet_fuzzer.cc Use backticks not vertical bars to denote variables in comments for /test 2021-07-27 12:50:31 +00:00
rtp_packetizer_av1_fuzzer.cc In Av1 packetizer set marker bit with respect of end_of_picture flag 2020-11-16 11:08:48 +00:00
rtp_video_layers_allocation_fuzzer.cc Ensure RtpVideoLayersAllocationExtension::Parse validate sanity of the output 2021-09-14 06:43:13 +00:00
sctp_utils_fuzzer.cc
sdp_integration_fuzzer.cc Replace more instances of rtc::RefCountedObject with make_ref_counted. 2021-04-27 17:01:59 +00:00
sdp_parser_fuzzer.cc
ssl_certificate_fuzzer.cc Fix ssl_certificate_fuzzer 2021-07-09 13:50:29 +00:00
string_to_number_fuzzer.cc
stun_parser_fuzzer.cc Modified STUN verification functions 2021-03-02 10:34:17 +00:00
stun_validator_fuzzer.cc Modified STUN verification functions 2021-03-02 10:34:17 +00:00
turn_unwrap_fuzzer.cc
ulpfec_generator_fuzzer.cc Use rtc::CopyOnWriteBuffer::MutableData instead of data in fuzzers 2021-01-12 12:36:43 +00:00
ulpfec_header_reader_fuzzer.cc Use rtc::CopyOnWriteBuffer::MutableData instead of data in fuzzers 2021-01-12 12:36:43 +00:00
ulpfec_receiver_fuzzer.cc Fix: don't use recovered packets in UlpFEC recovery 2020-03-11 12:49:11 +00:00
vp8_depacketizer_fuzzer.cc Delete RtpDepacketizerVp8 in favor of VideoRtpDepacketizerVp8 2020-01-09 12:10:19 +00:00
vp8_qp_parser_fuzzer.cc
vp8_replay_fuzzer.cc
vp9_depacketizer_fuzzer.cc Delete RtpDepacketizerVp9 in favor of VideoRtpDepacketizerVp9 2020-01-09 13:07:44 +00:00
vp9_encoder_references_fuzzer.cc Cleanup WebRTC-Vp9DependencyDescriptor field trial 2021-10-19 14:29:29 +00:00
vp9_qp_parser_fuzzer.cc Reland "Rename vp9::FrameInfo to vp9::UncompressedHeader and add more fields." 2021-08-17 19:42:00 +00:00
vp9_replay_fuzzer.cc
webrtc_fuzzer_main.cc