Commit Graph

243 Commits

Author SHA1 Message Date
Danil Chapovalov
c9752917bd Replace ArrayView with std::span everywhere except api
ArrayView is an alias to std::span. This change switch to use
std::span directly instead of through the alias.

Search&Replace MakeArrayView and ArrayView with std::span
Search&Replace include "api/array_view.h" with include <span>
Remove <span> include where std::span is not mentioned in the file
Remove build dependencies on array_view target

Bug: webrtc:439801349
Change-Id: I64bbdcf1300126286158ccbeda62c49e0c3ec83f
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/460501
Auto-Submit: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Evan Shrubsole <eshr@webrtc.org>
Reviewed-by: Evan Shrubsole <eshr@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#47294}
2026-03-30 02:05:06 -07:00
Lionel Koenig Gélas
91067be02b VAD SplitFilter may overflow integerr.
VAD Split filter is design such that, in some specific cases, signed
integer overflow can occurs. Those are fine and will only affect the
output audio making some clicks and/or digital noise.

Bug: webrtc:490331112
Change-Id: Ib4a2eb01a84f6b11e7be0d3df55a892379018178
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/457301
Commit-Queue: Lionel Koenig <lionelk@webrtc.org>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#47173}
2026-03-16 09:39:29 -07:00
Fredrik Solenberg
0e036e13f4 Fix integer overflow in WebRtc_CreateBuffer
Added a check to ensure element_count * element_size does not overflow
size_t. Subsequent writes to the buffer could result in out-of-bounds
heap writes if the multiplication wraps around to a small number.

Bug: None
Change-Id: I0a37dfdf19fcee8b19765e8aec316d0886876d09
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/456460
Commit-Queue: Fredrik Solenberg <solenberg@webrtc.org>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#47164}
2026-03-16 02:40:13 -07:00
Harald Alvestrand
924dd2ecf8 Reduce the number of webrtc:: prefixes in code
This is achieved by moving most anonymous namespaces inside the
webrtc namespace and modifying as appropriate.

Bug: None
Change-Id: Iff299c45f92ae5aaa736722ed6630df9ad5525bf
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/454240
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#47077}
2026-03-06 06:29:19 -08:00
Fredrik Solenberg
ba16613703 Revert "Change ArrayView to std::span in common_audio/channel_buffer.h."
This reverts commit f39255a172.

Reason for revert: std::span is banned in Chromium

Original change's description:
> Change ArrayView to std::span in common_audio/channel_buffer.h.
>
> Bug: webrtc:439801349
> Change-Id: I4a9c6635daeaf1e36eed98088cc17e4876087eae
> Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/442460
> Commit-Queue: Fredrik Solenberg <solenberg@webrtc.org>
> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
> Reviewed-by: Per Åhgren <peah@webrtc.org>
> Cr-Commit-Position: refs/heads/main@{#46696}

Bug: webrtc:439801349
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Change-Id: I6b726bb79dce3f00cb4c1e1b330e746b9bbaa820
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/442960
Auto-Submit: Fredrik Solenberg <solenberg@webrtc.org>
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#46700}
2026-01-20 06:44:38 -08:00
Fredrik Solenberg
f39255a172 Change ArrayView to std::span in common_audio/channel_buffer.h.
Bug: webrtc:439801349
Change-Id: I4a9c6635daeaf1e36eed98088cc17e4876087eae
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/442460
Commit-Queue: Fredrik Solenberg <solenberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#46696}
2026-01-20 02:48:46 -08:00
Harald Alvestrand
97b46e1258 Run tools_webrtc/apply-clang-tidy on the repo
This uncovered the fact that its descent into third_party was
not yet prevented; added running gclient sync -f to the script so that
changes outside our repo would be reverted.

Bug: None
Change-Id: I18f4e75c57174b765ed941a062ed00613874f324
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/441061
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#46602}
2026-01-09 10:26:41 -08:00
Philipp Hancke
3b85fe40c2 build: remove test_main dependencies from more rtc_tests
Follow-up to
  https://webrtc-review.googlesource.com/c/src/+/432801

Bug: webrtc:467294026
Change-Id: Ic898b81fa606aae350b3b79b80a82f0827571933
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/440360
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Reviewed-by: Jeremy Leconte <jleconte@google.com>
Cr-Commit-Position: refs/heads/main@{#46593}
2026-01-09 01:39:22 -08:00
Per Åhgren
1270f5ce74 Eliminate quantization in 2-band split filter in WebRTC APM
This CL eliminates the issue of quantization in the 2-band splitfilter
in WebRTC APM

The code change has been tested offline on recordings and shown to
perform well.

Change-Id: Ic9b5cf35e040429afb7d0077a8dac6a6e208b4f9

Bug: webrtc:454152425
Change-Id: Ic9b5cf35e040429afb7d0077a8dac6a6e208b4f9
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/419200
Reviewed-by: Jesus de Vicente Pena <devicentepena@webrtc.org>
Commit-Queue: Per Åhgren <peah@webrtc.org>
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#46022}
2025-10-23 11:38:42 -07:00
Jordan
39e1a7ca16 Set update mechanism for static webrtc deps
These have now been approved.

Bug: chromium:419413343
Bug: chromium:419413497
Change-Id: I1191aa46e7893fa2e0469b90ed9ba53b168b4af9
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/410780
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Jordan Brown <rop@google.com>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45813}
2025-10-02 18:17:59 -07:00
Danil Chapovalov
f14761075c Use injected clock in Smoothing filters in OPUS encoder
Bug: webrtc:42223992
Change-Id: Ib98b387bc4647dc05b8b30c6bd2497ded721c950
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/406640
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45464}
2025-08-28 03:30:14 -07:00
Philipp Hancke
dec6b34b86 clang-tidy: apply readability-static-accessed-through-instance once
this generally produces too many false positives, in particular for ArrayView, doing it once produced some useful results.

drive-by: fix double typo "ConvertsToTimeDela" to "ConvertToTimeDelta".

Bug: webrtc:424706384
Change-Id: I7f05f1985b5778fcaef6317984602ebcd75f430d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/403508
Commit-Queue: Philipp Hancke <phancke@meta.com>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45334}
2025-08-13 09:44:54 -07:00
Harald Alvestrand
91c1c68065 Recompile clang-tidy at least every 30 days
This CL also takes out NOLINT statements that were
added because I was running a too-old clang-tidy.

Suggestions for better algorithms welcome.

Bug: webrtc:424706384
Change-Id: Ib4f237e15ee65168d65d17c7bda9ec3f1a881b7f
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/404160
Reviewed-by: Jeremy Leconte <jleconte@google.com>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45328}
2025-08-13 01:34:18 -07:00
Harald Alvestrand
85642b2e08 Add modernize-use-std-numbers to .clang-tidy
Drive-by: Exclude from analysis a couple of .get() that clang-tidy is wrong about removing.

Bug: webrtc:424706384
Change-Id: I843170b04ceed70f4eb6f131cc1f0ad72394c5b7
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/403540
Reviewed-by: Jeremy Leconte <jleconte@google.com>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45317}
2025-08-11 04:57:30 -07:00
Philipp Hancke
213119e51e Apply clang-tidy readability-redundant-smartptr-get
https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-smartptr-get.html
and
https://clang.llvm.org/extra/clang-tidy/checks/readability/named-parameter.html (which resulted only in a single change)

Done using
  tools/clang/scripts/build_clang_tools_extra.py \
    --fetch out/Default clang-tidy clang-apply-replacements
  ninja -C out/Default
  gn gen out/Default --export-compile-commands
  cd out/Default
  tools/clang/third_party/llvm/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py -p . \
    -clang-tidy-binary tools/clang/third_party/llvm/build/bin/clang-tidy \
    -clang-apply-replacements-binary \
        tools/clang/third_party/llvm/build/bin/clang-apply-replacements \
    -checks='-*,readability-redundant-smartptr-get,readability-named-parameter' \
    -fix
followed by
  git cl format

Bug: webrtc:424706384
Change-Id: Ie5a4077286d34c1363a1d341aca50a7047f6543b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/402584
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Philipp Hancke <phancke@meta.com>
Cr-Commit-Position: refs/heads/main@{#45247}
2025-07-31 01:37:54 -07:00
Philipp Hancke
61f0f4c83c Remove support for ancient MSVC (<2008) and ancient glib (<2012)
Bug: None
Change-Id: I13907e0aafb3a68a0d6bd33c861a3ee6d167a952
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/400240
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Philipp Hancke <phancke@meta.com>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45201}
2025-07-23 06:28:48 -07:00
Philipp Hancke
5f2c9278f3 Modernize deprecated headers in the root dir
Done using
  tools/clang/scripts/build_clang_tools_extra.py \
    --fetch out/Default clang-tidy clang-apply-replacements
  ninja -C out/Default
  gn gen out/Default --export-compile-commands
  cd out/Default
  tools/clang/third_party/llvm/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py -p . \
    -clang-tidy-binary out/Default/tools/clang/third_party/llvm/build/bin/clang-tidy \
    -clang-apply-replacements-binary \
        out/Default/tools/clang/third_party/llvm/build/bin/clang-apply-replacements \
    -checks='-*,modernize-deprecated-headers' \
    -fix
followed by
  git cl format
and a round of IWYU followed by more git cl format.

Bug: webrtc:424706384
Change-Id: Icd004fa4c834002416f2196261b6ef215ebe47d2
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/401145
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Philipp Hancke <phancke@meta.com>
Cr-Commit-Position: refs/heads/main@{#45196}
2025-07-22 11:17:04 -07:00
Philipp Hancke
9f42d00a21 IWYU common_audio
et al followed by
  find common_audio/ -name "*.h" -o -name "*.cc" | xargs tools_webrtc/iwyu/apply-include-cleaner
followed by
    tools_webrtc/gn_check_autofix.py -C out/Default/
and
  git cl format

C style headers were replaced with their C++ equivalents where they
showed up in the diff.

Bug: webrtc:42226242
Change-Id: Ic3f87925c93141c72dc8ce2ed7cf673dfd74851a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/397062
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Philipp Hancke <phancke@meta.com>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45135}
2025-07-11 01:23:31 -07:00
Philipp Hancke
81f4e7805b constexpr-ify unit tests
starting with
  git grep "^const char k" | grep unittest.cc | awk -F ':' '{print $1}' | sort | uniq | xargs sed -i 's/^const char /constexpr char /g'
and then repeating the same with each of
  uint8_t, uint32_t, uint16_t, size_t, int8_t, int16_t, int32_t, int64_t, double, uint64_t, unsigned int, float

The remainder can be seen with
  git grep "^const .* k" | grep unittest.cc  | awk '{print $2}' | sort | uniq -c | sort -b -n

Follow-up from
  https://webrtc-review.googlesource.com/c/src/+/398220

Bug: webrtc:429563452
No-Iwyu: large scale change
Change-Id: I04e8f35c001a159f006c8897dccf35f77bc9cacb
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/398647
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Philipp Hancke <phancke@meta.com>
Cr-Commit-Position: refs/heads/main@{#45111}
2025-07-07 18:22:55 -07:00
Philipp Hancke
2eca95977f clang-tidy: llvm-namespace-comment,readability-static-definition-in-anonymous-namespace
https://clang.llvm.org/extra/clang-tidy/checks/llvm/namespace-comment.html
https://clang.llvm.org/extra/clang-tidy/checks/readability/static-definition-in-anonymous-namespace.html

Done using clang-tidy with
  tools/clang/scripts/build_clang_tools_extra.py \
    --fetch out/Default clang-tidy clang-apply-replacements
  ninja -C out/Default
  gn gen out/Default --export-compile-commands
  cd out/Default
  tools/clang/third_party/llvm/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py -p . \
    -clang-tidy-binary out/Default/tools/clang/third_party/llvm/build/bin/clang-tidy \
    -clang-apply-replacements-binary \
        out/Default/tools/clang/third_party/llvm/build/bin/clang-apply-replacements \
    -checks='-*,llvm-namespace-comment,readability-static-definition-in-anonymous-namespace' \
    -fix

with some manual changes affecting webrtc_sdp.cc in PS2.

Bug: webrtc:424706384
Change-Id: I23f204d65787edc74ae02ef7bf129d8e3ade90f6
No-Iwyu: orthogonal LSC
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/396460
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Philipp Hancke <phancke@meta.com>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44947}
2025-06-16 14:29:31 -07:00
Philipp Hancke
c6d7e6c255 clang-tidy: modernize-use-override
https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-override.html

Done using clang-tidy with
  tools/clang/scripts/build_clang_tools_extra.py \
    --fetch out/Default clang-tidy clang-apply-replacements
  ninja -C out/Default
  gn gen out/Default --export-compile-commands
  cd out/Default
  tools/clang/third_party/llvm/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py -p . \
    -clang-tidy-binary out/Default/tools/clang/third_party/llvm/build/bin/clang-tidy \
    -clang-apply-replacements-binary \
        out/Default/tools/clang/third_party/llvm/build/bin/clang-apply-replacements \
    -checks='-*,modernize-use-override' \
    -fix

Bug: webrtc:424706384
No-Iwyu: orthogonal LSC
Change-Id: Id3676fc5a4f38ed67e39e567011e9bb4b98ee4cc
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/396421
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Philipp Hancke <phancke@meta.com>
Cr-Commit-Position: refs/heads/main@{#44941}
2025-06-16 08:37:19 -07:00
Philipp Hancke
de2bbb38ff Use std::numbers constants more
Part of modernizing to C++20.

Also prefer C++ std::isfinite to C macro, see
  https://en.cppreference.com/w/c/numeric/math/isfinite
vs
  https://en.cppreference.com/w/cpp/numeric/math/isfinite

Bug: None
Change-Id: I41c3173984a5bb5356b6774af3794d1b05798d37
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/394244
Reviewed-by: Guido Urdaneta <guidou@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Philipp Hancke <phancke@meta.com>
Cr-Commit-Position: refs/heads/main@{#44877}
2025-06-10 09:46:16 -07:00
Danil Chapovalov
b62b0b2c11 Cleanup arraysize usage in audio, common_audio and audio_processing
Bug: webrtc:407433458
Change-Id: Idb43ab79738c50a82065be9dd68fe2d2c8164001
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/392440
Auto-Submit: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Commit-Queue: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44876}
2025-06-10 08:55:10 -07:00
Fredrik Solenberg
5bed8aa1d1 Remove GetCPUFeaturesARM()
Fold GetCPUFeaturesARM() functionality into webrtc::cpu_info::Supports(), since it was only used to test for Neon support.

Bug: webrtc:42228262
Change-Id: If72a90e4d4edd695256cb36f8e074e7c15f43f75
No-iwyu: Avoid unrelated changes
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/393783
Auto-Submit: Fredrik Solenberg <solenberg@webrtc.org>
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44783}
2025-05-28 01:21:36 -07:00
Fredrik Solenberg
203aa90741 Remove system_wrappers/ GetCPUInfo() function.
Functionality moved to rtc_base/ cpu_info::Supports().

Bug: webrtc:42228262
Change-Id: I0ef2fc645447779aac2339580884ea042bdd315b
No-Iwyu: Avoid unrelated changes
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/393561
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Auto-Submit: Fredrik Solenberg <solenberg@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44768}
2025-05-27 02:13:30 -07:00
Tommi
5099aef700 Add AllocationCounter for common_audio_unittests
This test utility can be used for performance critical code that
must either perform no or a known quantity of heap allocations.
AllocationCounter can be used to count the number of allocations
done within a specific scope and pass/fail a test based on the
expected number of heap allocations.

To begin with there's one test included:

common_audio_unittests \
  --gtest_filter=AllocationCounterTest.CountsHeapAllocations

Bug: webrtc:0
Change-Id: Id349b33d10e147388b65319c63233bd3652d833c
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/393040
Reviewed-by: Per Åhgren <peah@webrtc.org>
Reviewed-by: Jakob Ivarsson‎ <jakobi@webrtc.org>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44745}
2025-05-23 06:26:24 -07:00
Tommi
285d5bf66b Make Resample10Msec with views return void and update PushResampler.
Since we're using views, there's liberal checking that the dimensions
are correct when calling methods such as CopySamples().
This allows us to remove error checks when calling Resample methods.

Bug: chromium:335805780
Change-Id: Ib7af879d3e7e7a84e4f10148ccc264b95134ef19
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/390922
Reviewed-by: Per Åhgren <peah@webrtc.org>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44669}
2025-05-16 11:21:47 -07:00
Harald Alvestrand
cc46fb91c5 Use std::numbers constants
Part of modernizing to C++20.

Bug: None
No-IWYU: Other cleanup
Change-Id: I2c53789d845486436f37c887b216e7d502c915ac
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/392104
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Evan Shrubsole <eshr@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44662}
2025-05-16 07:00:39 -07:00
Tommi
6b11987da4 Add ACMResampler::Resample10Msec() with support for views.
A follow up change will remove the version with raw pointers.

Bug: chromium:335805780
Change-Id: I8f5a18b152222daf5ce0abfb230f3e38a4e9e25e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/369741
Reviewed-by: Per Åhgren <peah@webrtc.org>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44608}
2025-05-13 07:51:15 -07:00
Andrew Grieve
f844699005 Fix license name in README.chromium for fft4g
Bug: chromium:414606466
Change-Id: I627dd5b01e157125c9811ec36086efd7e16855b1
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/389920
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Commit-Queue: Sam Zackrisson <saza@webrtc.org>
Auto-Submit: Andrew Grieve <agrieve@google.com>
Cr-Commit-Position: refs/heads/main@{#44522}
2025-05-06 07:34:15 -07:00
Philipp Hancke
0c0e991273 Remove shadowing variables in modules/audio_coding
BUG=webrtc:42223409

Change-Id: I5f4cf693173d00933b5c78d5f68b1a09ac423cae
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/386980
Reviewed-by: Jakob Ivarsson‎ <jakobi@webrtc.org>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Commit-Queue: Philipp Hancke <phancke@meta.com>
Cr-Commit-Position: refs/heads/main@{#44416}
2025-04-17 09:12:55 -07:00
Evan Shrubsole
9c4909ace0 Use webrtc name specifier instead of rtc/cricket in common_audio
WebRTC has unified all namespaces to webrtc, and the rtc:: and cricket::
name specifiers need to be replaced with webrtc::. This was generated using
a combination of clang AST rewriting tools and sed.

This CL was uploaded by git cl split.

Bug: webrtc:42232595
Change-Id: I001340df7e3724ad53e608875dd71e1c3a10b8ee
No-Iwyu: LSC
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/386680
Commit-Queue: Henrik Andreassson <henrika@webrtc.org>
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Auto-Submit: Evan Shrubsole <eshr@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44394}
2025-04-16 02:36:22 -07:00
Philipp Hancke
907a65fa9b remove shadowed variables in common_audio
BUG=webrtc:42223409

Change-Id: I17cdfc659cfec9647a92fc33814cab43c2ace3d0
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/383560
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Commit-Queue: Philipp Hancke <phancke@meta.com>
Cr-Commit-Position: refs/heads/main@{#44383}
2025-04-15 19:05:56 -07:00
Evan Shrubsole
652c771f05 Move time_utils.h and crypto_random.h to webrtc namespace
Bug: webrtc:42232595
Change-Id: I06d836b6ee37d94b1b79279d886bf841f228b778
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/382201
Auto-Submit: Evan Shrubsole <eshr@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44182}
2025-03-21 04:02:28 -07:00
Philipp Hancke
05eb774a24 Fix shadowing issues in some unit tests
BUG=webrtc:42223409

No-Iwyu: hard enough to review without IWYU already
Change-Id: Ia0f5e2527231c3d38117ad256e4b4058cb40c722
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/381500
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Philipp Hancke <phancke@meta.com>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44165}
2025-03-19 11:46:30 -07:00
Evan Shrubsole
e4b09d73b1 Move tests and fakes to webrtc namespace
- fake_video_renderer.h
- mock_channel_interface.h
- fake_network.h
- test_utils.h
- fake_webrtc_call.h
- fake_clock.h
- srtp_test_util.h
- fake_dtls_transport.h
- fake_network_interface.h
- fake_frame_source.h
- mock_packet_socket_factory.h
- fake_ssl_identity.h

Bug: webrtc:42232595
Change-Id: Ia363a95b7956d7c92fb87e4cf684bffe92c81409
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/381403
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Auto-Submit: Evan Shrubsole <eshr@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44141}
2025-03-17 07:22:17 -07:00
Evan Shrubsole
d200661994 Move sanitizer.h to webrtc namespace
Bug: webrtc:42232595
Change-Id: Iaaed4fc562de7ccf29122156b4434d4c4849cbbb
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/380920
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Auto-Submit: Evan Shrubsole <eshr@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44112}
2025-03-13 02:59:39 -07:00
Tomas Lundqvist
b4a81dbae4 Remove references, mentions and test files for iLBC.
Bug: webrtc:397867162
Change-Id: Ie24333d73843b36eed6fc5b5d4fa7ec5eb4fed10
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/378060
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Commit-Queue: Tomas Lundqvist <tomasl@google.com>
Reviewed-by: Per Kjellander <perkj@webrtc.org>
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44033}
2025-03-04 05:13:45 -08:00
Evan Shrubsole
ef95b20fbc Move safe_conversions.h to webrtc namespace
Bug: webrtc:42232595
Change-Id: I4145233e74fc684539d493423cafe142159fe8ff
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/378720
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Evan Shrubsole <eshr@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43973}
2025-02-25 00:45:04 -08:00
Evan Shrubsole
0ebd67f89d Move string_builder.h to webrtc namespace
Bug: webrtc:42232595
Change-Id: Iad12b11767c3bbaddcf0e87357e8e6037608defb
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/377740
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Evan Shrubsole <eshr@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43926}
2025-02-19 06:30:53 -08:00
Per Åhgren
cdd2922312 Update version of Ooura library import
Bug: chromium:362396811
Change-Id: I516e656f47e3801a443057090c073946dcbf8b58
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/373740
Commit-Queue: Per Åhgren <peah@webrtc.org>
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43703}
2025-01-10 01:54:10 -08:00
Boris Tsirkin
c940dba16a Format the rest of C files in the repo
Formatting done via:
git ls-files | grep -E '.*\.c$' | grep -Ev '^common_audio/signal_processing.*\.c$' | xargs clang-format -i

No-Iwyu: Includes didn't change and it isn't related to formatting
Bug: webrtc:42225392
Change-Id: Id78af8e3eceada9995e53b6a0fdc1a8cb5ffd1f3
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/373907
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43699}
2025-01-09 09:12:45 -08:00
Boris Tsirkin
7eb83a3a18 Add .clang-format in third_party folders to disable formatting
After applying this change, I reformatted the previously formatted files
and verified no changes were applied.

Bug: webrtc:42225392
Change-Id: I6079e1e85d94ae2bc892db1db81bc8223b3a08b7
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/374040
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43698}
2025-01-09 06:09:48 -08:00
Boris Tsirkin
7300bab325 Format /common_audio/signal_processing C files
I'm now going to format all C files as well. Formatting done via:
git ls-files | grep -E '^common_audio/signal_processing.*\.c$' | xargs clang-format -i

I split it because there are many formatting changes, so its easier to
review.

No-Iwyu: Includes didn't change and it isn't related to formatting
Bug: webrtc:42225392
Change-Id: Ic0f1752aa670984f8cda665dc2ef03ad32581797
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/373886
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43697}
2025-01-09 05:29:26 -08:00
Henrik Lundin
919e3acd13 Set version to N/A in spl_sqrt_floor README file
Bug: chromium:362397579
Change-Id: Ibf15f0790995aea755c00ff4e6d0c136f2973dda
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/370843
Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43526}
2024-12-10 10:09:44 +00:00
Henrik Lundin
dbd4bcaeb2 Update info for spl_sqrt_floor
There were a few typos in the README file.

Bug: chromium:362397579
Change-Id: Ib0aa84f57f3d83851f085e595ffa72a53ec8311d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/370880
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43525}
2024-12-10 09:29:30 +00:00
Björn Terelius
711e1a8beb Create a custom test launcher for android
Set use_default_launcher=false in rtc_test on android

Bug: webrtc:42223878
Change-Id: If05da40b420d5da8f9e0f39560eb07380ebada14
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/368921
Owners-Override: Jeremy Leconte <jleconte@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Jeremy Leconte <jleconte@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Jeremy Leconte <jleconte@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43505}
2024-12-06 09:30:37 +00:00
Björn Terelius
72b5769bb8 Test both WriteSamples overloads in WavWriterTest.LargeFile
Bug: webrtc:379973428
Change-Id: Id856e76dc521027bfd59521e20e23523526678eb
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/368900
Reviewed-by: Per Åhgren <peah@webrtc.org>
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43459}
2024-11-26 15:46:04 +00:00
Björn Terelius
05cf9c7235 Clean up temp files in WavWriterTest.LargeFile
Bug: webrtc:379973428
Change-Id: Ide7d8b3d348a25270d8c99a602bec475fcafddc6
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/368861
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43457}
2024-11-26 13:01:45 +00:00
Björn Terelius
c181432772 Add debug logging in WavWriterTest.LargeFile
Also CHECK in OutputPathWithRandomDirectory. This function is used in tests that need a unique folder to avoid interaction with other tests that may run in parallel. Continuing with a non-unique folder if the creation fails, is likely to cause surprising errors later on.

Bug: webrtc:379973428
Change-Id: I6a30ef9034be8132e2362eff5e46e3b99b30acd2
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/368542
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43431}
2024-11-20 18:12:01 +00:00