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

Issue 2310853002: Refactor QualityScaler and MovingAverage (Closed)

Created:
4 years, 3 months ago by kthelgason
Modified:
4 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhengzhonghou_agora.io, video-team_agora.io, stefan-webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Refactor QualityScaler and MovingAverage The MovingAverage class was very specific to the QualityScaler. This commit generalizes the MovingAverage class to be useful in other situations as well, and adapts the QualityScaler to use the new MovingAverage. BUG=webrtc:6304 Committed: https://crrev.com/194f40a2e77481b727e6656a6945bc23180eb9ff Cr-Commit-Position: refs/heads/master@{#14207}

Patch Set 1 #

Total comments: 19

Patch Set 2 : Refactor according to review #

Patch Set 3 : add missing include #

Patch Set 4 : update gyp files #

Total comments: 12

Patch Set 5 : Review round 2 #

Total comments: 1

Patch Set 6 : fix nit #

Patch Set 7 : fix build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -130 lines) Patch
M webrtc/modules/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/modules.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/video_coding/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/video_coding/utility/moving_average.h View 1 2 3 4 1 chunk +10 lines, -48 lines 0 comments Download
A webrtc/modules/video_coding/utility/moving_average.cc View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
A webrtc/modules/video_coding/utility/moving_average_unittest.cc View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/utility/quality_scaler.h View 1 2 3 4 1 chunk +8 lines, -9 lines 0 comments Download
M webrtc/modules/video_coding/utility/quality_scaler.cc View 1 2 3 4 5 6 6 chunks +77 lines, -72 lines 0 comments Download
M webrtc/modules/video_coding/utility/quality_scaler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/video_coding/utility/video_coding_utility.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 55 (33 generated)
kthelgason
4 years, 3 months ago (2016-09-05 09:02:00 UTC) #3
sakal
https://codereview.webrtc.org/2310853002/diff/1/webrtc/modules/video_coding/utility/moving_average.cc File webrtc/modules/video_coding/utility/moving_average.cc (right): https://codereview.webrtc.org/2310853002/diff/1/webrtc/modules/video_coding/utility/moving_average.cc#newcode2 webrtc/modules/video_coding/utility/moving_average.cc:2: * Copyright (c) 2015 The WebRTC project authors. All ...
4 years, 3 months ago (2016-09-05 12:28:11 UTC) #5
kthelgason
Closing this for now. Going to go another route and use ExpFilter instead and delete ...
4 years, 3 months ago (2016-09-05 14:58:18 UTC) #6
magjed_webrtc
Write the bugs as BUG=webrtc:6304,webrtc:5557 https://codereview.webrtc.org/2310853002/diff/1/webrtc/modules/video_coding/utility/moving_average.cc File webrtc/modules/video_coding/utility/moving_average.cc (right): https://codereview.webrtc.org/2310853002/diff/1/webrtc/modules/video_coding/utility/moving_average.cc#newcode26 webrtc/modules/video_coding/utility/moving_average.cc:26: return GetAverage(count_ + 1); ...
4 years, 3 months ago (2016-09-05 15:01:53 UTC) #7
kthelgason
This is ready for review. The android trybot failure is unrelated.
4 years, 3 months ago (2016-09-07 09:31:29 UTC) #21
sakal
https://codereview.webrtc.org/2310853002/diff/60001/webrtc/modules/video_coding/utility/moving_average.cc File webrtc/modules/video_coding/utility/moving_average.cc (right): https://codereview.webrtc.org/2310853002/diff/60001/webrtc/modules/video_coding/utility/moving_average.cc#newcode35 webrtc/modules/video_coding/utility/moving_average.cc:35: if (sum == 0) What is this special case ...
4 years, 3 months ago (2016-09-07 09:47:21 UTC) #22
magjed_webrtc
https://codereview.webrtc.org/2310853002/diff/60001/webrtc/modules/video_coding/utility/moving_average.cc File webrtc/modules/video_coding/utility/moving_average.cc (right): https://codereview.webrtc.org/2310853002/diff/60001/webrtc/modules/video_coding/utility/moving_average.cc#newcode33 webrtc/modules/video_coding/utility/moving_average.cc:33: return rtc::Optional<int>(0); I find it more intuitive if we ...
4 years, 3 months ago (2016-09-07 11:55:16 UTC) #23
kthelgason
https://codereview.webrtc.org/2310853002/diff/60001/webrtc/modules/video_coding/utility/moving_average.cc File webrtc/modules/video_coding/utility/moving_average.cc (right): https://codereview.webrtc.org/2310853002/diff/60001/webrtc/modules/video_coding/utility/moving_average.cc#newcode35 webrtc/modules/video_coding/utility/moving_average.cc:35: if (sum == 0) On 2016/09/07 09:47:21, sakal wrote: ...
4 years, 3 months ago (2016-09-07 12:31:46 UTC) #24
sakal
lgtm https://codereview.webrtc.org/2310853002/diff/80001/webrtc/modules/video_coding/utility/quality_scaler.cc File webrtc/modules/video_coding/utility/quality_scaler.cc (right): https://codereview.webrtc.org/2310853002/diff/80001/webrtc/modules/video_coding/utility/quality_scaler.cc#newcode95 webrtc/modules/video_coding/utility/quality_scaler.cc:95: if (fast_rampup_) nit: num_samples_upscale_ = framerate * (fast_rampup_ ...
4 years, 3 months ago (2016-09-08 08:21:41 UTC) #29
magjed_webrtc
lgtm Is issue webrtc:5557 related to this CL? It looks like that issue was already ...
4 years, 3 months ago (2016-09-08 10:08:36 UTC) #31
kthelgason
On 2016/09/08 10:08:36, magjed_webrtc wrote: > lgtm > > Is issue webrtc:5557 related to this ...
4 years, 3 months ago (2016-09-08 10:27:37 UTC) #32
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/2310853002/100001
4 years, 3 months ago (2016-09-09 08:58:02 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: ios64_gyp_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios64_gyp_dbg/builds/343) ios64_gyp_rel on master.tryserver.webrtc (JOB_FAILED, ...
4 years, 3 months ago (2016-09-09 08:59:55 UTC) #38
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/2310853002/120001
4 years, 3 months ago (2016-09-09 09:10:18 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/8224)
4 years, 3 months ago (2016-09-09 09:39:23 UTC) #43
kthelgason
On 2016/09/09 09:39:23, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 3 months ago (2016-09-09 10:13:55 UTC) #44
pbos-webrtc
On 2016/09/09 10:13:55, kthelgason wrote: > On 2016/09/09 09:39:23, commit-bot: I haz the power wrote: ...
4 years, 3 months ago (2016-09-12 19:54:19 UTC) #45
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/2310853002/120001
4 years, 3 months ago (2016-09-13 09:49:24 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 3 months ago (2016-09-13 11:49:56 UTC) #49
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/2310853002/120001
4 years, 3 months ago (2016-09-14 09:13:24 UTC) #51
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-14 09:15:02 UTC) #53
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 09:15:10 UTC) #55
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/194f40a2e77481b727e6656a6945bc23180eb9ff
Cr-Commit-Position: refs/heads/master@{#14207}

Powered by Google App Engine
This is Rietveld 408576698