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

Issue 2425223002: NetEq now works with packets as values, rather than pointers. (Closed)

Created:
4 years, 2 months ago by ossu
Modified:
4 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, 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

NetEq now works with packets as values, rather than pointers. PacketList is now list<Packet> instead of list<Packet*>. Splicing the lists in NetEqImpl::InsertPacketInternal instead of moving packets. Avoid moving the packet when doing Rfc3389Cng. Removed PacketBuffer::DeleteFirstPacket and DeleteAllPackets. BUG=chromium:657300 Committed: https://crrev.com/a73f6c9726322021446696faf47c93f431f6104a Cr-Commit-Position: refs/heads/master@{#14747}

Patch Set 1 #

Total comments: 31

Patch Set 2 : Done some cleanups #

Total comments: 3

Patch Set 3 : Rebase #

Patch Set 4 : Compare packets better in test. One more const. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+430 lines, -506 lines) Patch
M webrtc/modules/audio_coding/neteq/comfort_noise.h View 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/comfort_noise.cc View 1 chunk +3 lines, -6 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/decoder_database.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/decoder_database_unittest.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/mock/mock_packet_buffer.h View 1 2 chunks +9 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl.cc View 1 2 3 15 chunks +82 lines, -88 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/neteq/packet.h View 1 2 chunks +10 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/neteq/packet.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/packet_buffer.h View 3 chunks +4 lines, -17 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/packet_buffer.cc View 1 12 chunks +42 lines, -82 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc View 1 2 3 16 chunks +139 lines, -161 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/red_payload_splitter.cc View 1 6 chunks +17 lines, -23 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/red_payload_splitter_unittest.cc View 8 chunks +87 lines, -104 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/timestamp_scaler.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/neteq/timestamp_scaler_unittest.cc View 1 chunk +13 lines, -10 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
ossu
This CL changes NetEqs PacketList to be std::list<Packet> rather than std::list<Packet*>. Packet is a move-only ...
4 years, 2 months ago (2016-10-19 15:28:05 UTC) #6
kwiberg-webrtc
https://codereview.chromium.org/2425223002/diff/1/webrtc/modules/audio_coding/neteq/mock/mock_packet_buffer.h File webrtc/modules/audio_coding/neteq/mock/mock_packet_buffer.h (right): https://codereview.chromium.org/2425223002/diff/1/webrtc/modules/audio_coding/neteq/mock/mock_packet_buffer.h#newcode37 webrtc/modules/audio_coding/neteq/mock/mock_packet_buffer.h:37: int(Packet& packet)); It would be more style guide compliant ...
4 years, 2 months ago (2016-10-20 22:39:23 UTC) #8
kwiberg-webrtc
Excellent improvement!
4 years, 2 months ago (2016-10-20 22:39:52 UTC) #9
ossu
Thanks! :D https://codereview.chromium.org/2425223002/diff/1/webrtc/modules/audio_coding/neteq/mock/mock_packet_buffer.h File webrtc/modules/audio_coding/neteq/mock/mock_packet_buffer.h (right): https://codereview.chromium.org/2425223002/diff/1/webrtc/modules/audio_coding/neteq/mock/mock_packet_buffer.h#newcode37 webrtc/modules/audio_coding/neteq/mock/mock_packet_buffer.h:37: int(Packet& packet)); On 2016/10/20 22:39:22, kwiberg-webrtc wrote: ...
4 years, 2 months ago (2016-10-21 12:54:42 UTC) #10
hlundin-webrtc
Solid gold! LGTM with two minor comments. https://codereview.chromium.org/2425223002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc File webrtc/modules/audio_coding/neteq/neteq_impl.cc (right): https://codereview.chromium.org/2425223002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc#newcode668 webrtc/modules/audio_coding/neteq/neteq_impl.cc:668: Packet& current_packet ...
4 years, 2 months ago (2016-10-21 13:53:33 UTC) #11
kwiberg-webrtc
lgtm https://codereview.chromium.org/2425223002/diff/1/webrtc/modules/audio_coding/neteq/packet_buffer.cc File webrtc/modules/audio_coding/neteq/packet_buffer.cc (right): https://codereview.chromium.org/2425223002/diff/1/webrtc/modules/audio_coding/neteq/packet_buffer.cc#newcode237 webrtc/modules/audio_coding/neteq/packet_buffer.cc:237: Packet& packet = *it; On 2016/10/21 12:54:41, ossu ...
4 years, 1 month ago (2016-10-24 11:42:25 UTC) #12
ossu
https://codereview.chromium.org/2425223002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc File webrtc/modules/audio_coding/neteq/neteq_impl.cc (right): https://codereview.chromium.org/2425223002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc#newcode668 webrtc/modules/audio_coding/neteq/neteq_impl.cc:668: Packet& current_packet = (*it); On 2016/10/21 13:53:33, hlundin-webrtc wrote: ...
4 years, 1 month ago (2016-10-24 12:18:28 UTC) #14
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/2425223002/80001
4 years, 1 month ago (2016-10-24 15:22:48 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 1 month ago (2016-10-24 15:25:32 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 15:25:37 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a73f6c9726322021446696faf47c93f431f6104a
Cr-Commit-Position: refs/heads/master@{#14747}

Powered by Google App Engine
This is Rietveld 408576698