Extend fake video codecs for high-bitrate tests

ConfigurableFrameSizeEncoder and the new ConfigurableFrameSizeDecoder
can now act as a synthetic codec that uses the generic RTP payload
format, for tests of calls at 100+ Mbps. With the encoder's new Config,
frame sizes follow the target bitrate exactly, encoding completes
asynchronously, and each frame carries a frame id and its capture time
so that receivers can measure latency and detect gaps, which the fake
codecs in test/ didn't support. Further options limit key frames to the
requested ones, set a playout delay and set whether the encoder reports
itself as hardware accelerated, which selects the CPU overuse thresholds
of VideoStreamEncoder. The defaults keep the encoder's current behavior.

PeerScenarioClient gets optional video encoder and decoder factory
callbacks, so that PeerScenario tests can use the codec, and loses the
unused use_fake_codecs option. The tests that use it follow in
https://webrtc-review.googlesource.com/c/src/+/514381.

Bug: none
Change-Id: I4f1461d88b5f6591c718ae182b541b98fb7b04c4
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/514800
Reviewed-by: Per Kjellander <perkj@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#49351}
10 files changed
tree: 99777f30ac4485b1c847d30c011895b2a0fbf1b6
  1. .agents/
  2. agents/
  3. api/
  4. audio/
  5. build_overrides/
  6. call/
  7. common_audio/
  8. common_video/
  9. data/
  10. docs/
  11. examples/
  12. experiments/
  13. g3doc/
  14. infra/
  15. knowledge_base/
  16. logging/
  17. media/
  18. modules/
  19. net/
  20. p2p/
  21. pc/
  22. resources/
  23. rtc_base/
  24. rtc_tools/
  25. rust/
  26. sdk/
  27. stats/
  28. system_wrappers/
  29. test/
  30. tools_webrtc/
  31. video/
  32. .clang-format
  33. .clang-tidy
  34. .git-blame-ignore-revs
  35. .gitignore
  36. .gn
  37. .mailmap
  38. .rustfmt.toml
  39. .style.mdformat
  40. .style.yapf
  41. .yapfignore
  42. AUTHORS
  43. BUILD.gn
  44. CODE_OF_CONDUCT.md
  45. codereview.settings
  46. DEPS
  47. DIR_METADATA
  48. ENG_REVIEW_OWNERS
  49. GEMINI.md
  50. LICENSE
  51. license_template.txt
  52. native-api.md
  53. OWNERS
  54. OWNERS_INFRA
  55. PATENTS
  56. PRESUBMIT.py
  57. presubmit_test.py
  58. presubmit_test_mocks.py
  59. pylintrc
  60. pylintrc_old_style
  61. README.chromium
  62. README.md
  63. unsafe_buffers_paths.txt
  64. vpython.toml
  65. vpython.toml.uv.lock
  66. WATCHLISTS
  67. webrtc.gni
  68. webrtc_lib_link_test.cc
  69. whitespace.txt
README.md

WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.

Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.

The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.

Development

See here for instructions on how to get started developing with the native code.

Authoritative list of directories that contain the native API header files.

More info