| 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 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 uint32_t* sent_fec_rate_bps) { | 1088 uint32_t* sent_fec_rate_bps) { |
| 1089 RTC_DCHECK_RUN_ON(worker_queue_); | 1089 RTC_DCHECK_RUN_ON(worker_queue_); |
| 1090 *sent_video_rate_bps = 0; | 1090 *sent_video_rate_bps = 0; |
| 1091 *sent_nack_rate_bps = 0; | 1091 *sent_nack_rate_bps = 0; |
| 1092 *sent_fec_rate_bps = 0; | 1092 *sent_fec_rate_bps = 0; |
| 1093 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { | 1093 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { |
| 1094 uint32_t not_used = 0; | 1094 uint32_t not_used = 0; |
| 1095 uint32_t module_video_rate = 0; | 1095 uint32_t module_video_rate = 0; |
| 1096 uint32_t module_fec_rate = 0; | 1096 uint32_t module_fec_rate = 0; |
| 1097 uint32_t module_nack_rate = 0; | 1097 uint32_t module_nack_rate = 0; |
| 1098 rtp_rtcp->SetFecParameters(delta_params, key_params); | 1098 rtp_rtcp->SetFecParameters(*delta_params, *key_params); |
| 1099 rtp_rtcp->BitrateSent(¬_used, &module_video_rate, &module_fec_rate, | 1099 rtp_rtcp->BitrateSent(¬_used, &module_video_rate, &module_fec_rate, |
| 1100 &module_nack_rate); | 1100 &module_nack_rate); |
| 1101 *sent_video_rate_bps += module_video_rate; | 1101 *sent_video_rate_bps += module_video_rate; |
| 1102 *sent_nack_rate_bps += module_nack_rate; | 1102 *sent_nack_rate_bps += module_nack_rate; |
| 1103 *sent_fec_rate_bps += module_fec_rate; | 1103 *sent_fec_rate_bps += module_fec_rate; |
| 1104 } | 1104 } |
| 1105 return 0; | 1105 return 0; |
| 1106 } | 1106 } |
| 1107 | 1107 |
| 1108 } // namespace internal | 1108 } // namespace internal |
| 1109 } // namespace webrtc | 1109 } // namespace webrtc |
| OLD | NEW |