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

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

Issue 2131913003: Revert of Refactor 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;
27 class ReceiveStatistics; 26 class ReceiveStatistics;
28 class RemoteBitrateEstimator; 27 class RemoteBitrateEstimator;
29 class RtcEventLog;
30 class RtpReceiver; 28 class RtpReceiver;
31 class Transport; 29 class Transport;
30 class RtcEventLog;
32 31
33 RTPExtensionType StringToRtpExtensionType(const std::string& extension); 32 RTPExtensionType StringToRtpExtensionType(const std::string& extension);
34 33
35 namespace rtcp { 34 namespace rtcp {
36 class TransportFeedback; 35 class TransportFeedback;
37 } 36 }
38 37
39 class RtpRtcp : public Module { 38 class RtpRtcp : public Module {
40 public: 39 public:
41 struct Configuration { 40 struct Configuration {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 RtcpRttStats* rtt_stats; 72 RtcpRttStats* rtt_stats;
74 RtcpPacketTypeCounterObserver* rtcp_packet_type_counter_observer; 73 RtcpPacketTypeCounterObserver* rtcp_packet_type_counter_observer;
75 RemoteBitrateEstimator* remote_bitrate_estimator; 74 RemoteBitrateEstimator* remote_bitrate_estimator;
76 RtpPacketSender* paced_sender; 75 RtpPacketSender* paced_sender;
77 TransportSequenceNumberAllocator* transport_sequence_number_allocator; 76 TransportSequenceNumberAllocator* transport_sequence_number_allocator;
78 BitrateStatisticsObserver* send_bitrate_observer; 77 BitrateStatisticsObserver* send_bitrate_observer;
79 FrameCountObserver* send_frame_count_observer; 78 FrameCountObserver* send_frame_count_observer;
80 SendSideDelayObserver* send_side_delay_observer; 79 SendSideDelayObserver* send_side_delay_observer;
81 RtcEventLog* event_log; 80 RtcEventLog* event_log;
82 SendPacketObserver* send_packet_observer; 81 SendPacketObserver* send_packet_observer;
83 RateLimiter* retransmission_rate_limiter;
84 RTC_DISALLOW_COPY_AND_ASSIGN(Configuration); 82 RTC_DISALLOW_COPY_AND_ASSIGN(Configuration);
85 }; 83 };
86 84
87 /* 85 /*
88 * Create a RTP/RTCP module object using the system clock. 86 * Create a RTP/RTCP module object using the system clock.
89 * 87 *
90 * configuration - Configuration of the RTP/RTCP module. 88 * configuration - Configuration of the RTP/RTCP module.
91 */ 89 */
92 static RtpRtcp* CreateRtpRtcp(const RtpRtcp::Configuration& configuration); 90 static RtpRtcp* CreateRtpRtcp(const RtpRtcp::Configuration& configuration);
93 91
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 */ 609 */
612 virtual int32_t SetAudioLevel(uint8_t level_dBov) = 0; 610 virtual int32_t SetAudioLevel(uint8_t level_dBov) = 0;
613 611
614 /************************************************************************** 612 /**************************************************************************
615 * 613 *
616 * Video 614 * Video
617 * 615 *
618 ***************************************************************************/ 616 ***************************************************************************/
619 617
620 /* 618 /*
619 * Set the target send bitrate
620 */
621 virtual void SetTargetSendBitrate(uint32_t bitrate_bps) = 0;
622
623 /*
621 * Turn on/off generic FEC 624 * Turn on/off generic FEC
622 */ 625 */
623 virtual void SetGenericFECStatus(bool enable, 626 virtual void SetGenericFECStatus(bool enable,
624 uint8_t payload_type_red, 627 uint8_t payload_type_red,
625 uint8_t payload_type_fec) = 0; 628 uint8_t payload_type_fec) = 0;
626 629
627 /* 630 /*
628 * Get generic FEC setting 631 * Get generic FEC setting
629 */ 632 */
630 virtual void GenericFECStatus(bool* enable, 633 virtual void GenericFECStatus(bool* enable,
(...skipping 13 matching lines...) Expand all
644 647
645 /* 648 /*
646 * send a request for a keyframe 649 * send a request for a keyframe
647 * 650 *
648 * return -1 on failure else 0 651 * return -1 on failure else 0
649 */ 652 */
650 virtual int32_t RequestKeyFrame() = 0; 653 virtual int32_t RequestKeyFrame() = 0;
651 }; 654 };
652 } // namespace webrtc 655 } // namespace webrtc
653 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ 656 #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