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_INCLUDE_RTP_RTCP_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ |
12 #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ |
13 | 13 |
14 #include <set> | 14 #include <set> |
15 #include <string> | 15 #include <string> |
16 #include <utility> | 16 #include <utility> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "webrtc/base/constructormagic.h" | 19 #include "webrtc/base/constructormagic.h" |
20 #include "webrtc/base/deprecation.h" | 20 #include "webrtc/base/deprecation.h" |
21 #include "webrtc/base/optional.h" | 21 #include "webrtc/base/optional.h" |
22 #include "webrtc/modules/include/module.h" | 22 #include "webrtc/modules/include/module.h" |
23 #include "webrtc/modules/rtp_rtcp/include/flexfec_sender.h" | 23 #include "webrtc/modules/rtp_rtcp/include/flexfec_sender.h" |
24 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 24 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
25 #include "webrtc/modules/video_coding/include/video_coding_defines.h" | 25 #include "webrtc/modules/video_coding/include/video_coding_defines.h" |
26 | 26 |
27 namespace webrtc { | 27 namespace webrtc { |
28 | 28 |
29 // Forward declarations. | 29 // Forward declarations. |
| 30 class OverheadObserver; |
30 class RateLimiter; | 31 class RateLimiter; |
31 class ReceiveStatistics; | 32 class ReceiveStatistics; |
32 class RemoteBitrateEstimator; | 33 class RemoteBitrateEstimator; |
33 class RtcEventLog; | 34 class RtcEventLog; |
34 class RtpReceiver; | 35 class RtpReceiver; |
35 class Transport; | 36 class Transport; |
36 | 37 |
37 RTPExtensionType StringToRtpExtensionType(const std::string& extension); | 38 RTPExtensionType StringToRtpExtensionType(const std::string& extension); |
38 | 39 |
39 namespace rtcp { | 40 namespace rtcp { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 FlexfecSender* flexfec_sender = nullptr; | 83 FlexfecSender* flexfec_sender = nullptr; |
83 | 84 |
84 TransportSequenceNumberAllocator* transport_sequence_number_allocator = | 85 TransportSequenceNumberAllocator* transport_sequence_number_allocator = |
85 nullptr; | 86 nullptr; |
86 BitrateStatisticsObserver* send_bitrate_observer = nullptr; | 87 BitrateStatisticsObserver* send_bitrate_observer = nullptr; |
87 FrameCountObserver* send_frame_count_observer = nullptr; | 88 FrameCountObserver* send_frame_count_observer = nullptr; |
88 SendSideDelayObserver* send_side_delay_observer = nullptr; | 89 SendSideDelayObserver* send_side_delay_observer = nullptr; |
89 RtcEventLog* event_log = nullptr; | 90 RtcEventLog* event_log = nullptr; |
90 SendPacketObserver* send_packet_observer = nullptr; | 91 SendPacketObserver* send_packet_observer = nullptr; |
91 RateLimiter* retransmission_rate_limiter = nullptr; | 92 RateLimiter* retransmission_rate_limiter = nullptr; |
| 93 OverheadObserver* overhead_observer = nullptr; |
92 | 94 |
93 private: | 95 private: |
94 RTC_DISALLOW_COPY_AND_ASSIGN(Configuration); | 96 RTC_DISALLOW_COPY_AND_ASSIGN(Configuration); |
95 }; | 97 }; |
96 | 98 |
97 // Create a RTP/RTCP module object using the system clock. | 99 // Create a RTP/RTCP module object using the system clock. |
98 // |configuration| - Configuration of the RTP/RTCP module. | 100 // |configuration| - Configuration of the RTP/RTCP module. |
99 static RtpRtcp* CreateRtpRtcp(const RtpRtcp::Configuration& configuration); | 101 static RtpRtcp* CreateRtpRtcp(const RtpRtcp::Configuration& configuration); |
100 | 102 |
101 // ************************************************************************** | 103 // ************************************************************************** |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; | 477 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; |
476 | 478 |
477 // Sends a request for a keyframe. | 479 // Sends a request for a keyframe. |
478 // Returns -1 on failure else 0. | 480 // Returns -1 on failure else 0. |
479 virtual int32_t RequestKeyFrame() = 0; | 481 virtual int32_t RequestKeyFrame() = 0; |
480 }; | 482 }; |
481 | 483 |
482 } // namespace webrtc | 484 } // namespace webrtc |
483 | 485 |
484 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ | 486 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ |
OLD | NEW |