OLD | NEW |
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 |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 int64_t Unwrap(uint16_t sequence_number) { | 522 int64_t Unwrap(uint16_t sequence_number) { |
523 int64_t unwrapped = UnwrapWithoutUpdate(sequence_number); | 523 int64_t unwrapped = UnwrapWithoutUpdate(sequence_number); |
524 UpdateLast(unwrapped); | 524 UpdateLast(unwrapped); |
525 return unwrapped; | 525 return unwrapped; |
526 } | 526 } |
527 | 527 |
528 private: | 528 private: |
529 int64_t last_seq_; | 529 int64_t last_seq_; |
530 }; | 530 }; |
531 | 531 |
| 532 struct PacedPacketInfo { |
| 533 PacedPacketInfo() {} |
| 534 PacedPacketInfo(int probe_cluster_id, |
| 535 int probe_cluster_min_probes, |
| 536 int probe_cluster_min_bytes) |
| 537 : probe_cluster_id(probe_cluster_id), |
| 538 probe_cluster_min_probes(probe_cluster_min_probes), |
| 539 probe_cluster_min_bytes(probe_cluster_min_bytes) {} |
| 540 |
| 541 static constexpr int kNotAProbe = -1; |
| 542 int send_bitrate_bps = -1; |
| 543 int probe_cluster_id = kNotAProbe; |
| 544 int probe_cluster_min_probes = -1; |
| 545 int probe_cluster_min_bytes = -1; |
| 546 }; |
| 547 |
532 } // namespace webrtc | 548 } // namespace webrtc |
533 | 549 |
534 #endif // WEBRTC_MODULES_INCLUDE_MODULE_COMMON_TYPES_H_ | 550 #endif // WEBRTC_MODULES_INCLUDE_MODULE_COMMON_TYPES_H_ |
OLD | NEW |