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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 63 uint8_t send_payload_type; |
64 uint32_t frequency_hz; | |
65 uint32_t packets_sent; | 64 uint32_t packets_sent; |
66 size_t media_bytes_sent; | 65 size_t media_bytes_sent; |
67 uint32_t send_bitrate; | 66 uint32_t send_bitrate; |
68 | 67 |
69 uint32_t last_rr_ntp_secs; | 68 uint32_t last_rr_ntp_secs; |
70 uint32_t last_rr_ntp_frac; | 69 uint32_t last_rr_ntp_frac; |
71 uint32_t remote_sr; | 70 uint32_t remote_sr; |
72 | 71 |
73 bool has_last_xr_rr; | 72 bool has_last_xr_rr; |
74 rtcp::ReceiveTimeInfo last_xr_rr; | 73 rtcp::ReceiveTimeInfo last_xr_rr; |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 | 288 |
290 typedef std::unique_ptr<rtcp::RtcpPacket> (RTCPSender::*BuilderFunc)( | 289 typedef std::unique_ptr<rtcp::RtcpPacket> (RTCPSender::*BuilderFunc)( |
291 const RtcpContext&); | 290 const RtcpContext&); |
292 std::map<RTCPPacketType, BuilderFunc> builders_; | 291 std::map<RTCPPacketType, BuilderFunc> builders_; |
293 | 292 |
294 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTCPSender); | 293 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTCPSender); |
295 }; | 294 }; |
296 } // namespace webrtc | 295 } // namespace webrtc |
297 | 296 |
298 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_ | 297 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_ |
OLD | NEW |