DescriptionFullscreen tab capture: Prefer standard resolutions
While testing the use of auto-throttling capture with fullscreen
content, it became clear that using the user's screen size as a maximum
resulted in poor-quality scaling situations. For example, logic which
fits the 16:9 content into a screen with 768 vertical lines resulted in
an odd 1365x768 capture resolution that looked a bit blurry.
This change adds logic to detect when a common video aspect ratio is
being used, such as 16:9, and rounds down to a standard resolution with
even dimensions. For example, 1365x768 is rounded down to 1280x720.
BUG=156767
Committed: https://crrev.com/e29bedb115b69f5c647ae7bcdcd72cc2435b2060
Cr-Commit-Position: refs/heads/master@{#341220}
Patch Set 1 : #
Total comments: 4
Patch Set 2 : Only applies to variable-resolution use cases, and add unit tests. #
Messages
Total messages: 11 (4 generated)
|