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

Side by Side Diff: webrtc/modules/video_coding/main/source/media_optimization.h

Issue 1180623005: Update encoder settings periodically, not only on new bandwidth estimate (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 6 months 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/video_coding/main/source/media_optimization.cc » ('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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/main/source/media_optimization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698