Contact emails
h...@chromium.org

Specification
https://w3c.github.io/webrtc-extensions/#dom-rtcrtpencodingparameters-scaleresolutiondownto

Summary

An API that configures WebRTC encoders to scale input frames if they are 
greater than the specified maxWidth and maxHeight. This API is similar to 
scaleResolutionDownBy except that resolution constraints are expressed in 
absolute terms (e.g. 640x360) as opposed to relative terms (e.g. scale down 
by 2), avoiding race conditions related to changing input frame size on the 
fly.


In particular, when simulcast is used to send multiple resolutions (e.g. 
720p + 360p), the app may dynamically turn the top layer(s) on and off. 
Having an API that gives the app a race-free way to adjust the track 
resolution accordingly can have big performance wins, e.g. video effects 
processing on a 360p track instead of a 720p track when all we're sending 
is 360p. The old way to do this "scale down by factor X" is racy when track 
resolution changes dynamically (e.g. momentarily doing 360p + 180p or 
temporarily disabling encoding), which is not ideal for receive side 
quality. Not nice API ergonomics either.

Blink component
Blink>WebRTC>PeerConnection 
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EWebRTC%3EPeerConnection>

TAG review status
Not applicable - small addition to existing API

Risks


Interoperability and Compatibility

None assuming all browsers implement this, otherwise the app can always 
fall back to the old way of configuring scaling factors (the 
scaleResolutionDown*By* API)

*Gecko*: https://github.com/mozilla/standards-positions/issues/1071
*WebKit*: https://github.com/WebKit/standards-positions/issues/396

*Web developers*:
Positive (hearts and positive feedback on issue 
<https://github.com/w3c/webrtc-extensions/issues/159> and positively 
received in Virtual Interim)

WebView application risks

None


Will this feature be supported on all six Blink platforms (Windows, Mac, 
Linux, ChromeOS, Android, and Android WebView)?
Yes

Is this feature fully tested by web-platform-tests 
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
?
Yes


Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5206373705711616?gate=5103417056559104

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/24f357fa-a385-4600-ad78-26195ab3600fn%40chromium.org.

Reply via email to