| 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 15 matching lines...) Expand all Loading... |
| 26 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" | 26 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" |
| 27 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 27 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
| 28 #include "webrtc/modules/rtp_rtcp/source/tmmbr_help.h" | 28 #include "webrtc/modules/rtp_rtcp/source/tmmbr_help.h" |
| 29 #include "webrtc/typedefs.h" | 29 #include "webrtc/typedefs.h" |
| 30 | 30 |
| 31 namespace webrtc { | 31 namespace webrtc { |
| 32 | 32 |
| 33 class ModuleRtpRtcpImpl; | 33 class ModuleRtpRtcpImpl; |
| 34 class RTCPReceiver; | 34 class RTCPReceiver; |
| 35 | 35 |
| 36 namespace rtcp { |
| 37 class TransportFeedback; |
| 38 } |
| 36 class NACKStringBuilder { | 39 class NACKStringBuilder { |
| 37 public: | 40 public: |
| 38 NACKStringBuilder(); | 41 NACKStringBuilder(); |
| 39 ~NACKStringBuilder(); | 42 ~NACKStringBuilder(); |
| 40 | 43 |
| 41 void PushNACK(uint16_t nack); | 44 void PushNACK(uint16_t nack); |
| 42 std::string GetResult(); | 45 std::string GetResult(); |
| 43 | 46 |
| 44 private: | 47 private: |
| 45 std::ostringstream stream_; | 48 std::ostringstream stream_; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 uint16_t length); | 143 uint16_t length); |
| 141 int32_t SetRTCPVoIPMetrics(const RTCPVoIPMetric* VoIPMetric); | 144 int32_t SetRTCPVoIPMetrics(const RTCPVoIPMetric* VoIPMetric); |
| 142 | 145 |
| 143 void SendRtcpXrReceiverReferenceTime(bool enable); | 146 void SendRtcpXrReceiverReferenceTime(bool enable); |
| 144 | 147 |
| 145 bool RtcpXrReceiverReferenceTime() const; | 148 bool RtcpXrReceiverReferenceTime() const; |
| 146 | 149 |
| 147 void SetCsrcs(const std::vector<uint32_t>& csrcs); | 150 void SetCsrcs(const std::vector<uint32_t>& csrcs); |
| 148 | 151 |
| 149 void SetTargetBitrate(unsigned int target_bitrate); | 152 void SetTargetBitrate(unsigned int target_bitrate); |
| 153 bool SendFeedbackPacket(const rtcp::TransportFeedback& packet); |
| 150 | 154 |
| 151 private: | 155 private: |
| 152 struct RtcpContext; | 156 struct RtcpContext; |
| 153 | 157 |
| 154 // The BuildResult indicates the outcome of a call to a builder method, | 158 // The BuildResult indicates the outcome of a call to a builder method, |
| 155 // constructing a part of an RTCP packet: | 159 // constructing a part of an RTCP packet: |
| 156 // | 160 // |
| 157 // kError | 161 // kError |
| 158 // Building RTCP packet failed, propagate error out to caller. | 162 // Building RTCP packet failed, propagate error out to caller. |
| 159 // kAbort | 163 // kAbort |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 std::set<ReportFlag> report_flags_ GUARDED_BY(critical_section_rtcp_sender_); | 323 std::set<ReportFlag> report_flags_ GUARDED_BY(critical_section_rtcp_sender_); |
| 320 | 324 |
| 321 typedef BuildResult (RTCPSender::*Builder)(RtcpContext*); | 325 typedef BuildResult (RTCPSender::*Builder)(RtcpContext*); |
| 322 std::map<RTCPPacketType, Builder> builders_; | 326 std::map<RTCPPacketType, Builder> builders_; |
| 323 | 327 |
| 324 class PacketBuiltCallback; | 328 class PacketBuiltCallback; |
| 325 }; | 329 }; |
| 326 } // namespace webrtc | 330 } // namespace webrtc |
| 327 | 331 |
| 328 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_ | 332 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_ |
| OLD | NEW |