commit | 56db9ff1e1565fa8584be338ea30741d33dfa2e5 | [log] [tgz] |
---|---|---|
author | Henrik Boström <hbos@webrtc.org> | Wed Mar 24 08:06:45 2021 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Mar 24 09:43:11 2021 |
tree | 89385b3686bc9279b72f0d44fdddc7c9502ccade | |
parent | 5cf8c2c5010472de3b360d3b45f1b80644899290 [diff] |
VideoStreamEncoder: Don't map kNative video frame buffers. Follow-up CL to VP8 and VP9 encoders taking care of mapping. Context again: This CL is part of Optimized Scaling efforts. In Chromium, the native frame buffer is getting an optimized CropAndScale() implementation. To support HW accelerated scaling, returning pre-scaled images and skipping unnecessary intermediate downscales, WebRTC needs to 1) use CropAndScale instead of libyuv::XXXXScale and 2) only map buffers it actually intends to encode. In this CL, VideoStreamEncoder no longer calls GetMappedFrameBuffer() on behalf of the encoders, since the encoders are now able to either do the mapping or performs ToI420() anyway. - Tests for old VSE behaviors are updated to test the new behavior (i.e. that native frames are pretty much always forwarded). - The "having to call ToI420() twice" workaround to Android bug https://crbug.com/webrtc/12602 is added to H264 and AV1 encoders. Bug: webrtc:12469 Change-Id: Ibdc2e138d4782a140f433c8330950e61b9829f43 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/211940 Commit-Queue: Henrik Boström <hbos@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Evan Shrubsole <eshr@google.com> Cr-Commit-Position: refs/heads/master@{#33548}
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 here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.