Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: webrtc/modules/rtp_rtcp/include/rtp_rtcp.h

Issue 2146013002: Reland of actor NACK bitrate allocation (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/modules/include/module.h" 20 #include "webrtc/modules/include/module.h"
21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
22 #include "webrtc/modules/video_coding/include/video_coding_defines.h" 22 #include "webrtc/modules/video_coding/include/video_coding_defines.h"
23 23
24 namespace webrtc { 24 namespace webrtc {
25 // Forward declarations. 25 // Forward declarations.
26 class RateLimiter;
26 class ReceiveStatistics; 27 class ReceiveStatistics;
27 class RemoteBitrateEstimator; 28 class RemoteBitrateEstimator;
29 class RtcEventLog;
28 class RtpReceiver; 30 class RtpReceiver;
29 class Transport; 31 class Transport;
30 class RtcEventLog;
31 32
32 RTPExtensionType StringToRtpExtensionType(const std::string& extension); 33 RTPExtensionType StringToRtpExtensionType(const std::string& extension);
33 34
34 namespace rtcp { 35 namespace rtcp {
35 class TransportFeedback; 36 class TransportFeedback;
36 } 37 }
37 38
38 class RtpRtcp : public Module { 39 class RtpRtcp : public Module {
39 public: 40 public:
40 struct Configuration { 41 struct Configuration {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 RtcpRttStats* rtt_stats; 73 RtcpRttStats* rtt_stats;
73 RtcpPacketTypeCounterObserver* rtcp_packet_type_counter_observer; 74 RtcpPacketTypeCounterObserver* rtcp_packet_type_counter_observer;
74 RemoteBitrateEstimator* remote_bitrate_estimator; 75 RemoteBitrateEstimator* remote_bitrate_estimator;
75 RtpPacketSender* paced_sender; 76 RtpPacketSender* paced_sender;
76 TransportSequenceNumberAllocator* transport_sequence_number_allocator; 77 TransportSequenceNumberAllocator* transport_sequence_number_allocator;
77 BitrateStatisticsObserver* send_bitrate_observer; 78 BitrateStatisticsObserver* send_bitrate_observer;
78 FrameCountObserver* send_frame_count_observer; 79 FrameCountObserver* send_frame_count_observer;
79 SendSideDelayObserver* send_side_delay_observer; 80 SendSideDelayObserver* send_side_delay_observer;
80 RtcEventLog* event_log; 81 RtcEventLog* event_log;
81 SendPacketObserver* send_packet_observer; 82 SendPacketObserver* send_packet_observer;
83 RateLimiter* retransmission_rate_limiter;
82 RTC_DISALLOW_COPY_AND_ASSIGN(Configuration); 84 RTC_DISALLOW_COPY_AND_ASSIGN(Configuration);
83 }; 85 };
84 86
85 /* 87 /*
86 * Create a RTP/RTCP module object using the system clock. 88 * Create a RTP/RTCP module object using the system clock.
87 * 89 *
88 * configuration - Configuration of the RTP/RTCP module. 90 * configuration - Configuration of the RTP/RTCP module.
89 */ 91 */
90 static RtpRtcp* CreateRtpRtcp(const RtpRtcp::Configuration& configuration); 92 static RtpRtcp* CreateRtpRtcp(const RtpRtcp::Configuration& configuration);
91 93
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 */ 611 */
610 virtual int32_t SetAudioLevel(uint8_t level_dBov) = 0; 612 virtual int32_t SetAudioLevel(uint8_t level_dBov) = 0;
611 613
612 /************************************************************************** 614 /**************************************************************************
613 * 615 *
614 * Video 616 * Video
615 * 617 *
616 ***************************************************************************/ 618 ***************************************************************************/
617 619
618 /* 620 /*
619 * Set the target send bitrate
620 */
621 virtual void SetTargetSendBitrate(uint32_t bitrate_bps) = 0;
622
623 /*
624 * Turn on/off generic FEC 621 * Turn on/off generic FEC
625 */ 622 */
626 virtual void SetGenericFECStatus(bool enable, 623 virtual void SetGenericFECStatus(bool enable,
627 uint8_t payload_type_red, 624 uint8_t payload_type_red,
628 uint8_t payload_type_fec) = 0; 625 uint8_t payload_type_fec) = 0;
629 626
630 /* 627 /*
631 * Get generic FEC setting 628 * Get generic FEC setting
632 */ 629 */
633 virtual void GenericFECStatus(bool* enable, 630 virtual void GenericFECStatus(bool* enable,
(...skipping 13 matching lines...) Expand all
647 644
648 /* 645 /*
649 * send a request for a keyframe 646 * send a request for a keyframe
650 * 647 *
651 * return -1 on failure else 0 648 * return -1 on failure else 0
652 */ 649 */
653 virtual int32_t RequestKeyFrame() = 0; 650 virtual int32_t RequestKeyFrame() = 0;
654 }; 651 };
655 } // namespace webrtc 652 } // namespace webrtc
656 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ 653 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/include/receive_statistics.h ('k') | webrtc/modules/rtp_rtcp/rtp_rtcp.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698