Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Issue 2870413004: Detect frames from rotated devices in VideoTrackAdapter on Android. (Closed)

Created:
3 years, 7 months ago by Guido Urdaneta
Modified:
3 years, 7 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, imcheng+watch_chromium.org, feature-media-reviews_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, jam, avayvod+watch_chromium.org, darin-cc_chromium.org, jasonroberts+watch_google.com, xjz+watch_chromium.org, mfoltz+watch_chromium.org, isheriff+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Detect 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@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -68 lines) Patch
M content/renderer/media/media_stream_constraints_util.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_constraints_util.cc View 2 chunks +7 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_constraints_util_unittest.cc View 24 chunks +82 lines, -23 lines 0 comments Download
M content/renderer/media/media_stream_constraints_util_video_content.cc View 1 chunk +5 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_constraints_util_video_device.cc View 1 chunk +4 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_video_source.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M content/renderer/media/media_stream_video_source_unittest.cc View 6 chunks +51 lines, -12 lines 0 comments Download
M content/renderer/media/media_stream_video_track_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/video_track_adapter.h View 2 chunks +14 lines, -6 lines 0 comments Download
M content/renderer/media/video_track_adapter.cc View 1 9 chunks +49 lines, -18 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Guido Urdaneta
Hi, PTAL
3 years, 7 months ago (2017-05-11 14:08:24 UTC) #6
Guido Urdaneta
friendly ping :)
3 years, 7 months ago (2017-05-15 14:06:59 UTC) #9
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/2870413004/diff/1/content/renderer/media/video_track_adapter.cc File content/renderer/media/video_track_adapter.cc (right): https://codereview.chromium.org/2870413004/diff/1/content/renderer/media/video_track_adapter.cc#newcode223 content/renderer/media/video_track_adapter.cc:223: #if defined(OS_ANDROID) this is the only OS_ check ...
3 years, 7 months ago (2017-05-15 19:15:45 UTC) #10
Guido Urdaneta
https://codereview.chromium.org/2870413004/diff/1/content/renderer/media/video_track_adapter.cc File content/renderer/media/video_track_adapter.cc (right): https://codereview.chromium.org/2870413004/diff/1/content/renderer/media/video_track_adapter.cc#newcode223 content/renderer/media/video_track_adapter.cc:223: #if defined(OS_ANDROID) On 2017/05/15 19:15:44, tommi (sloooow) - chröme ...
3 years, 7 months ago (2017-05-16 08:43:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2870413004/20001
3 years, 7 months ago (2017-05-16 08:43:54 UTC) #14
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 10:19:08 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/0ac21bec152a95d8edb8e759f765...

Powered by Google App Engine
This is Rietveld 408576698