OLD | NEW |
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 Loading... |
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(¬_used, &module_video_rate, &module_fec_rate, | 1116 rtp_rtcp->BitrateSent(¬_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 |
OLD | NEW |