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 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 ret &= (simulcastStream[i] == other.simulcastStream[i]); | 732 ret &= (simulcastStream[i] == other.simulcastStream[i]); |
733 } | 733 } |
734 return ret; | 734 return ret; |
735 } | 735 } |
736 | 736 |
737 bool operator!=(const VideoCodec& other) const { | 737 bool operator!=(const VideoCodec& other) const { |
738 return !(*this == other); | 738 return !(*this == other); |
739 } | 739 } |
740 }; | 740 }; |
741 | 741 |
742 // Bandwidth over-use detector options. These are used to drive | |
743 // experimentation with bandwidth estimation parameters. | |
744 // See modules/remote_bitrate_estimator/overuse_detector.h | |
745 struct OverUseDetectorOptions { | |
746 OverUseDetectorOptions() | |
747 : initial_slope(8.0/512.0), | |
748 initial_offset(0), | |
749 initial_e(), | |
750 initial_process_noise(), | |
751 initial_avg_noise(0.0), | |
752 initial_var_noise(50) { | |
753 initial_e[0][0] = 100; | |
754 initial_e[1][1] = 1e-1; | |
755 initial_e[0][1] = initial_e[1][0] = 0; | |
756 initial_process_noise[0] = 1e-13; | |
757 initial_process_noise[1] = 1e-2; | |
758 } | |
759 double initial_slope; | |
760 double initial_offset; | |
761 double initial_e[2][2]; | |
762 double initial_process_noise[2]; | |
763 double initial_avg_noise; | |
764 double initial_var_noise; | |
765 }; | |
766 | |
767 // This structure will have the information about when packet is actually | 742 // This structure will have the information about when packet is actually |
768 // received by socket. | 743 // received by socket. |
769 struct PacketTime { | 744 struct PacketTime { |
770 PacketTime() : timestamp(-1), not_before(-1) {} | 745 PacketTime() : timestamp(-1), not_before(-1) {} |
771 PacketTime(int64_t timestamp, int64_t not_before) | 746 PacketTime(int64_t timestamp, int64_t not_before) |
772 : timestamp(timestamp), not_before(not_before) { | 747 : timestamp(timestamp), not_before(not_before) { |
773 } | 748 } |
774 | 749 |
775 int64_t timestamp; // Receive time after socket delivers the data. | 750 int64_t timestamp; // Receive time after socket delivers the data. |
776 int64_t not_before; // Earliest possible time the data could have arrived, | 751 int64_t not_before; // Earliest possible time the data could have arrived, |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 class StreamDataCountersCallback { | 864 class StreamDataCountersCallback { |
890 public: | 865 public: |
891 virtual ~StreamDataCountersCallback() {} | 866 virtual ~StreamDataCountersCallback() {} |
892 | 867 |
893 virtual void DataCountersUpdated(const StreamDataCounters& counters, | 868 virtual void DataCountersUpdated(const StreamDataCounters& counters, |
894 uint32_t ssrc) = 0; | 869 uint32_t ssrc) = 0; |
895 }; | 870 }; |
896 } // namespace webrtc | 871 } // namespace webrtc |
897 | 872 |
898 #endif // WEBRTC_COMMON_TYPES_H_ | 873 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |