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 740 matching lines...) Loading... |
751 // Bandwidth over-use detector options. These are used to drive | 751 // Bandwidth over-use detector options. These are used to drive |
752 // experimentation with bandwidth estimation parameters. | 752 // experimentation with bandwidth estimation parameters. |
753 // See modules/remote_bitrate_estimator/overuse_detector.h | 753 // See modules/remote_bitrate_estimator/overuse_detector.h |
754 struct OverUseDetectorOptions { | 754 struct OverUseDetectorOptions { |
755 OverUseDetectorOptions() | 755 OverUseDetectorOptions() |
756 : initial_slope(8.0/512.0), | 756 : initial_slope(8.0/512.0), |
757 initial_offset(0), | 757 initial_offset(0), |
758 initial_e(), | 758 initial_e(), |
759 initial_process_noise(), | 759 initial_process_noise(), |
760 initial_avg_noise(0.0), | 760 initial_avg_noise(0.0), |
761 initial_var_noise(50), | 761 initial_var_noise(50) { |
762 initial_threshold(25.0) { | |
763 initial_e[0][0] = 100; | 762 initial_e[0][0] = 100; |
764 initial_e[1][1] = 1e-1; | 763 initial_e[1][1] = 1e-1; |
765 initial_e[0][1] = initial_e[1][0] = 0; | 764 initial_e[0][1] = initial_e[1][0] = 0; |
766 initial_process_noise[0] = 1e-13; | 765 initial_process_noise[0] = 1e-13; |
767 initial_process_noise[1] = 1e-3; | 766 initial_process_noise[1] = 1e-2; |
768 } | 767 } |
769 double initial_slope; | 768 double initial_slope; |
770 double initial_offset; | 769 double initial_offset; |
771 double initial_e[2][2]; | 770 double initial_e[2][2]; |
772 double initial_process_noise[2]; | 771 double initial_process_noise[2]; |
773 double initial_avg_noise; | 772 double initial_avg_noise; |
774 double initial_var_noise; | 773 double initial_var_noise; |
775 double initial_threshold; | |
776 }; | 774 }; |
777 | 775 |
778 // This structure will have the information about when packet is actually | 776 // This structure will have the information about when packet is actually |
779 // received by socket. | 777 // received by socket. |
780 struct PacketTime { | 778 struct PacketTime { |
781 PacketTime() : timestamp(-1), not_before(-1) {} | 779 PacketTime() : timestamp(-1), not_before(-1) {} |
782 PacketTime(int64_t timestamp, int64_t not_before) | 780 PacketTime(int64_t timestamp, int64_t not_before) |
783 : timestamp(timestamp), not_before(not_before) { | 781 : timestamp(timestamp), not_before(not_before) { |
784 } | 782 } |
785 | 783 |
(...skipping 113 matching lines...) Loading... |
899 class StreamDataCountersCallback { | 897 class StreamDataCountersCallback { |
900 public: | 898 public: |
901 virtual ~StreamDataCountersCallback() {} | 899 virtual ~StreamDataCountersCallback() {} |
902 | 900 |
903 virtual void DataCountersUpdated(const StreamDataCounters& counters, | 901 virtual void DataCountersUpdated(const StreamDataCounters& counters, |
904 uint32_t ssrc) = 0; | 902 uint32_t ssrc) = 0; |
905 }; | 903 }; |
906 } // namespace webrtc | 904 } // namespace webrtc |
907 | 905 |
908 #endif // WEBRTC_COMMON_TYPES_H_ | 906 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |