commit | f412976eca10676cdd3bae5c17de52729d1284b9 | [log] [tgz] |
---|---|---|
author | Henrik Boström <hbos@webrtc.org> | Mon Mar 22 09:22:54 2021 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Mar 22 11:09:36 2021 |
tree | f8383bbfc9d13aaa1e3653ff1e46b417b52b7a4f | |
parent | 50d79babcd37e0de20d9333f6dee9c789dc841e7 [diff] |
Provide a default implementation of NV12BufferInterface::CropAndScale. This avoids falling back on the VideoFrameBuffer::CropAndScale default implementation which performs ToI420. This has two major benefits: 1. We save CPU by not converting to I420 for NV12 frames. 2. We make is possible for simulcast encoders to use Scale() and be able to trust that the scaled simulcast layers have the same pixel format as the top layer, which is required by libvpx. In order to invoke NV12Buffer::CropAndScaleFrom() without introducing a circular dependency, nv12_buffer.[h/cc] is moved to the "video_frame" build target. Bug: webrtc:12595, webrtc:12469 Change-Id: I81aac5c6b3e81c49f32a7be6dc2640e6b40f7692 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/212643 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Evan Shrubsole <eshr@google.com> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33521}
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.