webrtc/common_audio/resampler
Tommi 1f3679884c Start using ArrayView in AudioFrame, update PushResampler
Start introducing ArrayView to AudioFrame and code that flows down
from there.  In this first step:
* Add `data_view()` that returns a read-only ArrayView for the
  audio buffer. When AudioFrame is not initialized however, data_view()
  will return a nullptr whereas the current data() method never returns
  nullptr.
* Add `mutable_data()` that requires two arguments for properly setting
  the samples per channel and number of channels that's required for
  accurately reserving the returned mutable ArrayView.
  A notable behavior change is that if the requested number of channels
  is larger than supported or the calculated buffer size is too large,
  the function will trigger a check.
* Add TODOs for following work.

Bug: chromium:335805780
Change-Id: I2937de800422589ebe6a3840b3caadf3d9ff8b00
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/347982
Reviewed-by: Per Åhgren <peah@webrtc.org>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#42202}
2024-04-30 15:33:08 +00:00
..
include Start using ArrayView in AudioFrame, update PushResampler 2024-04-30 15:33:08 +00:00
push_resampler.cc Start using ArrayView in AudioFrame, update PushResampler 2024-04-30 15:33:08 +00:00
push_resampler_unittest.cc Reenable WebRTC PushResampler format checks on Windows clang debug builds 2022-08-05 11:03:08 +00:00
push_sinc_resampler.cc Use backticks not vertical bars to denote variables in comments for /common_audio 2021-07-27 18:21:35 +00:00
push_sinc_resampler.h Reland "Remove RTC_DISALLOW_COPY_AND_ASSIGN usages completely" 2022-01-27 12:55:44 +00:00
push_sinc_resampler_unittest.cc Clarify and extend test support for certain sample rates in audio processing 2022-08-03 14:26:36 +00:00
resampler.cc Fix -Wunreachable-code-aggressive. 2021-06-30 11:14:37 +00:00
resampler_unittest.cc Format almost everything. 2019-07-08 13:45:15 +00:00
sinc_resampler.cc Check FMA3 support before use it in SincResampler 2023-01-31 17:28:55 +00:00
sinc_resampler.h Format ^(api|call|common_audio|examples|media|net|p2p|pc)/ 2023-05-03 11:09:26 +00:00
sinc_resampler_avx2.cc Use backticks not vertical bars to denote variables in comments for /common_audio 2021-07-27 18:21:35 +00:00
sinc_resampler_neon.cc Format almost everything. 2019-07-08 13:45:15 +00:00
sinc_resampler_sse.cc Use backticks not vertical bars to denote variables in comments for /common_audio 2021-07-27 18:21:35 +00:00
sinc_resampler_unittest.cc Clarify and extend test support for certain sample rates in audio processing 2022-08-03 14:26:36 +00:00
sinusoidal_linear_chirp_source.cc Reformat the WebRTC code base 2018-06-19 14:00:39 +00:00
sinusoidal_linear_chirp_source.h Fix math involving enums in C++20 2022-09-27 06:55:31 +00:00