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

Issue 2110763002: Style updates to ProducerFec/FecReceiver. (Closed)

Created:
4 years, 5 months ago by brandtr
Modified:
4 years, 4 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io, danilchap, stefan-webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Style updates to ProducerFec/FecReceiver. - Make more use of std::unique_ptr. - Auto type deduction for iterator type names. - More extensive comments. - Variable renaming. - Make ProducerFec::BuildRedPacket() static. - Avoid dynamic allocation of ProducerFec::fec_. BUG=webrtc:5654 Committed: https://crrev.com/74811e5fa36b25f7c2c9e567223c1366fa1f52b9 Cr-Commit-Position: refs/heads/master@{#13700}

Patch Set 1 : Initial. #

Total comments: 24

Patch Set 2 : Response to feedback. #

Total comments: 6

Patch Set 3 : Rebase on top of master + lint fixes. #

Patch Set 4 : Response to feedback. #

Patch Set 5 : Fix memory leak due to incorrect rebase. (CL "1b" will remove this code, thanks to std::unique_ptr.… #

Total comments: 2

Patch Set 6 : Rename kNumPacketsPerFrameThresholdForMinNumMediaPacketsAdditiveAdaptation #

Total comments: 24

Patch Set 7 : Rebase. #

Patch Set 8 : Response to feedback. #

Total comments: 1

Patch Set 9 : Final nit. #

Patch Set 10 : Rebase + 'git cl format'. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -308 lines) Patch
M webrtc/modules/rtp_rtcp/include/fec_receiver.h View 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/fec_receiver_impl.h View 2 chunks +4 lines, -6 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc View 1 2 3 4 5 6 7 8 9 7 chunks +58 lines, -75 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/fec_receiver_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/producer_fec.h View 1 2 3 4 5 6 7 8 9 4 chunks +41 lines, -25 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/producer_fec.cc View 1 2 3 4 5 6 7 8 9 5 chunks +131 lines, -121 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/producer_fec_unittest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +44 lines, -63 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc View 1 2 3 4 5 6 7 8 9 5 chunks +10 lines, -7 lines 0 comments Download
M webrtc/test/fuzzers/producer_fec_fuzzer.cc View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 46 (27 generated)
brandtr
Some smaller updates to the buffer classes wrapping the actual FEC.
4 years, 5 months ago (2016-07-04 15:00:22 UTC) #10
philipel
https://codereview.webrtc.org/2110763002/diff/80001/webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc (right): https://codereview.webrtc.org/2110763002/diff/80001/webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc#newcode72 webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc:72: uint8_t RED_header_length = 1; red_header_length https://codereview.webrtc.org/2110763002/diff/80001/webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc#newcode109 webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc:109: block_length = ...
4 years, 5 months ago (2016-07-04 15:35:04 UTC) #11
brandtr
Addressed comments. The sporadic bot errors are due to the upstream patch application problem. https://codereview.webrtc.org/2110763002/diff/80001/webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc ...
4 years, 5 months ago (2016-07-05 11:46:05 UTC) #13
philipel
https://codereview.webrtc.org/2110763002/diff/100001/webrtc/modules/rtp_rtcp/source/producer_fec.cc File webrtc/modules/rtp_rtcp/source/producer_fec.cc (right): https://codereview.webrtc.org/2110763002/diff/100001/webrtc/modules/rtp_rtcp/source/producer_fec.cc#newcode187 webrtc/modules/rtp_rtcp/source/producer_fec.cc:187: float average_num_packets_frame_per_frame = num_packets/num_protected_frames_; Should |average_num_packets_frame_per_frame| be |average_num_packets_per_frame|? https://codereview.webrtc.org/2110763002/diff/100001/webrtc/modules/rtp_rtcp/source/producer_fec.cc#newcode188 ...
4 years, 5 months ago (2016-07-05 13:05:51 UTC) #14
brandtr
Rebased on top of master, to reduce unnecessary dependencies between semi-unrelated CLs. Addressed comments. https://codereview.webrtc.org/2110763002/diff/100001/webrtc/modules/rtp_rtcp/source/producer_fec.cc ...
4 years, 5 months ago (2016-07-07 15:00:00 UTC) #15
philipel
https://codereview.webrtc.org/2110763002/diff/180001/webrtc/modules/rtp_rtcp/source/producer_fec.cc File webrtc/modules/rtp_rtcp/source/producer_fec.cc (right): https://codereview.webrtc.org/2110763002/diff/180001/webrtc/modules/rtp_rtcp/source/producer_fec.cc#newcode200 webrtc/modules/rtp_rtcp/source/producer_fec.cc:200: kNumPacketsPerFrameThresholdForMinNumMediaPacketsAdditiveAdaptation) { Sorry, to long :) Maybe kPacketRatioAdaptation? A ...
4 years, 5 months ago (2016-07-07 15:19:43 UTC) #16
brandtr
https://codereview.webrtc.org/2110763002/diff/180001/webrtc/modules/rtp_rtcp/source/producer_fec.cc File webrtc/modules/rtp_rtcp/source/producer_fec.cc (right): https://codereview.webrtc.org/2110763002/diff/180001/webrtc/modules/rtp_rtcp/source/producer_fec.cc#newcode200 webrtc/modules/rtp_rtcp/source/producer_fec.cc:200: kNumPacketsPerFrameThresholdForMinNumMediaPacketsAdditiveAdaptation) { On 2016/07/07 15:19:42, philipel wrote: > Sorry, ...
4 years, 5 months ago (2016-07-08 07:01:53 UTC) #17
philipel
lgtm
4 years, 5 months ago (2016-07-08 11:27:58 UTC) #18
danilchap
https://codereview.webrtc.org/2110763002/diff/200001/webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc (right): https://codereview.webrtc.org/2110763002/diff/200001/webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc#newcode140 webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc:140: received_packet->pkt->data[1] &= 0x80; // reset RED payload type fix ...
4 years, 5 months ago (2016-07-19 14:55:33 UTC) #20
stefan-webrtc
lgtm as soon as danil's comments are addressed. https://codereview.webrtc.org/2110763002/diff/200001/webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc (right): https://codereview.webrtc.org/2110763002/diff/200001/webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc#newcode113 webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc:113: block_length ...
4 years, 5 months ago (2016-07-20 09:29:19 UTC) #21
brandtr
Thanks for the feedback; comments have been addressed. Android and libfuzzer failures should be independent ...
4 years, 5 months ago (2016-07-21 09:03:58 UTC) #24
danilchap
lgtm % nit https://codereview.webrtc.org/2110763002/diff/280001/webrtc/modules/rtp_rtcp/source/producer_fec.cc File webrtc/modules/rtp_rtcp/source/producer_fec.cc (right): https://codereview.webrtc.org/2110763002/diff/280001/webrtc/modules/rtp_rtcp/source/producer_fec.cc#newcode202 webrtc/modules/rtp_rtcp/source/producer_fec.cc:202: bool ret; why introduce 'ret' variable ...
4 years, 5 months ago (2016-07-21 13:38:56 UTC) #25
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/2110763002/300001
4 years, 4 months ago (2016-08-09 11:08:10 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/15460) android_rel on master.tryserver.webrtc (JOB_FAILED, ...
4 years, 4 months ago (2016-08-09 11:09:40 UTC) #35
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/2110763002/340001
4 years, 4 months ago (2016-08-09 14:01:58 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_dbg on ...
4 years, 4 months ago (2016-08-09 16:02:40 UTC) #40
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/2110763002/340001
4 years, 4 months ago (2016-08-10 07:44:55 UTC) #42
commit-bot: I haz the power
Committed patchset #10 (id:340001)
4 years, 4 months ago (2016-08-10 07:51:56 UTC) #44
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 07:52:08 UTC) #46
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/74811e5fa36b25f7c2c9e567223c1366fa1f52b9
Cr-Commit-Position: refs/heads/master@{#13700}

Powered by Google App Engine
This is Rietveld 408576698