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

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

Issue 1226143013: Merge methods for configuring NACK/FEC/hybrid. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 5 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // min_bit_rate - the bit rate of the end-point with lowest rate. 55 // min_bit_rate - the bit rate of the end-point with lowest rate.
56 // max_bit_rate - the bit rate of the end-point with highest rate. 56 // max_bit_rate - the bit rate of the end-point with highest rate.
57 // TODO(andresp): Find if the callbacks can be triggered only after releasing 57 // TODO(andresp): Find if the callbacks can be triggered only after releasing
58 // an internal critical section. 58 // an internal critical section.
59 uint32_t SetTargetRates(uint32_t target_bitrate, 59 uint32_t SetTargetRates(uint32_t target_bitrate,
60 uint8_t fraction_lost, 60 uint8_t fraction_lost,
61 int64_t round_trip_time_ms, 61 int64_t round_trip_time_ms,
62 VCMProtectionCallback* protection_callback, 62 VCMProtectionCallback* protection_callback,
63 VCMQMSettingsCallback* qmsettings_callback); 63 VCMQMSettingsCallback* qmsettings_callback);
64 64
65 void EnableProtectionMethod(bool enable, VCMProtectionMethodEnum method); 65 void SetProtectionMethod(VCMProtectionMethodEnum method);
66 void EnableQM(bool enable); 66 void EnableQM(bool enable);
67 void EnableFrameDropper(bool enable); 67 void EnableFrameDropper(bool enable);
68 68
69 // Lets the sender suspend video when the rate drops below 69 // Lets the sender suspend video when the rate drops below
70 // |threshold_bps|, and turns back on when the rate goes back up above 70 // |threshold_bps|, and turns back on when the rate goes back up above
71 // |threshold_bps| + |window_bps|. 71 // |threshold_bps| + |window_bps|.
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();
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 int num_layers_ GUARDED_BY(crit_sect_); 172 int num_layers_ GUARDED_BY(crit_sect_);
173 bool suspension_enabled_ GUARDED_BY(crit_sect_); 173 bool suspension_enabled_ GUARDED_BY(crit_sect_);
174 bool video_suspended_ GUARDED_BY(crit_sect_); 174 bool video_suspended_ GUARDED_BY(crit_sect_);
175 int suspension_threshold_bps_ GUARDED_BY(crit_sect_); 175 int suspension_threshold_bps_ GUARDED_BY(crit_sect_);
176 int suspension_window_bps_ GUARDED_BY(crit_sect_); 176 int suspension_window_bps_ GUARDED_BY(crit_sect_);
177 }; 177 };
178 } // namespace media_optimization 178 } // namespace media_optimization
179 } // namespace webrtc 179 } // namespace webrtc
180 180
181 #endif // WEBRTC_MODULES_VIDEO_CODING_MAIN_SOURCE_MEDIA_OPTIMIZATION_H_ 181 #endif // WEBRTC_MODULES_VIDEO_CODING_MAIN_SOURCE_MEDIA_OPTIMIZATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698