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

Issue 1319683002: AudioDecoder: Replace Init() with Reset() (Closed)

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

Description

AudioDecoder: Replace Init() with Reset() The Init() method was previously used to initialize and reset decoders, and returned an error code. The new Reset() method is used for reset only; the constructor is now responsible for fully initializing the AudioDecoder. Reset() doesn't return an error code; it turned out that none of the functions it ended up calling could actually fail, so this CL removes their error return codes as well. R=henrik.lundin@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/4376648df021fd82f25a38694e33678f802d06ea

Patch Set 1 #

Total comments: 14

Patch Set 2 : review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -208 lines) Patch
M webrtc/modules/audio_coding/codecs/audio_decoder.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/cng_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/include/webrtc_cng.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/webrtc_cng.c View 2 chunks +1 line, -3 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/g722_decode.c View 1 chunk +1 line, -5 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/g722_interface.c View 1 chunk +4 lines, -11 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/include/g722_interface.h View 1 chunk +3 lines, -9 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/ilbc.c View 1 1 chunk +2 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/interface/ilbc.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/interface/audio_encoder_isacfix.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/interface/isacfix.h View 1 chunk +1 line, -6 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/source/isacfix.c View 2 chunks +1 line, -7 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/test/isac_speed_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc View 1 chunk +1 line, -6 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/main/interface/audio_encoder_isac.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/main/interface/isac.h View 1 chunk +1 line, -7 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/main/source/isac.c View 5 chunks +6 lines, -20 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc View 2 chunks +3 lines, -14 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc View 1 chunk +1 line, -7 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/main/test/simpleKenny.c View 1 chunk +1 line, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/interface/opus_interface.h View 1 chunk +1 line, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/opus_interface.c View 1 1 chunk +3 lines, -7 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/acm2/audio_coding_module_unittest_oldapi.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/main/test/opus_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/audio_decoder_impl.h View 8 chunks +8 lines, -8 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/audio_decoder_impl.cc View 12 chunks +20 lines, -19 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/audio_decoder_unittest.cc View 5 chunks +4 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/decoder_database.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/mock/mock_audio_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/neteq/mock/mock_external_decoder_pcm16b.h View 3 chunks +4 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_external_decoder_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl.cc View 2 chunks +8 lines, -11 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc View 4 chunks +4 lines, -9 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_network_stats_unittest.cc View 4 chunks +1 line, -4 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
kwiberg-webrtc
...and I go: la la la la la, please take a look!
5 years, 4 months ago (2015-08-26 09:32:54 UTC) #2
hlundin-webrtc
LG. A few nits and comments. https://codereview.webrtc.org/1319683002/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.h File webrtc/modules/audio_coding/codecs/audio_decoder.h (right): https://codereview.webrtc.org/1319683002/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.h#newcode67 webrtc/modules/audio_coding/codecs/audio_decoder.h:67: // Reset the ...
5 years, 3 months ago (2015-08-26 13:07:23 UTC) #3
kwiberg-webrtc
https://codereview.webrtc.org/1319683002/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.h File webrtc/modules/audio_coding/codecs/audio_decoder.h (right): https://codereview.webrtc.org/1319683002/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.h#newcode67 webrtc/modules/audio_coding/codecs/audio_decoder.h:67: // Reset the decoder state (empty buffers etc.). On ...
5 years, 3 months ago (2015-08-26 18:54:37 UTC) #4
hlundin-webrtc
lgtm https://codereview.webrtc.org/1319683002/diff/1/webrtc/modules/audio_coding/codecs/g722/g722_interface.c File webrtc/modules/audio_coding/codecs/g722/g722_interface.c (right): https://codereview.webrtc.org/1319683002/diff/1/webrtc/modules/audio_coding/codecs/g722/g722_interface.c#newcode72 webrtc/modules/audio_coding/codecs/g722/g722_interface.c:72: WebRtc_g722_decode_init((G722DecoderState*)inst, 64000, 2); On 2015/08/26 18:54:37, kwiberg-webrtc wrote: ...
5 years, 3 months ago (2015-08-27 12:02:56 UTC) #5
kwiberg-webrtc
https://codereview.webrtc.org/1319683002/diff/1/webrtc/modules/audio_coding/codecs/g722/g722_interface.c File webrtc/modules/audio_coding/codecs/g722/g722_interface.c (right): https://codereview.webrtc.org/1319683002/diff/1/webrtc/modules/audio_coding/codecs/g722/g722_interface.c#newcode72 webrtc/modules/audio_coding/codecs/g722/g722_interface.c:72: WebRtc_g722_decode_init((G722DecoderState*)inst, 64000, 2); On 2015/08/27 12:02:56, hlundin-webrtc wrote: > ...
5 years, 3 months ago (2015-08-27 12:11:21 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1319683002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1319683002/20001
5 years, 3 months ago (2015-08-27 12:11:34 UTC) #8
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/523)
5 years, 3 months ago (2015-08-27 12:14:56 UTC) #10
kwiberg-webrtc
5 years, 3 months ago (2015-08-27 13:22:26 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
4376648df021fd82f25a38694e33678f802d06ea (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698