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

Issue 2688613003: Introduce ThresholdCurve (avoids code duplication between PLR/RPLR-based FecController) (Closed)

Created:
3 years, 10 months ago by elad.alon
Modified:
3 years, 8 months ago
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Avoid code duplication between PLR/RPLR-based FecController BUG=webrtc:7058 Review-Url: https://codereview.webrtc.org/2688613003 Cr-Commit-Position: refs/heads/master@{#17437} Committed: https://chromium.googlesource.com/external/webrtc/+/326263a678cc84ce08d141d7e507c0282fa61200

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Code rebased. #

Patch Set 4 : nit #

Total comments: 4

Patch Set 5 : Ignore (bad rebase) #

Patch Set 6 : Rebase #

Patch Set 7 : . #

Total comments: 2

Patch Set 8 : s/point/curve in one comment. #

Patch Set 9 : s/place/space #

Patch Set 10 : . #

Total comments: 1

Patch Set 11 : . #

Total comments: 42

Patch Set 12 : Add horizontal threshold check. #

Total comments: 1

Patch Set 13 : . #

Patch Set 14 : . #

Total comments: 1

Patch Set 15 : P.S: Additional constraints on UT values. #

Patch Set 16 : . #

Patch Set 17 : Use static function in place of ternary expression. #

Total comments: 53

Patch Set 18 : . #

Patch Set 19 : Rebased #

Patch Set 20 : Narrowing conversion #

Total comments: 6

Patch Set 21 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+781 lines, -263 lines) Patch
M webrtc/modules/audio_coding/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +11 lines, -12 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.h View 1 5 4 chunks +5 lines, -38 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +20 lines, -69 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based_unittest.cc View 1 2 3 4 5 12 13 14 15 3 chunks +14 lines, -15 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_rplr_based.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +5 lines, -42 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_rplr_based.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +14 lines, -69 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_rplr_based_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +16 lines, -18 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +118 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +576 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (15 generated)
elad.alon_webrtc.org
Ready for review.
3 years, 10 months ago (2017-02-09 14:25:52 UTC) #3
minyue-webrtc
https://codereview.webrtc.org/2688613003/diff/60001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h File webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h (right): https://codereview.webrtc.org/2688613003/diff/60001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h#newcode20 webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h:20: struct ThresholdCurve { I think this can be made ...
3 years, 9 months ago (2017-03-22 11:35:08 UTC) #4
elad.alon_webrtc.org
https://codereview.webrtc.org/2688613003/diff/60001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h File webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h (right): https://codereview.webrtc.org/2688613003/diff/60001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h#newcode20 webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h:20: struct ThresholdCurve { On 2017/03/22 11:35:07, minyue-webrtc wrote: > ...
3 years, 9 months ago (2017-03-22 12:11:20 UTC) #5
minyue-webrtc
On 2017/03/22 12:11:20, elad.alon wrote: > https://codereview.webrtc.org/2688613003/diff/60001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h > File webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h > (right): > > https://codereview.webrtc.org/2688613003/diff/60001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h#newcode20 ...
3 years, 9 months ago (2017-03-22 12:20:38 UTC) #6
minyue-webrtc
On 2017/03/22 12:20:38, minyue-webrtc wrote: > On 2017/03/22 12:11:20, elad.alon wrote: > > > https://codereview.webrtc.org/2688613003/diff/60001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h ...
3 years, 9 months ago (2017-03-22 12:27:43 UTC) #7
elad.alon_webrtc.org
On 2017/03/22 12:27:43, minyue-webrtc wrote: > On 2017/03/22 12:20:38, minyue-webrtc wrote: > > On 2017/03/22 ...
3 years, 9 months ago (2017-03-22 14:36:44 UTC) #8
minyue-webrtc
On 2017/03/22 14:36:44, elad.alon wrote: > On 2017/03/22 12:27:43, minyue-webrtc wrote: > > On 2017/03/22 ...
3 years, 9 months ago (2017-03-22 15:03:10 UTC) #9
elad.alon_webrtc.org
On 2017/03/22 15:03:10, minyue-webrtc wrote: > On 2017/03/22 14:36:44, elad.alon wrote: > > On 2017/03/22 ...
3 years, 9 months ago (2017-03-22 15:20:28 UTC) #10
elad.alon_webrtc.org
On 2017/03/22 15:20:28, elad.alon wrote: > On 2017/03/22 15:03:10, minyue-webrtc wrote: > > On 2017/03/22 ...
3 years, 9 months ago (2017-03-22 15:23:41 UTC) #11
minyue-webrtc
On 2017/03/22 15:23:41, elad.alon wrote: > On 2017/03/22 15:20:28, elad.alon wrote: > > On 2017/03/22 ...
3 years, 9 months ago (2017-03-22 15:57:24 UTC) #12
elad.alon_webrtc.org
I hope I have struck the right balance between readability and keeping the existing behavior ...
3 years, 9 months ago (2017-03-24 17:42:13 UTC) #13
kwiberg-webrtc
https://codereview.webrtc.org/2688613003/diff/110001/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc File webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc (right): https://codereview.webrtc.org/2688613003/diff/110001/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc#newcode58 webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc:58: RTC_DCHECK(config_.fec_disabling_threshold < config_.fec_enabling_threshold); On 2017/03/24 17:42:13, elad.alon wrote: > ...
3 years, 9 months ago (2017-03-25 15:41:39 UTC) #15
minyue-webrtc
excellent! only one comment https://codereview.webrtc.org/2688613003/diff/160001/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc File webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc (right): https://codereview.webrtc.org/2688613003/diff/160001/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc#newcode58 webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc:58: RTC_DCHECK(config_.fec_disabling_threshold < config_.fec_enabling_threshold); I think ...
3 years, 9 months ago (2017-03-27 08:21:44 UTC) #16
minyue-webrtc
https://codereview.webrtc.org/2688613003/diff/180001/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc File webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc (right): https://codereview.webrtc.org/2688613003/diff/180001/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc#newcode104 webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc:104: return !config_.fec_enabling_threshold.IsBelowCurve( will this be ambiguous with FecDisablingDecision if ...
3 years, 9 months ago (2017-03-27 16:37:08 UTC) #17
minyue-webrtc
https://codereview.webrtc.org/2688613003/diff/200001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve_unittest.cc File webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve_unittest.cc (right): https://codereview.webrtc.org/2688613003/diff/200001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve_unittest.cc#newcode115 webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve_unittest.cc:115: // The points (P1-P2) define the curve. This is ...
3 years, 9 months ago (2017-03-27 16:45:57 UTC) #18
elad.alon_webrtc.org
On 2017/03/25 15:41:39, kwiberg-webrtc wrote: > https://codereview.webrtc.org/2688613003/diff/110001/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc > File > webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc > (right): > > ...
3 years, 9 months ago (2017-03-27 17:32:12 UTC) #19
elad.alon_webrtc.org
https://codereview.webrtc.org/2688613003/diff/180001/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc File webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc (right): https://codereview.webrtc.org/2688613003/diff/180001/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc#newcode104 webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc:104: return !config_.fec_enabling_threshold.IsBelowCurve( On 2017/03/27 16:37:06, minyue-webrtc wrote: > will ...
3 years, 9 months ago (2017-03-27 18:08:39 UTC) #20
michaelt
Did you discuss code duplication in fec_controller_plr_based_unittest.cc and fec_controller_rplr_based_unittest.cc ?
3 years, 9 months ago (2017-03-28 06:56:11 UTC) #21
elad.alon_webrtc.org
On 2017/03/28 06:56:11, michaelt wrote: > Did you discuss code duplication in fec_controller_plr_based_unittest.cc and > ...
3 years, 9 months ago (2017-03-28 08:00:54 UTC) #22
michaelt
On 2017/03/28 08:00:54, elad.alon wrote: > On 2017/03/28 06:56:11, michaelt wrote: > > Did you ...
3 years, 9 months ago (2017-03-28 08:05:11 UTC) #23
elad.alon_webrtc.org
On 2017/03/28 08:05:11, michaelt wrote: > On 2017/03/28 08:00:54, elad.alon wrote: > > On 2017/03/28 ...
3 years, 8 months ago (2017-03-28 15:03:20 UTC) #24
elad.alon_webrtc.org
https://codereview.webrtc.org/2688613003/diff/290001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve_unittest.cc File webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve_unittest.cc (right): https://codereview.webrtc.org/2688613003/diff/290001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve_unittest.cc#newcode92 webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve_unittest.cc:92: // To make sure we're really covering all of ...
3 years, 8 months ago (2017-03-28 16:58:44 UTC) #25
minyue-webrtc
Thanks! see my comments https://codereview.webrtc.org/2688613003/diff/290001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h File webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h (right): https://codereview.webrtc.org/2688613003/diff/290001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h#newcode40 webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h:40: // If either a.x == ...
3 years, 8 months ago (2017-03-28 19:12:43 UTC) #26
elad.alon_webrtc.org
PTAL https://codereview.webrtc.org/2688613003/diff/290001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h File webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h (right): https://codereview.webrtc.org/2688613003/diff/290001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h#newcode40 webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h:40: // If either a.x == b.x or a.y ...
3 years, 8 months ago (2017-03-28 21:16:08 UTC) #27
minyue-webrtc
lgtm % nits https://codereview.webrtc.org/2688613003/diff/290001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve_unittest.cc File webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve_unittest.cc (right): https://codereview.webrtc.org/2688613003/diff/290001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve_unittest.cc#newcode11 webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve_unittest.cc:11: #include <memory> On 2017/03/28 21:16:08, elad.alon ...
3 years, 8 months ago (2017-03-29 06:17:31 UTC) #36
michaelt
On 2017/03/28 15:03:20, elad.alon wrote: > On 2017/03/28 08:05:11, michaelt wrote: > > On 2017/03/28 ...
3 years, 8 months ago (2017-03-29 06:55:56 UTC) #37
elad.alon_webrtc.org
https://codereview.webrtc.org/2688613003/diff/350001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h File webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h (right): https://codereview.webrtc.org/2688613003/diff/350001/webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h#newcode38 webrtc/modules/audio_coding/audio_network_adaptor/util/threshold_curve.h:38: // by a single point, either the left or ...
3 years, 8 months ago (2017-03-29 09:44:38 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/2688613003/370001
3 years, 8 months ago (2017-03-29 09:45:05 UTC) #41
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 10:17:03 UTC) #44
Message was sent while issue was closed.
Committed patchset #21 (id:370001) as
https://chromium.googlesource.com/external/webrtc/+/326263a678cc84ce08d141d7e...

Powered by Google App Engine
This is Rietveld 408576698