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

Side by Side Diff: webrtc/video/vie_encoder.h

Issue 2630333002: Drop frames until specified bitrate is achieved. (Closed)
Patch Set: rebase Created 3 years, 11 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 void OnDroppedFrame() override; 169 void OnDroppedFrame() override;
170 170
171 bool EncoderPaused() const; 171 bool EncoderPaused() const;
172 void TraceFrameDropStart(); 172 void TraceFrameDropStart();
173 void TraceFrameDropEnd(); 173 void TraceFrameDropEnd();
174 174
175 rtc::Event shutdown_event_; 175 rtc::Event shutdown_event_;
176 176
177 const uint32_t number_of_cores_; 177 const uint32_t number_of_cores_;
178 int initial_rampup_;
perkj_webrtc 2017/01/23 08:54:22 Add comment what this means.
kthelgason 2017/01/23 12:39:06 Done.
178 179
179 const std::unique_ptr<VideoSourceProxy> source_proxy_; 180 const std::unique_ptr<VideoSourceProxy> source_proxy_;
180 EncoderSink* sink_; 181 EncoderSink* sink_;
181 const VideoSendStream::Config::EncoderSettings settings_; 182 const VideoSendStream::Config::EncoderSettings settings_;
182 const VideoCodecType codec_type_; 183 const VideoCodecType codec_type_;
183 184
184 vcm::VideoSender video_sender_ ACCESS_ON(&encoder_queue_); 185 vcm::VideoSender video_sender_ ACCESS_ON(&encoder_queue_);
185 OveruseFrameDetector overuse_detector_ ACCESS_ON(&encoder_queue_); 186 OveruseFrameDetector overuse_detector_ ACCESS_ON(&encoder_queue_);
186 std::unique_ptr<QualityScaler> quality_scaler_ ACCESS_ON(&encoder_queue_); 187 std::unique_ptr<QualityScaler> quality_scaler_ ACCESS_ON(&encoder_queue_);
187 188
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // All public methods are proxied to |encoder_queue_|. It must must be 241 // All public methods are proxied to |encoder_queue_|. It must must be
241 // destroyed first to make sure no tasks are run that use other members. 242 // destroyed first to make sure no tasks are run that use other members.
242 rtc::TaskQueue encoder_queue_; 243 rtc::TaskQueue encoder_queue_;
243 244
244 RTC_DISALLOW_COPY_AND_ASSIGN(ViEEncoder); 245 RTC_DISALLOW_COPY_AND_ASSIGN(ViEEncoder);
245 }; 246 };
246 247
247 } // namespace webrtc 248 } // namespace webrtc
248 249
249 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ 250 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698