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

Issue 2555483005: Add ability to scale to arbitrary factors (Closed)

Created:
4 years ago by kthelgason
Modified:
4 years ago
Reviewers:
magjed_webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add ability to scale to arbitrary factors This CL adds a fallback for the case when no optimized scale factor produces a low enough resolution for what was requested. It also ensures that all resolutions provided by the video adapter are divisible by four. This is required by some hardware implementations. BUG=webrtc:6837 Committed: https://crrev.com/710c335d785b104bda4a912bd7909e4d27f9b04f Cr-Commit-Position: refs/heads/master@{#15469}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make resolution divisor configurable #

Patch Set 3 : Code review nit #

Patch Set 4 : rebase #

Total comments: 22

Patch Set 5 : Code review #

Total comments: 2

Patch Set 6 : Forgot an implementation #

Patch Set 7 : update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -26 lines) Patch
M webrtc/media/base/adaptedvideotracksource.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/media/base/adaptedvideotracksource.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/media/base/videoadapter.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/media/base/videoadapter.cc View 1 2 3 4 5 6 6 chunks +68 lines, -25 lines 0 comments Download
M webrtc/sdk/android/src/jni/androidvideotracksource.cc View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 31 (21 generated)
magjed_webrtc
I couldn't spot any obvious error. https://codereview.webrtc.org/2555483005/diff/1/webrtc/media/base/videoadapter.cc File webrtc/media/base/videoadapter.cc (right): https://codereview.webrtc.org/2555483005/diff/1/webrtc/media/base/videoadapter.cc#newcode60 webrtc/media/base/videoadapter.cc:60: if (diff < ...
4 years ago (2016-12-06 16:35:08 UTC) #3
magjed_webrtc
It looks like you can reproduce the failing test reliably, so I would recommend bisecting ...
4 years ago (2016-12-07 07:40:08 UTC) #4
kthelgason
PTAL. I've tested this in AppRTCMobile on device, and it seems to fix the issue ...
4 years ago (2016-12-07 12:35:25 UTC) #13
magjed_webrtc
https://codereview.webrtc.org/2555483005/diff/60001/webrtc/media/base/adaptedvideotracksource.h File webrtc/media/base/adaptedvideotracksource.h (right): https://codereview.webrtc.org/2555483005/diff/60001/webrtc/media/base/adaptedvideotracksource.h#newcode56 webrtc/media/base/adaptedvideotracksource.h:56: virtual cricket::VideoAdapter* video_adapter() { return &video_adapter_; } Don't make ...
4 years ago (2016-12-07 13:44:52 UTC) #14
kthelgason
https://codereview.webrtc.org/2555483005/diff/60001/webrtc/media/base/adaptedvideotracksource.h File webrtc/media/base/adaptedvideotracksource.h (right): https://codereview.webrtc.org/2555483005/diff/60001/webrtc/media/base/adaptedvideotracksource.h#newcode56 webrtc/media/base/adaptedvideotracksource.h:56: virtual cricket::VideoAdapter* video_adapter() { return &video_adapter_; } On 2016/12/07 ...
4 years ago (2016-12-08 08:42:03 UTC) #15
magjed_webrtc
lgtm % nit https://codereview.webrtc.org/2555483005/diff/80001/webrtc/media/base/videoadapter.cc File webrtc/media/base/videoadapter.cc (right): https://codereview.webrtc.org/2555483005/diff/80001/webrtc/media/base/videoadapter.cc#newcode42 webrtc/media/base/videoadapter.cc:42: // Round |valueToRound| to a multiple ...
4 years ago (2016-12-08 09:08:55 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2555483005/120001
4 years ago (2016-12-08 09:16:06 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-12-08 10:12:34 UTC) #28
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/710c335d785b104bda4a912bd7909e4d27f9b04f Cr-Commit-Position: refs/heads/master@{#15469}
4 years ago (2016-12-08 10:12:42 UTC) #30
kthelgason
4 years ago (2016-12-08 10:18:06 UTC) #31
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.webrtc.org/2557323002/ by kthelgason@webrtc.org.

The reason for reverting is: Issue discovered with scaling back up..

Powered by Google App Engine
This is Rietveld 408576698