d738071e631b8f8302167f86af68e0d1ce4b763e

Subclasses of FakeEncoder need to fill out the CodecSpecificInfo and RTPFragmentationHeader, and they also write to the encoded data of the EncodedImage. This used to be done by subclasses chaining onto the parent's OnEncodedImage callback, but that's not so nice, since the EncodedImage argument is passed as a const ref there. This change introduces a protected method EncodeHook for this purpose. FakeEncoder calls this prior to calling OnEncodedImage, with non-const pointers. In addition, change FakeEncoder to use EncodedImage::Allocate, rather than explicit new and delete. Bug: webrtc:9378 Change-Id: Ie8182d1d5224aa3b7f15905612f6dbcebef0a555 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/125880 Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26988}
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 http://www.webrtc.org/native-code/development 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
- Official web site: http://www.webrtc.org
- Master source code repo: https://webrtc.googlesource.com/src
- Samples and reference apps: https://github.com/webrtc
- Mailing list: http://groups.google.com/group/discuss-webrtc
- Continuous build: http://build.chromium.org/p/client.webrtc
- Coding style guide
- Code of conduct
Description
Languages
C++
88.6%
C
3.3%
Java
3%
Objective-C++
1.9%
Python
1.9%
Other
1%