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

Side by Side Diff: webrtc/modules/video_coding/video_coding_impl.h

Issue 2119503002: Remove all old suspension logic. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Deprecated: 82 // Deprecated:
83 // TODO(perkj): Remove once no projects use it. 83 // TODO(perkj): Remove once no projects use it.
84 int32_t RegisterProtectionCallback(VCMProtectionCallback* protection); 84 int32_t RegisterProtectionCallback(VCMProtectionCallback* protection);
85 85
86 int32_t AddVideoFrame(const VideoFrame& videoFrame, 86 int32_t AddVideoFrame(const VideoFrame& videoFrame,
87 const CodecSpecificInfo* codecSpecificInfo); 87 const CodecSpecificInfo* codecSpecificInfo);
88 88
89 int32_t IntraFrameRequest(size_t stream_index); 89 int32_t IntraFrameRequest(size_t stream_index);
90 int32_t EnableFrameDropper(bool enable); 90 int32_t EnableFrameDropper(bool enable);
91 91
92 void SuspendBelowMinBitrate();
93 bool VideoSuspended() const;
94
95 int64_t TimeUntilNextProcess() override; 92 int64_t TimeUntilNextProcess() override;
96 void Process() override; 93 void Process() override;
97 94
98 private: 95 private:
99 void SetEncoderParameters(EncoderParameters params, bool has_internal_source) 96 void SetEncoderParameters(EncoderParameters params, bool has_internal_source)
100 EXCLUSIVE_LOCKS_REQUIRED(encoder_crit_); 97 EXCLUSIVE_LOCKS_REQUIRED(encoder_crit_);
101 98
102 Clock* const clock_; 99 Clock* const clock_;
103 100
104 rtc::CriticalSection encoder_crit_; 101 rtc::CriticalSection encoder_crit_;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 VCMProcessTimer _receiveStatsTimer; 204 VCMProcessTimer _receiveStatsTimer;
208 VCMProcessTimer _retransmissionTimer; 205 VCMProcessTimer _retransmissionTimer;
209 VCMProcessTimer _keyRequestTimer; 206 VCMProcessTimer _keyRequestTimer;
210 QpParser qp_parser_; 207 QpParser qp_parser_;
211 ThreadUnsafeOneTimeEvent first_frame_received_; 208 ThreadUnsafeOneTimeEvent first_frame_received_;
212 }; 209 };
213 210
214 } // namespace vcm 211 } // namespace vcm
215 } // namespace webrtc 212 } // namespace webrtc
216 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_ 213 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/media_optimization_unittest.cc ('k') | webrtc/modules/video_coding/video_coding_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698