DescriptionDetect frames from rotated devices in VideoTrackAdapter on Android.
On Android, when a device is rotated, frames from the camera arrive with
width and height swapped. The VideoTrackAdapter was unable to detect this
and instead cropped them incorrectly because it treated the rotated
dimension as a violation of the maximum size settings.
This CL provides a simple mechanism to detect this problem on Android.
If the frame arrives from the camera with width and height swapped from
what was expected, treat it as a valid frame that does not need to be
adjusted.
BUG=718823
Review-Url: https://codereview.chromium.org/2870413004
Cr-Commit-Position: refs/heads/master@{#472057}
Committed: https://chromium.googlesource.com/chromium/src/+/0ac21bec152a95d8edb8e759f765a512d552357c
Patch Set 1 #
Total comments: 2
Patch Set 2 : address comment by tommi@ #Messages
Total messages: 17 (11 generated)
|