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 |
11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ |
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ |
13 | 13 |
14 #include <list> | 14 #include <list> |
15 #include <set> | 15 #include <set> |
| 16 #include <string> |
16 #include <utility> | 17 #include <utility> |
17 #include <vector> | 18 #include <vector> |
18 | 19 |
19 #include "webrtc/base/criticalsection.h" | 20 #include "webrtc/base/criticalsection.h" |
20 #include "webrtc/base/gtest_prod_util.h" | 21 #include "webrtc/base/gtest_prod_util.h" |
21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 22 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
22 #include "webrtc/modules/rtp_rtcp/source/packet_loss_stats.h" | 23 #include "webrtc/modules/rtp_rtcp/source/packet_loss_stats.h" |
23 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver.h" | 24 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver.h" |
24 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" | 25 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" |
25 #include "webrtc/modules/rtp_rtcp/source/rtp_sender.h" | 26 #include "webrtc/modules/rtp_rtcp/source/rtp_sender.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 int32_t DeRegisterSendPayload(int8_t payload_type) override; | 58 int32_t DeRegisterSendPayload(int8_t payload_type) override; |
58 | 59 |
59 int8_t SendPayloadType() const; | 60 int8_t SendPayloadType() const; |
60 | 61 |
61 // Register RTP header extension. | 62 // Register RTP header extension. |
62 int32_t RegisterSendRtpHeaderExtension(RTPExtensionType type, | 63 int32_t RegisterSendRtpHeaderExtension(RTPExtensionType type, |
63 uint8_t id) override; | 64 uint8_t id) override; |
64 | 65 |
65 int32_t DeregisterSendRtpHeaderExtension(RTPExtensionType type) override; | 66 int32_t DeregisterSendRtpHeaderExtension(RTPExtensionType type) override; |
66 | 67 |
| 68 bool RegisterRtpHeaderExtension(const std::string& type, |
| 69 MediaType media, |
| 70 uint8_t id) override; |
| 71 |
67 // Get start timestamp. | 72 // Get start timestamp. |
68 uint32_t StartTimestamp() const override; | 73 uint32_t StartTimestamp() const override; |
69 | 74 |
70 // Configure start timestamp, default is a random number. | 75 // Configure start timestamp, default is a random number. |
71 void SetStartTimestamp(uint32_t timestamp) override; | 76 void SetStartTimestamp(uint32_t timestamp) override; |
72 | 77 |
73 uint16_t SequenceNumber() const override; | 78 uint16_t SequenceNumber() const override; |
74 | 79 |
75 // Set SequenceNumber, default is a random number. | 80 // Set SequenceNumber, default is a random number. |
76 void SetSequenceNumber(uint16_t seq) override; | 81 void SetSequenceNumber(uint16_t seq) override; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // Send a Negative acknowledgment packet. | 228 // Send a Negative acknowledgment packet. |
224 // TODO(philipel): Deprecate SendNACK and use SendNack instead. | 229 // TODO(philipel): Deprecate SendNACK and use SendNack instead. |
225 int32_t SendNACK(const uint16_t* nack_list, uint16_t size) override; | 230 int32_t SendNACK(const uint16_t* nack_list, uint16_t size) override; |
226 | 231 |
227 void SendNack(const std::vector<uint16_t>& sequence_numbers) override; | 232 void SendNack(const std::vector<uint16_t>& sequence_numbers) override; |
228 | 233 |
229 // Store the sent packets, needed to answer to a negative acknowledgment | 234 // Store the sent packets, needed to answer to a negative acknowledgment |
230 // requests. | 235 // requests. |
231 void SetStorePacketsStatus(bool enable, uint16_t number_to_store) override; | 236 void SetStorePacketsStatus(bool enable, uint16_t number_to_store) override; |
232 | 237 |
233 bool StorePackets() const override; | |
234 | |
235 // Called on receipt of RTCP report block from remote side. | 238 // Called on receipt of RTCP report block from remote side. |
236 void RegisterRtcpStatisticsCallback( | 239 void RegisterRtcpStatisticsCallback( |
237 RtcpStatisticsCallback* callback) override; | 240 RtcpStatisticsCallback* callback) override; |
238 RtcpStatisticsCallback* GetRtcpStatisticsCallback() override; | 241 RtcpStatisticsCallback* GetRtcpStatisticsCallback() override; |
239 | 242 |
240 bool SendFeedbackPacket(const rtcp::TransportFeedback& packet) override; | 243 bool SendFeedbackPacket(const rtcp::TransportFeedback& packet) override; |
241 // (APP) Application specific data. | 244 // (APP) Application specific data. |
242 int32_t SetRTCPApplicationSpecificData(uint8_t sub_type, | 245 int32_t SetRTCPApplicationSpecificData(uint8_t sub_type, |
243 uint32_t name, | 246 uint32_t name, |
244 const uint8_t* data, | 247 const uint8_t* data, |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 PacketLossStats receive_loss_stats_; | 367 PacketLossStats receive_loss_stats_; |
365 | 368 |
366 // The processed RTT from RtcpRttStats. | 369 // The processed RTT from RtcpRttStats. |
367 rtc::CriticalSection critical_section_rtt_; | 370 rtc::CriticalSection critical_section_rtt_; |
368 int64_t rtt_ms_; | 371 int64_t rtt_ms_; |
369 }; | 372 }; |
370 | 373 |
371 } // namespace webrtc | 374 } // namespace webrtc |
372 | 375 |
373 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ | 376 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ |
OLD | NEW |