forked from JumpingYang001/webrtc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reviewed-by: Evan Shrubsole <[email protected]> Commit-Queue: Henrik Boström <[email protected]> Cr-Commit-Position: refs/heads/master@{#33521}
- Loading branch information
Showing
7 changed files
with
24 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters