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

Side by Side Diff: webrtc/video/video_send_stream.cc

Issue 2455963003: Simplify SetFecParameters signature. (Closed)
Patch Set: Fix fuzzer. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/test/fuzzers/ulpfec_generator_fuzzer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 #include "webrtc/video/video_send_stream.h" 10 #include "webrtc/video/video_send_stream.h"
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 uint32_t* sent_fec_rate_bps) { 1105 uint32_t* sent_fec_rate_bps) {
1106 RTC_DCHECK_RUN_ON(worker_queue_); 1106 RTC_DCHECK_RUN_ON(worker_queue_);
1107 *sent_video_rate_bps = 0; 1107 *sent_video_rate_bps = 0;
1108 *sent_nack_rate_bps = 0; 1108 *sent_nack_rate_bps = 0;
1109 *sent_fec_rate_bps = 0; 1109 *sent_fec_rate_bps = 0;
1110 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { 1110 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) {
1111 uint32_t not_used = 0; 1111 uint32_t not_used = 0;
1112 uint32_t module_video_rate = 0; 1112 uint32_t module_video_rate = 0;
1113 uint32_t module_fec_rate = 0; 1113 uint32_t module_fec_rate = 0;
1114 uint32_t module_nack_rate = 0; 1114 uint32_t module_nack_rate = 0;
1115 rtp_rtcp->SetFecParameters(delta_params, key_params); 1115 rtp_rtcp->SetFecParameters(*delta_params, *key_params);
1116 rtp_rtcp->BitrateSent(&not_used, &module_video_rate, &module_fec_rate, 1116 rtp_rtcp->BitrateSent(&not_used, &module_video_rate, &module_fec_rate,
1117 &module_nack_rate); 1117 &module_nack_rate);
1118 *sent_video_rate_bps += module_video_rate; 1118 *sent_video_rate_bps += module_video_rate;
1119 *sent_nack_rate_bps += module_nack_rate; 1119 *sent_nack_rate_bps += module_nack_rate;
1120 *sent_fec_rate_bps += module_fec_rate; 1120 *sent_fec_rate_bps += module_fec_rate;
1121 } 1121 }
1122 return 0; 1122 return 0;
1123 } 1123 }
1124 1124
1125 } // namespace internal 1125 } // namespace internal
1126 } // namespace webrtc 1126 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/fuzzers/ulpfec_generator_fuzzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698