commit | 969ccf0e12d4494aaf7c9bb4c93e289990c99d12 | [log] [tgz] |
---|---|---|
author | Erik Språng <sprang@webrtc.org> | Mon Jun 15 14:52:13 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Jun 15 19:14:52 2020 |
tree | b0922e111eaece8cbe6a733ca2048a2943c491f3 | |
parent | 9b526180c9e9722d3fc7f8689da6ec094fc7fc0a [diff] |
Reland "VP9 decoder: Sets thread count based on resolution, reinit on change." This is a reland of d5925756980f6e82a55f57532c8d855e954459fb Patchset 2 is a reland of https://webrtc-review.googlesource.com/c/src/+/177012 Patchset 3 is a fix for a potential crash when InitDecode()is called from VideoStreamDecoderImpl::GetDecoder(), where the decoder_settings parameter is a but surprisingly set to nullptr. Original change's description: > VP9 decoder: Sets thread count based on resolution, reinit on change. > > Previously, number of decoder threads for VP9 were always set to 8 but > with a cap at number of cores. This was done since we "can't know" the > resolution that will be used. > > With this change, we now intialize the number of threads based on > resolution given in InitDecode(). If a resolution change happens in > flight, it requires a keyframe. We therefore parse the header from > any key frame and if it has a new resolution, we re-initialize the > decoder. > > The number of threads used is based on pixel count. We set one thread > as target for 1280x720, and scale up lineraly from there. The 8-thread > cap is gone, but still limit it core count. > > This means for instance: 1 <= 720p, 2 for 1080p, 4 for 1440p, 9 for 4K. > > Bug: webrtc:11551 > Change-Id: I14c169a6c651c50bd1b870c4b22bc4495c8448fd > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/174460 > Commit-Queue: Erik Språng <sprang@webrtc.org> > Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#31507} Bug: webrtc:11551 Change-Id: I2b4b146d0b8319f07ce1660202d6aa4b374eb015 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/177246 Reviewed-by: Johannes Kron <kron@webrtc.org> Commit-Queue: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31527}
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.