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 |
(...skipping 27 matching lines...) Expand all Loading... |
38 // bitrate and return the result. | 38 // bitrate and return the result. |
39 ProbingResult PacketFeedback(const PacketInfo& packet_info); | 39 ProbingResult PacketFeedback(const PacketInfo& packet_info); |
40 | 40 |
41 private: | 41 private: |
42 struct AggregatedCluster { | 42 struct AggregatedCluster { |
43 int num_probes = 0; | 43 int num_probes = 0; |
44 int64_t first_send_ms = std::numeric_limits<int64_t>::max(); | 44 int64_t first_send_ms = std::numeric_limits<int64_t>::max(); |
45 int64_t last_send_ms = 0; | 45 int64_t last_send_ms = 0; |
46 int64_t first_receive_ms = std::numeric_limits<int64_t>::max(); | 46 int64_t first_receive_ms = std::numeric_limits<int64_t>::max(); |
47 int64_t last_receive_ms = 0; | 47 int64_t last_receive_ms = 0; |
48 size_t size = 0; | 48 int size_last_send = 0; |
| 49 int size_first_receive = 0; |
| 50 int size_total = 0; |
49 }; | 51 }; |
50 | 52 |
51 std::map<int, AggregatedCluster> clusters_; | 53 std::map<int, AggregatedCluster> clusters_; |
52 int last_valid_cluster_id_; | 54 int last_valid_cluster_id_; |
53 }; | 55 }; |
54 | 56 |
55 } // namespace webrtc | 57 } // namespace webrtc |
56 | 58 |
57 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_PROBE_BITRATE_ESTIMATOR_H_ | 59 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_PROBE_BITRATE_ESTIMATOR_H_ |
OLD | NEW |