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

Issue 189513004: Make sure natural_size is set when a frame is cropped. (Closed)

Created:
6 years, 9 months ago by perkj_chrome
Modified:
6 years, 9 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Make sure natural_size is set when a frame is cropped. If the natural size is not set, the <video> tag will set its properties videoHeight and videoWidth to the original, uncropped width and height.If that is used for deciding the <video> render size- the aspect ratio will be wrong. This cl allow setting the natural_size as well as the visible_rect when calling media::VideoFrame::WrapVideoFrame. BUG=349450 R=fischman@chromium.org, tommi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255839

Patch Set 1 #

Patch Set 2 : Removed DCHECK of natural size since the decoder pipeline do not abey. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -5 lines) Patch
M content/renderer/media/media_stream_video_source.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/video_frame.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/base/video_frame.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M media/base/video_frame_pool.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/video_frame_unittest.cc View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
perkj_chrome
Hej I also need to set the natural_size when doing cropping. Can you please review?
6 years, 9 months ago (2014-03-07 12:32:41 UTC) #1
tommi (sloooow) - chröme
rs lgtm (counting on Ami to do most of the work :))
6 years, 9 months ago (2014-03-07 14:45:55 UTC) #2
Ami GONE FROM CHROMIUM
LGTM but please add a test that verifies this stuff actually works. Either a layouttest ...
6 years, 9 months ago (2014-03-07 18:52:06 UTC) #3
perkj_chrome
We have WebRtcGetUserMediaBrowserTest TestGetUserMediaAspectRatio that fails if the aspect ratio is not correct or cropping ...
6 years, 9 months ago (2014-03-07 22:19:46 UTC) #4
perkj_chrome
We have WebRtcGetUserMediaBrowserTest TestGetUserMediaAspectRatio that fails if the aspect ratio is not correct or cropping ...
6 years, 9 months ago (2014-03-07 22:19:46 UTC) #5
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 9 months ago (2014-03-07 22:20:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/189513004/1
6 years, 9 months ago (2014-03-07 22:23:42 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 22:29:16 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel, mac_chromium_rel
6 years, 9 months ago (2014-03-07 22:29:16 UTC) #9
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 9 months ago (2014-03-08 08:08:05 UTC) #10
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 9 months ago (2014-03-08 08:31:32 UTC) #11
perkj_chrome
The CQ bit was unchecked by perkj@chromium.org
6 years, 9 months ago (2014-03-08 10:40:45 UTC) #12
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 9 months ago (2014-03-08 10:42:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/189513004/20001
6 years, 9 months ago (2014-03-08 11:07:02 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 12:43:45 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=278173
6 years, 9 months ago (2014-03-08 12:43:46 UTC) #16
perkj_chrome
6 years, 9 months ago (2014-03-09 09:17:40 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 manually as r255839 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698