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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h

Issue 1699903003: Update bitrate only when we have incoming packet. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix lint Created 4 years, 10 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 23 matching lines...) Expand all
34 public: 34 public:
35 RemoteEstimatorProxy(Clock* clock, PacketRouter* packet_router); 35 RemoteEstimatorProxy(Clock* clock, PacketRouter* packet_router);
36 virtual ~RemoteEstimatorProxy(); 36 virtual ~RemoteEstimatorProxy();
37 37
38 void IncomingPacketFeedbackVector( 38 void IncomingPacketFeedbackVector(
39 const std::vector<PacketInfo>& packet_feedback_vector) override; 39 const std::vector<PacketInfo>& packet_feedback_vector) override;
40 void IncomingPacket(int64_t arrival_time_ms, 40 void IncomingPacket(int64_t arrival_time_ms,
41 size_t payload_size, 41 size_t payload_size,
42 const RTPHeader& header, 42 const RTPHeader& header,
43 bool was_paced) override; 43 bool was_paced) override;
44 void RemoveStream(unsigned int ssrc) override; 44 void RemoveStream(uint32_t ssrc) override {}
45 bool LatestEstimate(std::vector<unsigned int>* ssrcs, 45 bool LatestEstimate(std::vector<unsigned int>* ssrcs,
46 unsigned int* bitrate_bps) const override; 46 unsigned int* bitrate_bps) const override;
47 bool GetStats(ReceiveBandwidthEstimatorStats* output) const override;
48 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override {} 47 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override {}
49 void SetMinBitrate(int min_bitrate_bps) override {} 48 void SetMinBitrate(int min_bitrate_bps) override {}
50 int64_t TimeUntilNextProcess() override; 49 int64_t TimeUntilNextProcess() override;
51 int32_t Process() override; 50 int32_t Process() override;
52 51
53 static const int kDefaultProcessIntervalMs; 52 static const int kDefaultProcessIntervalMs;
54 static const int kBackWindowMs; 53 static const int kBackWindowMs;
55 54
56 private: 55 private:
57 void OnPacketArrival(uint16_t sequence_number, int64_t arrival_time) 56 void OnPacketArrival(uint16_t sequence_number, int64_t arrival_time)
(...skipping 10 matching lines...) Expand all
68 uint8_t feedback_sequence_ GUARDED_BY(&lock_); 67 uint8_t feedback_sequence_ GUARDED_BY(&lock_);
69 SequenceNumberUnwrapper unwrapper_ GUARDED_BY(&lock_); 68 SequenceNumberUnwrapper unwrapper_ GUARDED_BY(&lock_);
70 int64_t window_start_seq_ GUARDED_BY(&lock_); 69 int64_t window_start_seq_ GUARDED_BY(&lock_);
71 // Map unwrapped seq -> time. 70 // Map unwrapped seq -> time.
72 std::map<int64_t, int64_t> packet_arrival_times_ GUARDED_BY(&lock_); 71 std::map<int64_t, int64_t> packet_arrival_times_ GUARDED_BY(&lock_);
73 }; 72 };
74 73
75 } // namespace webrtc 74 } // namespace webrtc
76 75
77 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_ESTIMATOR_PROXY_H_ 76 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_ESTIMATOR_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698