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

Issue 2326953003: Added a ParsePayload method to AudioDecoder. (Closed)

Created:
4 years, 3 months ago by ossu
Modified:
4 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Added a ParsePayload method to AudioDecoder. It allows the decoder to split the input up into usable chunks before they are put into NetEq's PacketBuffer. Eventually, all packet splitting will move into ParsePayload. There's currently a base implementation of ParsePayload. It will generate a single Frame that calls the underlying AudioDecoder for getting Duration() and to Decode. BUG=webrtc:5805 BUG=chromium:428099 Committed: https://crrev.com/61a208b1b8e88716747971fe4ba1da8ddf521bb1 Cr-Commit-Position: refs/heads/master@{#14300}

Patch Set 1 #

Total comments: 48

Patch Set 2 : Addressed comments #

Total comments: 12

Patch Set 3 : Clarifications. Cleanups. #

Total comments: 12

Patch Set 4 : Clarified comments. #

Patch Set 5 : IWYU and other linting issues. #

Patch Set 6 : Added PacketBuffer::DiscardPacketsWithPayloadType, so that NetEq can flush packets in RemovePayload… #

Patch Set 7 : Added some casts from size_t to int. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -115 lines) Patch
M webrtc/modules/audio_coding/codecs/audio_decoder.h View 1 2 3 4 2 chunks +55 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_decoder.cc View 1 2 3 4 2 chunks +72 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/decision_logic.cc View 1 chunk +8 lines, -13 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl.cc View 1 2 3 4 5 6 11 chunks +76 lines, -52 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc View 2 chunks +28 lines, -33 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/packet.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/packet_buffer.h View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/packet_buffer.cc View 1 2 3 4 5 4 chunks +21 lines, -15 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 40 (19 generated)
ossu
This is the first in a series of CLs to move codec specific stuff from ...
4 years, 3 months ago (2016-09-09 11:10:21 UTC) #2
hlundin-webrtc
Those are awesome changes. See inline for some comments. https://codereview.webrtc.org/2326953003/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.cc File webrtc/modules/audio_coding/codecs/audio_decoder.cc (right): https://codereview.webrtc.org/2326953003/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.cc#newcode29 webrtc/modules/audio_coding/codecs/audio_decoder.cc:29: ...
4 years, 3 months ago (2016-09-09 12:11:50 UTC) #3
kwiberg-webrtc
https://codereview.webrtc.org/2326953003/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.cc File webrtc/modules/audio_coding/codecs/audio_decoder.cc (right): https://codereview.webrtc.org/2326953003/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.cc#newcode29 webrtc/modules/audio_coding/codecs/audio_decoder.cc:29: using std::swap; On 2016/09/09 12:11:49, hlundin-webrtc wrote: > Why ...
4 years, 3 months ago (2016-09-10 07:34:59 UTC) #4
hlundin-webrtc
https://codereview.webrtc.org/2326953003/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.cc File webrtc/modules/audio_coding/codecs/audio_decoder.cc (right): https://codereview.webrtc.org/2326953003/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.cc#newcode29 webrtc/modules/audio_coding/codecs/audio_decoder.cc:29: using std::swap; On 2016/09/10 07:34:59, kwiberg-webrtc wrote: > On ...
4 years, 3 months ago (2016-09-12 08:07:11 UTC) #5
ossu
https://codereview.webrtc.org/2326953003/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.cc File webrtc/modules/audio_coding/codecs/audio_decoder.cc (right): https://codereview.webrtc.org/2326953003/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.cc#newcode30 webrtc/modules/audio_coding/codecs/audio_decoder.cc:30: swap(this->payload_, *payload); On 2016/09/10 07:34:59, kwiberg-webrtc wrote: > On ...
4 years, 3 months ago (2016-09-12 10:31:37 UTC) #6
ossu
https://codereview.webrtc.org/2326953003/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.h File webrtc/modules/audio_coding/codecs/audio_decoder.h (right): https://codereview.webrtc.org/2326953003/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.h#newcode56 webrtc/modules/audio_coding/codecs/audio_decoder.h:56: virtual rtc::Optional<DecodeResult> Decode( On 2016/09/12 10:31:36, ossu wrote: > ...
4 years, 3 months ago (2016-09-12 12:37:35 UTC) #8
ossu
https://codereview.webrtc.org/2326953003/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.h File webrtc/modules/audio_coding/codecs/audio_decoder.h (right): https://codereview.webrtc.org/2326953003/diff/1/webrtc/modules/audio_coding/codecs/audio_decoder.h#newcode39 webrtc/modules/audio_coding/codecs/audio_decoder.h:39: class Frame { On 2016/09/12 10:31:37, ossu wrote: > ...
4 years, 3 months ago (2016-09-13 13:37:46 UTC) #10
hlundin-webrtc
LGTM, but you may want to sort out the question of returning error codes, in ...
4 years, 3 months ago (2016-09-15 08:12:16 UTC) #11
kwiberg-webrtc
https://codereview.webrtc.org/2326953003/diff/40001/webrtc/modules/audio_coding/codecs/audio_decoder.cc File webrtc/modules/audio_coding/codecs/audio_decoder.cc (right): https://codereview.webrtc.org/2326953003/diff/40001/webrtc/modules/audio_coding/codecs/audio_decoder.cc#newcode23 webrtc/modules/audio_coding/codecs/audio_decoder.cc:23: class LegacyFrame : public AudioDecoder::EncodedAudioFrame { final? Good both ...
4 years, 3 months ago (2016-09-15 12:00:59 UTC) #12
ossu
https://codereview.webrtc.org/2326953003/diff/40001/webrtc/modules/audio_coding/codecs/audio_decoder.cc File webrtc/modules/audio_coding/codecs/audio_decoder.cc (right): https://codereview.webrtc.org/2326953003/diff/40001/webrtc/modules/audio_coding/codecs/audio_decoder.cc#newcode23 webrtc/modules/audio_coding/codecs/audio_decoder.cc:23: class LegacyFrame : public AudioDecoder::EncodedAudioFrame { On 2016/09/15 12:00:59, ...
4 years, 3 months ago (2016-09-15 13:07:55 UTC) #13
kwiberg-webrtc
Almost done... https://codereview.webrtc.org/2326953003/diff/40001/webrtc/modules/audio_coding/codecs/audio_decoder.h File webrtc/modules/audio_coding/codecs/audio_decoder.h (right): https://codereview.webrtc.org/2326953003/diff/40001/webrtc/modules/audio_coding/codecs/audio_decoder.h#newcode55 webrtc/modules/audio_coding/codecs/audio_decoder.h:55: // speech. Decode must only be called ...
4 years, 3 months ago (2016-09-16 00:14:07 UTC) #14
hlundin-webrtc
https://codereview.webrtc.org/2326953003/diff/60001/webrtc/modules/audio_coding/codecs/audio_decoder.h File webrtc/modules/audio_coding/codecs/audio_decoder.h (right): https://codereview.webrtc.org/2326953003/diff/60001/webrtc/modules/audio_coding/codecs/audio_decoder.h#newcode80 webrtc/modules/audio_coding/codecs/audio_decoder.h:80: // than 10 ms. The caller must ensure that ...
4 years, 3 months ago (2016-09-16 07:40:45 UTC) #15
kwiberg-webrtc
https://codereview.webrtc.org/2326953003/diff/60001/webrtc/modules/audio_coding/codecs/audio_decoder.h File webrtc/modules/audio_coding/codecs/audio_decoder.h (right): https://codereview.webrtc.org/2326953003/diff/60001/webrtc/modules/audio_coding/codecs/audio_decoder.h#newcode80 webrtc/modules/audio_coding/codecs/audio_decoder.h:80: // than 10 ms. The caller must ensure that ...
4 years, 3 months ago (2016-09-16 07:51:57 UTC) #16
hlundin-webrtc
https://codereview.webrtc.org/2326953003/diff/60001/webrtc/modules/audio_coding/codecs/audio_decoder.h File webrtc/modules/audio_coding/codecs/audio_decoder.h (right): https://codereview.webrtc.org/2326953003/diff/60001/webrtc/modules/audio_coding/codecs/audio_decoder.h#newcode80 webrtc/modules/audio_coding/codecs/audio_decoder.h:80: // than 10 ms. The caller must ensure that ...
4 years, 3 months ago (2016-09-16 08:25:02 UTC) #17
ossu
https://codereview.webrtc.org/2326953003/diff/60001/webrtc/modules/audio_coding/codecs/audio_decoder.h File webrtc/modules/audio_coding/codecs/audio_decoder.h (right): https://codereview.webrtc.org/2326953003/diff/60001/webrtc/modules/audio_coding/codecs/audio_decoder.h#newcode54 webrtc/modules/audio_coding/codecs/audio_decoder.h:54: // sample rate. On success, returns an rtc::Optional containing ...
4 years, 3 months ago (2016-09-16 11:24:16 UTC) #18
kwiberg-webrtc
lgtm https://codereview.webrtc.org/2326953003/diff/60001/webrtc/modules/audio_coding/neteq/neteq_impl.cc File webrtc/modules/audio_coding/neteq/neteq_impl.cc (right): https://codereview.webrtc.org/2326953003/diff/60001/webrtc/modules/audio_coding/neteq/neteq_impl.cc#newcode689 webrtc/modules/audio_coding/neteq/neteq_impl.cc:689: } On 2016/09/16 11:24:16, ossu wrote: > On ...
4 years, 3 months ago (2016-09-16 11:37:19 UTC) #19
ossu
As a wise man once said: "The caller must ensure that the AudioDecoder object outlives ...
4 years, 3 months ago (2016-09-16 13:51:37 UTC) #24
kwiberg-webrtc
On 2016/09/16 13:51:37, ossu wrote: > As a wise man once said: "The caller must ...
4 years, 3 months ago (2016-09-16 19:33:53 UTC) #29
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/2326953003/140001
4 years, 3 months ago (2016-09-20 08:36:47 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 3 months ago (2016-09-20 08:38:04 UTC) #38
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 08:38:15 UTC) #40
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/61a208b1b8e88716747971fe4ba1da8ddf521bb1
Cr-Commit-Position: refs/heads/master@{#14300}

Powered by Google App Engine
This is Rietveld 408576698