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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 void SuspendBelowMinBitrate(int threshold_bps, int window_bps); | 72 void SuspendBelowMinBitrate(int threshold_bps, int window_bps); |
73 bool IsVideoSuspended() const; | 73 bool IsVideoSuspended() const; |
74 | 74 |
75 bool DropFrame(); | 75 bool DropFrame(); |
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 uint32_t InputFrameRate(); | 83 uint32_t InputFrameRate(); |
83 uint32_t SentFrameRate(); | 84 uint32_t SentFrameRate(); |
84 uint32_t SentBitRate(); | 85 uint32_t SentBitRate(); |
85 VCMFrameCount SentFrameCount(); | 86 VCMFrameCount SentFrameCount(); |
86 | 87 |
87 private: | 88 private: |
88 enum { | 89 enum { |
89 kFrameCountHistorySize = 90 | 90 kFrameCountHistorySize = 90 |
90 }; | 91 }; |
91 enum { | 92 enum { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 int num_layers_ GUARDED_BY(crit_sect_); | 172 int num_layers_ GUARDED_BY(crit_sect_); |
172 bool suspension_enabled_ GUARDED_BY(crit_sect_); | 173 bool suspension_enabled_ GUARDED_BY(crit_sect_); |
173 bool video_suspended_ GUARDED_BY(crit_sect_); | 174 bool video_suspended_ GUARDED_BY(crit_sect_); |
174 int suspension_threshold_bps_ GUARDED_BY(crit_sect_); | 175 int suspension_threshold_bps_ GUARDED_BY(crit_sect_); |
175 int suspension_window_bps_ GUARDED_BY(crit_sect_); | 176 int suspension_window_bps_ GUARDED_BY(crit_sect_); |
176 }; | 177 }; |
177 } // namespace media_optimization | 178 } // namespace media_optimization |
178 } // namespace webrtc | 179 } // namespace webrtc |
179 | 180 |
180 #endif // WEBRTC_MODULES_VIDEO_CODING_MAIN_SOURCE_MEDIA_OPTIMIZATION_H_ | 181 #endif // WEBRTC_MODULES_VIDEO_CODING_MAIN_SOURCE_MEDIA_OPTIMIZATION_H_ |
OLD | NEW |