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

Issue 2766323006: Correcting the amount of padding when send side bwe includes RTP overhead.

Created:
3 years, 9 months ago by minyue-webrtc
Modified:
3 years, 8 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io, danilchap, stefan-webrtc, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Correcting the amount of padding when send side bwe includes RTP overhead. BUG=webrtc:7418

Patch Set 1 #

Patch Set 2 : another find #

Total comments: 12

Patch Set 3 : update #

Total comments: 6

Patch Set 4 : fixing #

Total comments: 6

Patch Set 5 : Fix and unittests #

Total comments: 10

Patch Set 6 : on comments` #

Total comments: 4

Patch Set 7 : fixing #

Total comments: 3

Patch Set 8 : rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -41 lines) Patch
M webrtc/modules/rtp_rtcp/source/rtp_packet_history.h View 1 2 3 4 5 2 chunks +13 lines, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc View 1 2 3 4 3 chunks +9 lines, -4 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_packet_history_unittest.cc View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender.cc View 1 2 3 4 5 6 7 chunks +48 lines, -23 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc View 1 2 3 4 4 chunks +38 lines, -12 lines 0 comments Download

Messages

Total messages: 30 (5 generated)
minyue-webrtc
https://codereview.webrtc.org/2766323006/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc File webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc (right): https://codereview.webrtc.org/2766323006/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc#newcode203 webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc:203: // TODO(minyue): it looks like that the fitting expects ...
3 years, 9 months ago (2017-03-24 07:10:56 UTC) #2
danilchap
https://codereview.webrtc.org/2766323006/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/2766323006/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode468 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:468: bytes_left -= packet->headers_size(); packet was moved, so you should ...
3 years, 9 months ago (2017-03-24 08:47:20 UTC) #3
minyue-webrtc
Hi Danil, Thanks for the comments! If you know the system well, I'd add you ...
3 years, 9 months ago (2017-03-24 09:08:54 UTC) #5
philipel
https://codereview.webrtc.org/2766323006/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/2766323006/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode574 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:574: padding_packet.SetPadding(padding_bytes_in_packet, &random_); Is this really correct? When you call ...
3 years, 9 months ago (2017-03-27 10:55:38 UTC) #6
danilchap
https://codereview.webrtc.org/2766323006/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/2766323006/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode574 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:574: padding_packet.SetPadding(padding_bytes_in_packet, &random_); On 2017/03/27 10:55:38, philipel wrote: > Is ...
3 years, 9 months ago (2017-03-27 11:20:23 UTC) #7
philipel
https://codereview.webrtc.org/2766323006/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/2766323006/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode574 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:574: padding_packet.SetPadding(padding_bytes_in_packet, &random_); On 2017/03/27 11:20:23, danilchap wrote: > On ...
3 years, 9 months ago (2017-03-27 11:38:49 UTC) #8
danilchap
https://codereview.webrtc.org/2766323006/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/2766323006/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode574 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:574: padding_packet.SetPadding(padding_bytes_in_packet, &random_); On 2017/03/27 11:38:49, philipel wrote: > On ...
3 years, 9 months ago (2017-03-27 12:23:00 UTC) #9
michaelt
https://codereview.webrtc.org/2766323006/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc File webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc (right): https://codereview.webrtc.org/2766323006/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc#newcode203 webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc:203: // TODO(minyue): it looks like that the fitting expects ...
3 years, 9 months ago (2017-03-27 14:25:01 UTC) #10
minyue-webrtc
I have updated this. I may continue to add a test in RtpSender but I ...
3 years, 8 months ago (2017-03-28 13:06:35 UTC) #11
danilchap
https://codereview.webrtc.org/2766323006/diff/40001/webrtc/modules/rtp_rtcp/source/rtp_packet_history_unittest.cc File webrtc/modules/rtp_rtcp/source/rtp_packet_history_unittest.cc (right): https://codereview.webrtc.org/2766323006/diff/40001/webrtc/modules/rtp_rtcp/source/rtp_packet_history_unittest.cc#newcode230 webrtc/modules/rtp_rtcp/source/rtp_packet_history_unittest.cc:230: MOCK_CONST_METHOD0(size, size_t()); I'm not sure it is good idea ...
3 years, 8 months ago (2017-03-28 15:10:59 UTC) #12
minyue-webrtc
Thanks for the comments! They are addressed so far. Regarding unittests, I would like to ...
3 years, 8 months ago (2017-03-29 11:39:44 UTC) #13
danilchap
https://codereview.webrtc.org/2766323006/diff/40001/webrtc/modules/rtp_rtcp/source/rtp_packet_history_unittest.cc File webrtc/modules/rtp_rtcp/source/rtp_packet_history_unittest.cc (right): https://codereview.webrtc.org/2766323006/diff/40001/webrtc/modules/rtp_rtcp/source/rtp_packet_history_unittest.cc#newcode230 webrtc/modules/rtp_rtcp/source/rtp_packet_history_unittest.cc:230: MOCK_CONST_METHOD0(size, size_t()); On 2017/03/29 11:39:44, minyue-webrtc wrote: > On ...
3 years, 8 months ago (2017-03-29 12:12:53 UTC) #14
michaelt
https://codereview.webrtc.org/2766323006/diff/60001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/2766323006/diff/60001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode467 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:467: : packet->payload_size() - packet->headers_size(); Why "payload_size - headers_size", i ...
3 years, 8 months ago (2017-03-29 14:45:21 UTC) #15
minyue-webrtc
I was totally stupid yesterday. See the new patch (PS5). and unittests are added (updated). ...
3 years, 8 months ago (2017-03-29 18:52:33 UTC) #16
philipel
https://codereview.webrtc.org/2766323006/diff/80001/webrtc/modules/rtp_rtcp/source/rtp_packet.h File webrtc/modules/rtp_rtcp/source/rtp_packet.h (right): https://codereview.webrtc.org/2766323006/diff/80001/webrtc/modules/rtp_rtcp/source/rtp_packet.h#newcode54 webrtc/modules/rtp_rtcp/source/rtp_packet.h:54: virtual size_t headers_size() const; remove virtual https://codereview.webrtc.org/2766323006/diff/80001/webrtc/modules/rtp_rtcp/source/rtp_packet.h#newcode64 webrtc/modules/rtp_rtcp/source/rtp_packet.h:64: virtual ...
3 years, 8 months ago (2017-03-30 11:52:12 UTC) #17
danilchap
https://codereview.webrtc.org/2766323006/diff/60001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/2766323006/diff/60001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode497 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:497: while (bytes_sent < bytes) { On 2017/03/29 18:52:33, minyue-webrtc ...
3 years, 8 months ago (2017-03-30 11:58:08 UTC) #18
stefan-webrtc
https://codereview.webrtc.org/2766323006/diff/60001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/2766323006/diff/60001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode497 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:497: while (bytes_sent < bytes) { On 2017/03/30 11:58:08, danilchap ...
3 years, 8 months ago (2017-03-30 12:09:04 UTC) #19
minyue-webrtc
Thanks for the comments! please take a look at PS6. https://codereview.webrtc.org/2766323006/diff/80001/webrtc/modules/rtp_rtcp/source/rtp_packet.h File webrtc/modules/rtp_rtcp/source/rtp_packet.h (right): https://codereview.webrtc.org/2766323006/diff/80001/webrtc/modules/rtp_rtcp/source/rtp_packet.h#newcode54 ...
3 years, 8 months ago (2017-03-30 13:07:11 UTC) #20
philipel
lgtm I do feel the SendPadData function could be cleaned up a bit, but if ...
3 years, 8 months ago (2017-03-30 15:16:24 UTC) #21
danilchap
lgtm
3 years, 8 months ago (2017-03-30 15:37:47 UTC) #22
michaelt
lgtm
3 years, 8 months ago (2017-03-30 15:53:18 UTC) #23
stefan-webrtc
Can you make it clear what overhead means in the CL description and add a ...
3 years, 8 months ago (2017-04-04 08:13:39 UTC) #24
minyue-webrtc
After running video_loopback which I had to fix, I found two additional places that needs ...
3 years, 8 months ago (2017-04-11 09:35:14 UTC) #28
danilchap
still lgtm https://codereview.webrtc.org/2766323006/diff/100001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/2766323006/diff/100001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode593 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:593: : padding_packet.padding_size(); On 2017/04/11 09:35:14, minyue-webrtc wrote: ...
3 years, 8 months ago (2017-04-11 14:25:18 UTC) #29
minyue-webrtc
3 years, 8 months ago (2017-04-11 14:30:51 UTC) #30
https://codereview.webrtc.org/2766323006/diff/100001/webrtc/modules/rtp_rtcp/...
File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right):

https://codereview.webrtc.org/2766323006/diff/100001/webrtc/modules/rtp_rtcp/...
webrtc/modules/rtp_rtcp/source/rtp_sender.cc:593: :
padding_packet.padding_size();
On 2017/04/11 14:25:18, danilchap wrote:
> On 2017/04/11 09:35:14, minyue-webrtc wrote:
> > On 2017/04/04 08:13:38, stefan-webrtc wrote:
> > > Maybe for consistency use: packet->size() - packet->headers_size()?
> > 
> > I would rather do padding_size + headers_size
> > 
> > I hope to avoid using size(), everywhere if possible, since it is not clear
by
> > its name.
> 
> personally prefer size() function too:
> size_t packet_size = packet->size();
> 
> But may be because I remember what that function do. [full size of the packet
> RTPSender aware of, i.e. include rtp overhead, exclude udp/crypto overheads].

You are right here. I realized that we should include transport overhead here as
well. Per offline discussion with Stefan, I may do it in a follow up CL, since
current change is already an improvement,

Powered by Google App Engine
This is Rietveld 408576698