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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 ret &= (simulcastStream[i] == other.simulcastStream[i]); | 740 ret &= (simulcastStream[i] == other.simulcastStream[i]); |
741 } | 741 } |
742 return ret; | 742 return ret; |
743 } | 743 } |
744 | 744 |
745 bool operator!=(const VideoCodec& other) const { | 745 bool operator!=(const VideoCodec& other) const { |
746 return !(*this == other); | 746 return !(*this == other); |
747 } | 747 } |
748 }; | 748 }; |
749 | 749 |
| 750 // Bandwidth over-use detector options. These are used to drive |
| 751 // experimentation with bandwidth estimation parameters. |
| 752 // See modules/remote_bitrate_estimator/overuse_detector.h |
| 753 struct OverUseDetectorOptions { |
| 754 OverUseDetectorOptions() |
| 755 : initial_slope(8.0/512.0), |
| 756 initial_offset(0), |
| 757 initial_e(), |
| 758 initial_process_noise(), |
| 759 initial_avg_noise(0.0), |
| 760 initial_var_noise(50) { |
| 761 initial_e[0][0] = 100; |
| 762 initial_e[1][1] = 1e-1; |
| 763 initial_e[0][1] = initial_e[1][0] = 0; |
| 764 initial_process_noise[0] = 1e-13; |
| 765 initial_process_noise[1] = 1e-2; |
| 766 } |
| 767 double initial_slope; |
| 768 double initial_offset; |
| 769 double initial_e[2][2]; |
| 770 double initial_process_noise[2]; |
| 771 double initial_avg_noise; |
| 772 double initial_var_noise; |
| 773 }; |
| 774 |
750 // This structure will have the information about when packet is actually | 775 // This structure will have the information about when packet is actually |
751 // received by socket. | 776 // received by socket. |
752 struct PacketTime { | 777 struct PacketTime { |
753 PacketTime() : timestamp(-1), not_before(-1) {} | 778 PacketTime() : timestamp(-1), not_before(-1) {} |
754 PacketTime(int64_t timestamp, int64_t not_before) | 779 PacketTime(int64_t timestamp, int64_t not_before) |
755 : timestamp(timestamp), not_before(not_before) { | 780 : timestamp(timestamp), not_before(not_before) { |
756 } | 781 } |
757 | 782 |
758 int64_t timestamp; // Receive time after socket delivers the data. | 783 int64_t timestamp; // Receive time after socket delivers the data. |
759 int64_t not_before; // Earliest possible time the data could have arrived, | 784 int64_t not_before; // Earliest possible time the data could have arrived, |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 uint32_t ssrc) = 0; | 902 uint32_t ssrc) = 0; |
878 }; | 903 }; |
879 | 904 |
880 // RTCP mode to use. Compound mode is described by RFC 4585 and reduced-size | 905 // RTCP mode to use. Compound mode is described by RFC 4585 and reduced-size |
881 // RTCP mode is described by RFC 5506. | 906 // RTCP mode is described by RFC 5506. |
882 enum class RtcpMode { kOff, kCompound, kReducedSize }; | 907 enum class RtcpMode { kOff, kCompound, kReducedSize }; |
883 | 908 |
884 } // namespace webrtc | 909 } // namespace webrtc |
885 | 910 |
886 #endif // WEBRTC_COMMON_TYPES_H_ | 911 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |