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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 void UpdateContentData(const VideoContentMetrics* content_metrics); | 77 void UpdateContentData(const VideoContentMetrics* content_metrics); |
78 | 78 |
79 // Informs Media Optimization of encoded output. | 79 // Informs Media Optimization of encoded output. |
80 int32_t UpdateWithEncodedData(const EncodedImage& encoded_image); | 80 int32_t UpdateWithEncodedData(const EncodedImage& encoded_image); |
81 | 81 |
82 // InputFrameRate 0 = no frame rate estimate available. | 82 // InputFrameRate 0 = no frame rate estimate available. |
83 uint32_t InputFrameRate(); | 83 uint32_t InputFrameRate(); |
84 uint32_t SentFrameRate(); | 84 uint32_t SentFrameRate(); |
85 uint32_t SentBitRate(); | 85 uint32_t SentBitRate(); |
86 VCMFrameCount SentFrameCount(); | |
87 | 86 |
88 private: | 87 private: |
89 enum { | 88 enum { |
90 kFrameCountHistorySize = 90 | 89 kFrameCountHistorySize = 90 |
91 }; | 90 }; |
92 enum { | 91 enum { |
93 kFrameHistoryWinMs = 2000 | 92 kFrameHistoryWinMs = 2000 |
94 }; | 93 }; |
95 enum { | 94 enum { |
96 kBitrateAverageWinMs = 1000 | 95 kBitrateAverageWinMs = 1000 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 int num_layers_ GUARDED_BY(crit_sect_); | 171 int num_layers_ GUARDED_BY(crit_sect_); |
173 bool suspension_enabled_ GUARDED_BY(crit_sect_); | 172 bool suspension_enabled_ GUARDED_BY(crit_sect_); |
174 bool video_suspended_ GUARDED_BY(crit_sect_); | 173 bool video_suspended_ GUARDED_BY(crit_sect_); |
175 int suspension_threshold_bps_ GUARDED_BY(crit_sect_); | 174 int suspension_threshold_bps_ GUARDED_BY(crit_sect_); |
176 int suspension_window_bps_ GUARDED_BY(crit_sect_); | 175 int suspension_window_bps_ GUARDED_BY(crit_sect_); |
177 }; | 176 }; |
178 } // namespace media_optimization | 177 } // namespace media_optimization |
179 } // namespace webrtc | 178 } // namespace webrtc |
180 | 179 |
181 #endif // WEBRTC_MODULES_VIDEO_CODING_MAIN_SOURCE_MEDIA_OPTIMIZATION_H_ | 180 #endif // WEBRTC_MODULES_VIDEO_CODING_MAIN_SOURCE_MEDIA_OPTIMIZATION_H_ |
OLD | NEW |