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

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

Issue 2070343002: Remove ViEncoder::Pause / Start (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed comments. Created 4 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
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(); 92 void SuspendBelowMinBitrate();
93 bool VideoSuspended() const; 93 bool VideoSuspended() const;
94 94
95 int64_t TimeUntilNextProcess() override; 95 int64_t TimeUntilNextProcess() override;
96 void Process() override; 96 void Process() override;
97 97
98 private: 98 private:
99 void SetEncoderParameters(EncoderParameters params) 99 void SetEncoderParameters(EncoderParameters params, bool has_internal_source)
100 EXCLUSIVE_LOCKS_REQUIRED(encoder_crit_); 100 EXCLUSIVE_LOCKS_REQUIRED(encoder_crit_);
101 101
102 Clock* const clock_; 102 Clock* const clock_;
103 103
104 rtc::CriticalSection encoder_crit_; 104 rtc::CriticalSection encoder_crit_;
105 VCMGenericEncoder* _encoder; 105 VCMGenericEncoder* _encoder;
106 media_optimization::MediaOptimization _mediaOpt; 106 media_optimization::MediaOptimization _mediaOpt;
107 VCMEncodedFrameCallback _encodedFrameCallback GUARDED_BY(encoder_crit_); 107 VCMEncodedFrameCallback _encodedFrameCallback GUARDED_BY(encoder_crit_);
108 VCMSendStatisticsCallback* const send_stats_callback_; 108 VCMSendStatisticsCallback* const send_stats_callback_;
109 VCMCodecDataBase _codecDataBase GUARDED_BY(encoder_crit_); 109 VCMCodecDataBase _codecDataBase GUARDED_BY(encoder_crit_);
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 VCMProcessTimer _receiveStatsTimer; 207 VCMProcessTimer _receiveStatsTimer;
208 VCMProcessTimer _retransmissionTimer; 208 VCMProcessTimer _retransmissionTimer;
209 VCMProcessTimer _keyRequestTimer; 209 VCMProcessTimer _keyRequestTimer;
210 QpParser qp_parser_; 210 QpParser qp_parser_;
211 ThreadUnsafeOneTimeEvent first_frame_received_; 211 ThreadUnsafeOneTimeEvent first_frame_received_;
212 }; 212 };
213 213
214 } // namespace vcm 214 } // namespace vcm
215 } // namespace webrtc 215 } // namespace webrtc
216 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_ 216 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/protection_bitrate_calculator_unittest.cc ('k') | webrtc/modules/video_coding/video_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698