commit | d738071e631b8f8302167f86af68e0d1ce4b763e | [log] [tgz] |
---|---|---|
author | Niels Möller <nisse@webrtc.org> | Wed Mar 06 09:09:47 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Mar 06 11:11:48 2019 |
tree | 0709fb1a4eec009914c4181f25216e88f116cc4f | |
parent | 9df335374a00381f0f763d02838c2a115197df41 [diff] |
Refactor FakeEncoder to avoid writing to a const EncodedImage 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.
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.