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

Issue 1966273002: VideoAdapter: Add cropping based on OnOutputFormatRequest() (Closed)

Created:
4 years, 7 months ago by magjed_webrtc
Modified:
4 years, 7 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun, AlexG
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

VideoAdapter: Add cropping based on OnOutputFormatRequest() If OnOutputFormatRequest() is called, VideoAdapter will crop to the same aspect ratio as the requested format. The output from VideoAdapter.AdaptFrameResolution() now contains both how to crop the input frame, and how to scale the cropped frame to the final adapted resolution. BUG=b/28622232 Committed: https://crrev.com/709f73c04eaa7aee66cafb1f5e7b28069f20d325 Cr-Commit-Position: refs/heads/master@{#12732}

Patch Set 1 : #

Total comments: 15

Patch Set 2 : Add cropping test #

Patch Set 3 : Set |interval_next_frame_| to 0 in OnOutputFormatRequest() #

Patch Set 4 : Adjust cropping to get even scale factor #

Total comments: 1

Patch Set 5 : reset interval_next_frame_ #

Patch Set 6 : Remove unused variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+599 lines, -327 lines) Patch
M webrtc/media/base/videoadapter.h View 2 chunks +20 lines, -15 lines 0 comments Download
M webrtc/media/base/videoadapter.cc View 1 2 3 4 5 5 chunks +140 lines, -136 lines 0 comments Download
M webrtc/media/base/videoadapter_unittest.cc View 1 2 3 15 chunks +427 lines, -164 lines 0 comments Download
M webrtc/media/base/videocapturer.cc View 2 chunks +12 lines, -12 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
magjed_webrtc
nisse@ - Please take a look. glaznev@ - FYI, but review if you want.
4 years, 7 months ago (2016-05-11 17:43:40 UTC) #3
nisse-webrtc
I'd like perkj@ to have a look too, since he wrote most of the current ...
4 years, 7 months ago (2016-05-12 09:48:46 UTC) #6
magjed_webrtc
perkj - Please take a look.
4 years, 7 months ago (2016-05-12 10:58:38 UTC) #7
perkj_webrtc
lgtm if one test is added. https://codereview.webrtc.org/1966273002/diff/20001/webrtc/media/base/videoadapter_unittest.cc File webrtc/media/base/videoadapter_unittest.cc (right): https://codereview.webrtc.org/1966273002/diff/20001/webrtc/media/base/videoadapter_unittest.cc#newcode713 webrtc/media/base/videoadapter_unittest.cc:713: please add test ...
4 years, 7 months ago (2016-05-12 13:32:34 UTC) #8
magjed_webrtc
https://codereview.webrtc.org/1966273002/diff/20001/webrtc/media/base/videoadapter.h File webrtc/media/base/videoadapter.h (right): https://codereview.webrtc.org/1966273002/diff/20001/webrtc/media/base/videoadapter.h#newcode43 webrtc/media/base/videoadapter.h:43: int* out_width, On 2016/05/12 09:48:46, nisse-webrtc wrote: > Would ...
4 years, 7 months ago (2016-05-13 07:57:09 UTC) #9
nisse-webrtc
https://codereview.webrtc.org/1966273002/diff/20001/webrtc/media/base/videoadapter.cc File webrtc/media/base/videoadapter.cc (right): https://codereview.webrtc.org/1966273002/diff/20001/webrtc/media/base/videoadapter.cc#newcode151 webrtc/media/base/videoadapter.cc:151: interval_next_frame_ %= requested_format_->interval; If it is ensured that input_interval ...
4 years, 7 months ago (2016-05-13 07:58:19 UTC) #10
magjed_webrtc
https://codereview.webrtc.org/1966273002/diff/20001/webrtc/media/base/videoadapter.cc File webrtc/media/base/videoadapter.cc (right): https://codereview.webrtc.org/1966273002/diff/20001/webrtc/media/base/videoadapter.cc#newcode151 webrtc/media/base/videoadapter.cc:151: interval_next_frame_ %= requested_format_->interval; On 2016/05/13 07:58:19, nisse-webrtc wrote: > ...
4 years, 7 months ago (2016-05-13 09:12:59 UTC) #11
magjed_webrtc
nisse - Please take another look. Cropping is now adjusted to get a perfect scale ...
4 years, 7 months ago (2016-05-13 10:49:50 UTC) #12
nisse-webrtc
LGTM Please consider the % comment, but I don't insist. https://codereview.webrtc.org/1966273002/diff/20001/webrtc/media/base/videoadapter.cc File webrtc/media/base/videoadapter.cc (right): https://codereview.webrtc.org/1966273002/diff/20001/webrtc/media/base/videoadapter.cc#newcode151 ...
4 years, 7 months ago (2016-05-13 11:47:06 UTC) #13
magjed_webrtc
https://codereview.webrtc.org/1966273002/diff/20001/webrtc/media/base/videoadapter.cc File webrtc/media/base/videoadapter.cc (right): https://codereview.webrtc.org/1966273002/diff/20001/webrtc/media/base/videoadapter.cc#newcode151 webrtc/media/base/videoadapter.cc:151: interval_next_frame_ %= requested_format_->interval; On 2016/05/13 11:47:06, nisse-webrtc wrote: > ...
4 years, 7 months ago (2016-05-13 14:22:28 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1966273002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1966273002/100001
4 years, 7 months ago (2016-05-13 14:22:47 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_rel/builds/13310)
4 years, 7 months ago (2016-05-13 14:25:56 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1966273002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1966273002/120001
4 years, 7 months ago (2016-05-13 14:55:23 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 7 months ago (2016-05-13 17:26:03 UTC) #24
commit-bot: I haz the power
4 years, 7 months ago (2016-05-13 17:26:11 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/709f73c04eaa7aee66cafb1f5e7b28069f20d325
Cr-Commit-Position: refs/heads/master@{#12732}

Powered by Google App Engine
This is Rietveld 408576698