OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 int count_; | 53 int count_; |
54 uint16_t prevNack_; | 54 uint16_t prevNack_; |
55 bool consecutive_; | 55 bool consecutive_; |
56 }; | 56 }; |
57 | 57 |
58 class RTCPSender { | 58 class RTCPSender { |
59 public: | 59 public: |
60 struct FeedbackState { | 60 struct FeedbackState { |
61 FeedbackState(); | 61 FeedbackState(); |
62 | 62 |
63 uint8_t send_payload_type; | |
64 uint32_t packets_sent; | 63 uint32_t packets_sent; |
65 size_t media_bytes_sent; | 64 size_t media_bytes_sent; |
66 uint32_t send_bitrate; | 65 uint32_t send_bitrate; |
67 | 66 |
68 uint32_t last_rr_ntp_secs; | 67 uint32_t last_rr_ntp_secs; |
69 uint32_t last_rr_ntp_frac; | 68 uint32_t last_rr_ntp_frac; |
70 uint32_t remote_sr; | 69 uint32_t remote_sr; |
71 | 70 |
72 bool has_last_xr_rr; | 71 bool has_last_xr_rr; |
73 rtcp::ReceiveTimeInfo last_xr_rr; | 72 rtcp::ReceiveTimeInfo last_xr_rr; |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 typedef std::unique_ptr<rtcp::RtcpPacket> (RTCPSender::*BuilderFunc)( | 281 typedef std::unique_ptr<rtcp::RtcpPacket> (RTCPSender::*BuilderFunc)( |
283 const RtcpContext&); | 282 const RtcpContext&); |
284 // Map from RTCPPacketType to builder. | 283 // Map from RTCPPacketType to builder. |
285 std::map<uint32_t, BuilderFunc> builders_; | 284 std::map<uint32_t, BuilderFunc> builders_; |
286 | 285 |
287 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTCPSender); | 286 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTCPSender); |
288 }; | 287 }; |
289 } // namespace webrtc | 288 } // namespace webrtc |
290 | 289 |
291 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_ | 290 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_ |
OLD | NEW |