Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(473)

Side by Side Diff: webrtc/common_types.h

Issue 1376423002: Make overuse estimator one dimensional. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/remote_bitrate_estimator/inter_arrival.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
775 // This structure will have the information about when packet is actually 750 // This structure will have the information about when packet is actually
776 // received by socket. 751 // received by socket.
777 struct PacketTime { 752 struct PacketTime {
778 PacketTime() : timestamp(-1), not_before(-1) {} 753 PacketTime() : timestamp(-1), not_before(-1) {}
779 PacketTime(int64_t timestamp, int64_t not_before) 754 PacketTime(int64_t timestamp, int64_t not_before)
780 : timestamp(timestamp), not_before(not_before) { 755 : timestamp(timestamp), not_before(not_before) {
781 } 756 }
782 757
783 int64_t timestamp; // Receive time after socket delivers the data. 758 int64_t timestamp; // Receive time after socket delivers the data.
784 int64_t not_before; // Earliest possible time the data could have arrived, 759 int64_t not_before; // Earliest possible time the data could have arrived,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 uint32_t ssrc) = 0; 877 uint32_t ssrc) = 0;
903 }; 878 };
904 879
905 // RTCP mode to use. Compound mode is described by RFC 4585 and reduced-size 880 // RTCP mode to use. Compound mode is described by RFC 4585 and reduced-size
906 // RTCP mode is described by RFC 5506. 881 // RTCP mode is described by RFC 5506.
907 enum class RtcpMode { kOff, kCompound, kReducedSize }; 882 enum class RtcpMode { kOff, kCompound, kReducedSize };
908 883
909 } // namespace webrtc 884 } // namespace webrtc
910 885
911 #endif // WEBRTC_COMMON_TYPES_H_ 886 #endif // WEBRTC_COMMON_TYPES_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/remote_bitrate_estimator/inter_arrival.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698