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

Issue 2411183003: Removed RTPHeader from NetEq's Packet struct. (Closed)

Created:
4 years, 2 months ago by ossu
Modified:
4 years, 2 months ago
Reviewers:
hlundin-webrtc
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

Removed RTPHeader from NetEq's Packet struct. Only three items in the (rather large) header were actually used after InsertPacket: payloadType, timestamp and sequenceNumber. They are now put directly into Packet. This saves 129 bytes per Packet that no longer need to be allocated and deallocated. This also works towards decoupling NetEq from RTP. As part of that, I've moved the NACK code earlier in InsertPacketInternal, together with other things that directly reference the RTPHeader. BUG=webrtc:6549 Committed: https://crrev.com/7a3776102f55bd5927b84a853321672577dd171f Cr-Commit-Position: refs/heads/master@{#14658}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Fixed naming of payloadType and sequenceNumber. Updated comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -251 lines) Patch
M webrtc/modules/audio_coding/neteq/comfort_noise.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/decision_logic.h View 1 3 chunks +18 lines, -20 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/decision_logic.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/decision_logic_fax.h View 1 1 chunk +1 line, -10 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/decision_logic_fax.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/decision_logic_normal.h View 1 1 chunk +1 line, -10 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/decision_logic_normal.cc View 1 4 chunks +6 lines, -6 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/decoder_database.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/decoder_database_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/neteq/mock/mock_packet_buffer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl.cc View 1 26 chunks +85 lines, -91 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc View 1 3 chunks +9 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/packet.h View 1 3 chunks +11 lines, -10 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/packet_buffer.h View 1 2 chunks +4 lines, -3 lines 1 comment Download
M webrtc/modules/audio_coding/neteq/packet_buffer.cc View 1 8 chunks +18 lines, -26 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc View 1 13 chunks +22 lines, -26 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/red_payload_splitter.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/red_payload_splitter_unittest.cc View 1 5 chunks +13 lines, -13 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/timestamp_scaler.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/timestamp_scaler_unittest.cc View 1 2 chunks +9 lines, -9 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (7 generated)
ossu
After having a chat with pthatcher, I got inspired to attempt this change again. I ...
4 years, 2 months ago (2016-10-12 20:08:03 UTC) #2
ossu
On 2016/10/12 20:08:03, ossu wrote: > Apart from it being slightly more efficient not to ...
4 years, 2 months ago (2016-10-12 20:08:48 UTC) #3
hlundin-webrtc
Veeeery nice! Just a few minor comments. https://codereview.webrtc.org/2411183003/diff/1/webrtc/modules/audio_coding/neteq/decision_logic.h File webrtc/modules/audio_coding/neteq/decision_logic.h (right): https://codereview.webrtc.org/2411183003/diff/1/webrtc/modules/audio_coding/neteq/decision_logic.h#newcode70 webrtc/modules/audio_coding/neteq/decision_logic.h:70: // packet ...
4 years, 2 months ago (2016-10-12 20:39:58 UTC) #4
ossu
https://codereview.webrtc.org/2411183003/diff/1/webrtc/modules/audio_coding/neteq/decision_logic.h File webrtc/modules/audio_coding/neteq/decision_logic.h (right): https://codereview.webrtc.org/2411183003/diff/1/webrtc/modules/audio_coding/neteq/decision_logic.h#newcode70 webrtc/modules/audio_coding/neteq/decision_logic.h:70: // packet header should be supplied in |packet_header|; otherwise ...
4 years, 2 months ago (2016-10-12 21:46:03 UTC) #5
hlundin-webrtc
lgtm https://codereview.webrtc.org/2411183003/diff/1/webrtc/modules/audio_coding/neteq/packet.h File webrtc/modules/audio_coding/neteq/packet.h (right): https://codereview.webrtc.org/2411183003/diff/1/webrtc/modules/audio_coding/neteq/packet.h#newcode20 webrtc/modules/audio_coding/neteq/packet.h:20: #include "webrtc/modules/include/module_common_types.h" On 2016/10/12 21:46:02, ossu wrote: > ...
4 years, 2 months ago (2016-10-13 07:54:19 UTC) #6
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/2411183003/20001
4 years, 2 months ago (2016-10-18 10:23:25 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/9261)
4 years, 2 months ago (2016-10-18 10:31:48 UTC) #10
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/2411183003/20001
4 years, 2 months ago (2016-10-18 11:04:39 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-18 11:06:17 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 11:06:26 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7a3776102f55bd5927b84a853321672577dd171f
Cr-Commit-Position: refs/heads/master@{#14658}

Powered by Google App Engine
This is Rietveld 408576698