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

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

Issue 2310943002: Add time line for acked bitrate. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 3 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 26 matching lines...) Expand all
37 RemoteBitrateEstimator* GetBitrateEstimator() const { 37 RemoteBitrateEstimator* GetBitrateEstimator() const {
38 return bitrate_estimator_.get(); 38 return bitrate_estimator_.get();
39 } 39 }
40 40
41 // Implements TransportFeedbackObserver. 41 // Implements TransportFeedbackObserver.
42 void AddPacket(uint16_t sequence_number, 42 void AddPacket(uint16_t sequence_number,
43 size_t length, 43 size_t length,
44 int probe_cluster_id) override; 44 int probe_cluster_id) override;
45 void OnSentPacket(uint16_t sequence_number, int64_t send_time_ms); 45 void OnSentPacket(uint16_t sequence_number, int64_t send_time_ms);
46 46
47 const std::vector<PacketInfo> GetPacketFeedbackVector( 47 std::vector<PacketInfo> OnTransportFeedback(
48 const rtcp::TransportFeedback& feedback); 48 const rtcp::TransportFeedback& feedback) override;
49 void OnTransportFeedback(const rtcp::TransportFeedback& feedback) override;
50 49
51 // Implements CallStatsObserver. 50 // Implements CallStatsObserver.
52 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; 51 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override;
53 52
54 private: 53 private:
55 // Implements RemoteBitrateObserver. 54 // Implements RemoteBitrateObserver.
56 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, 55 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs,
57 uint32_t bitrate) override; 56 uint32_t bitrate) override;
58 57
59 void OnProbeBitrate(uint32_t bitrate) override; 58 void OnProbeBitrate(uint32_t bitrate) override;
60 59
60 std::vector<PacketInfo> GetPacketFeedbackVector(
61 const rtcp::TransportFeedback& feedback);
62
61 rtc::CriticalSection lock_; 63 rtc::CriticalSection lock_;
62 SendTimeHistory send_time_history_ GUARDED_BY(&lock_); 64 SendTimeHistory send_time_history_ GUARDED_BY(&lock_);
63 BitrateController* bitrate_controller_; 65 BitrateController* bitrate_controller_;
64 std::unique_ptr<RemoteBitrateEstimator> bitrate_estimator_; 66 std::unique_ptr<RemoteBitrateEstimator> bitrate_estimator_;
65 Clock* const clock_; 67 Clock* const clock_;
66 int64_t current_offset_ms_; 68 int64_t current_offset_ms_;
67 int64_t last_timestamp_us_; 69 int64_t last_timestamp_us_;
68 }; 70 };
69 71
70 } // namespace webrtc 72 } // namespace webrtc
71 73
72 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TRANSPORT_FEEDBACK_ADAPTER_H_ 74 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TRANSPORT_FEEDBACK_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698