DescriptionPepperVideoSourceHost: Use natural_size instead of visible_rect.size
media::VideoFrame may be scaled lazily by having natural_size < visible_rect.size. PepperVideoSourceHost currently ignores this and sends the full resolution to the effects plugin anyway. This CL makes PepperVideoSourceHost respect natural_size by downscaling the frame if necessary before sending it to the effects plugin.
TEST=Open the camera in 1080p with e.g. https://apprtc.appspot.com/?debug=loopback&video=minWidth=1920,minHeight=1080. Join a Hangouts. Natural size will be set to 720p and trigger a rescaling.
Committed: https://crrev.com/e70be8b8758721593fa462ed08b2bcd63c21e6d1
Cr-Commit-Position: refs/heads/master@{#305031}
Patch Set 1 #
Total comments: 4
Patch Set 2 : bbudge@s comments #
Messages
Total messages: 12 (3 generated)
|