| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2  *  Copyright (c) 2016 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_CONGESTION_CONTROLLER_PROBE_BITRATE_ESTIMATOR_H_ | 11 #ifndef WEBRTC_MODULES_CONGESTION_CONTROLLER_PROBE_BITRATE_ESTIMATOR_H_ | 
| 12 #define WEBRTC_MODULES_CONGESTION_CONTROLLER_PROBE_BITRATE_ESTIMATOR_H_ | 12 #define WEBRTC_MODULES_CONGESTION_CONTROLLER_PROBE_BITRATE_ESTIMATOR_H_ | 
| 13 | 13 | 
| 14 #include <map> | 14 #include <map> | 
| 15 #include <limits> | 15 #include <limits> | 
| 16 | 16 | 
| 17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 
| 18 | 18 | 
| 19 namespace webrtc { | 19 namespace webrtc { | 
| 20 | 20 | 
| 21 struct ProbingResult { | 21 struct ProbingResult { | 
| 22   static constexpr int kNoEstimate = -1; | 22   static constexpr int kNoEstimate = -1; | 
| 23 | 23 | 
| 24   ProbingResult(); | 24   ProbingResult(); | 
| 25   ProbingResult(int bps, int64_t timestamp); | 25   ProbingResult(int bps, int64_t timestamp); | 
|  | 26   bool valid() const; | 
| 26 | 27 | 
| 27   int bps; | 28   int bps; | 
| 28   int64_t timestamp; | 29   int64_t timestamp; | 
| 29 }; | 30 }; | 
| 30 | 31 | 
| 31 class ProbeBitrateEstimator { | 32 class ProbeBitrateEstimator { | 
| 32  public: | 33  public: | 
| 33   ProbeBitrateEstimator(); | 34   ProbeBitrateEstimator(); | 
| 34 | 35 | 
| 35   // Should be called for every packet we receive feedback about. If the | 36   // Should be called for every packet we receive feedback about. If the | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
| 47     size_t size = 0; | 48     size_t size = 0; | 
| 48   }; | 49   }; | 
| 49 | 50 | 
| 50   std::map<int, AggregatedCluster> clusters_; | 51   std::map<int, AggregatedCluster> clusters_; | 
| 51   int last_valid_cluster_id_; | 52   int last_valid_cluster_id_; | 
| 52 }; | 53 }; | 
| 53 | 54 | 
| 54 }  // namespace webrtc | 55 }  // namespace webrtc | 
| 55 | 56 | 
| 56 #endif  // WEBRTC_MODULES_CONGESTION_CONTROLLER_PROBE_BITRATE_ESTIMATOR_H_ | 57 #endif  // WEBRTC_MODULES_CONGESTION_CONTROLLER_PROBE_BITRATE_ESTIMATOR_H_ | 
| OLD | NEW | 
|---|