-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RTCVDAdapter: Don't copy EncodedImage in converting DecoderBuffer
The current webrtc video decoder copies a bitstream buffer two times; (1) webrtc::EncodedImage => media::DecoderBuffer in RTCVideoDecoderAdapter::Decode(), and (2) media::DecoderBuffer => mojo pipe in MojoVideoDecoder::Decode(). This CL removes the first copy. chrome://tracing [1] shows this saved 4us out of 21us in 3Mbps decoding, ConvertToDecoderBuffer: 7us -> 3us FallbackWrapper::Decode(): 21us -> 16us [1] https://imgur.com/a/cgpDW6s Bug: b:241349739 Test: webrtc playground Change-Id: I2c4640e354d473bb6fa77aadca3fa327c88fe271 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3999071 Reviewed-by: Ilya Nikolaevskiy <ilnik@chromium.org> Commit-Queue: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/main@{#1070567}
- Loading branch information
Hirokazu Honda
authored and
Chromium LUCI CQ
committed
Nov 11, 2022
1 parent
6ba0dc9
commit 5effd94
Showing
5 changed files
with
89 additions
and
33 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