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

Issue 1322973004: Fold AudioEncoderMutable into AudioEncoder (Closed)

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

Description

Fold AudioEncoderMutable into AudioEncoder It makes more sense to combine the two interfaces, since there wasn't a clear line separating them. The result is a combined interface with just over a dozen methods, half of which need to be implemented by every subclass, while the other half have sensible (and trivial) default implementations and are implemented only by the few subclasses that need non-default behavior. Committed: https://crrev.com/12cfc9b4dacd6942377df1f29a64bdbec591920e Cr-Commit-Position: refs/heads/master@{#9894}

Patch Set 1 #

Patch Set 2 : test fixes #

Patch Set 3 : review fixes & stuff #

Total comments: 18

Patch Set 4 : Reset AudioEncoderCng properly #

Patch Set 5 : review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+795 lines, -928 lines) Patch
M webrtc/common_audio/vad/include/vad.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/common_audio/vad/mock/mock_vad.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/common_audio/vad/vad.cc View 1 2 3 2 chunks +11 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_encoder.h View 1 2 3 4 4 chunks +74 lines, -71 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_encoder.cc View 1 2 2 chunks +27 lines, -5 lines 0 comments Download
D webrtc/modules/audio_coding/codecs/audio_encoder_mutable_impl.h View 1 chunk +0 lines, -133 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc View 1 2 3 4 chunks +66 lines, -43 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng_unittest.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/include/audio_encoder_cng.h View 1 2 3 2 chunks +23 lines, -18 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.cc View 1 2 7 chunks +25 lines, -26 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g711/include/audio_encoder_pcm.h View 7 chunks +6 lines, -16 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc View 1 2 5 chunks +34 lines, -31 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/include/audio_encoder_g722.h View 3 chunks +8 lines, -14 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.cc View 1 2 3 4 5 chunks +30 lines, -26 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/interface/audio_encoder_ilbc.h View 1 2 3 4 3 chunks +8 lines, -14 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h View 1 2 3 4 4 chunks +27 lines, -17 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h View 1 2 3 4 5 chunks +85 lines, -55 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/interface/audio_encoder_isacfix.h View 2 chunks +0 lines, -12 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/source/audio_encoder_isacfix.cc View 2 chunks +0 lines, -35 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/main/interface/audio_encoder_isac.h View 2 chunks +0 lines, -12 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/main/source/audio_encoder_isac.cc View 2 chunks +0 lines, -37 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/mock/mock_audio_encoder.h View 1 chunk +7 lines, -25 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_mutable_opus_test.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc View 1 2 3 4 4 chunks +149 lines, -152 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/interface/audio_encoder_opus.h View 1 2 3 chunks +41 lines, -52 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/pcm16b/audio_encoder_pcm16b.cc View 1 2 2 chunks +8 lines, -10 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/pcm16b/include/audio_encoder_pcm16b.h View 3 chunks +3 lines, -9 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h View 2 chunks +11 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.cc View 1 2 3 chunks +44 lines, -17 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/acm_send_test_oldapi.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/acm_send_test_oldapi.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc View 1 8 chunks +21 lines, -14 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/audio_coding_module_unittest_oldapi.cc View 1 2 3 chunks +19 lines, -19 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/codec_manager.h View 1 4 chunks +4 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/codec_manager.cc View 1 6 chunks +15 lines, -14 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/codec_owner.h View 2 chunks +6 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/codec_owner.cc View 1 2 4 chunks +17 lines, -19 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/codec_owner_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/interface/audio_coding_module.h View 2 chunks +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (7 generated)
kwiberg-webrtc
The two of you have reviewed the previous incarnation of this CL here: https://webrtc-codereview.appspot.com/50099004/ This ...
5 years, 3 months ago (2015-09-07 12:57:57 UTC) #2
hlundin-webrtc
Looks good in general. I have a few comments and questions. https://codereview.webrtc.org/1322973004/diff/40001/webrtc/modules/audio_coding/codecs/audio_encoder.h File webrtc/modules/audio_coding/codecs/audio_encoder.h (right): ...
5 years, 3 months ago (2015-09-07 20:00:02 UTC) #3
kwiberg-webrtc
https://codereview.webrtc.org/1322973004/diff/40001/webrtc/modules/audio_coding/codecs/audio_encoder.h File webrtc/modules/audio_coding/codecs/audio_encoder.h (right): https://codereview.webrtc.org/1322973004/diff/40001/webrtc/modules/audio_coding/codecs/audio_encoder.h#newcode98 webrtc/modules/audio_coding/codecs/audio_encoder.h:98: virtual EncodedInfo EncodeInternal(uint32_t rtp_timestamp, On 2015/09/07 20:00:01, hlundin-webrtc wrote: ...
5 years, 3 months ago (2015-09-08 10:47:45 UTC) #4
hlundin-webrtc
Awesome work! Ship it. LGTM. https://codereview.webrtc.org/1322973004/diff/40001/webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc File webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc (right): https://codereview.webrtc.org/1322973004/diff/40001/webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc#newcode165 webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc:165: void AudioEncoderCng::Reset() { On ...
5 years, 3 months ago (2015-09-08 11:21:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1322973004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1322973004/80001
5 years, 3 months ago (2015-09-08 11:24:40 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/667)
5 years, 3 months ago (2015-09-08 11:26:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1322973004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1322973004/80001
5 years, 3 months ago (2015-09-08 12:56:34 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 3 months ago (2015-09-08 12:57:56 UTC) #15
commit-bot: I haz the power
5 years, 3 months ago (2015-09-08 12:58:07 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/12cfc9b4dacd6942377df1f29a64bdbec591920e
Cr-Commit-Position: refs/heads/master@{#9894}

Powered by Google App Engine
This is Rietveld 408576698