forked from chromium/chromium
-
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.
webcodecs: Activate GPU side resizing for video encoding on Windows
There are 2 very different code paths that are called GPU side resizing: 1. Frames backed by D3D11 texture are scaled by PerformD3DScaling(), such frames usually come from web-cameras and this is supposed to be the most efficient way of scaling. 2. Frames backed by mappable GPU memory buffers in I420/NV12 formats are scaled by libyuv/ConvertAndScaleFrame() while being copied to CPU memory. This should also be more efficient than the status quo because we eliminate one extra memcpy from the GPU buffer to a mojo buffer. For example such frames are coming from capturing offscreen canvas. Bug: 1212955 Change-Id: I4ca62555736c009cc4f1893158759ee4f93430cf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3612726 Reviewed-by: Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Eugene Zemtsov <eugene@chromium.org> Cr-Commit-Position: refs/heads/main@{#997474}
- Loading branch information
Showing
3 changed files
with
33 additions
and
60 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