OLD | NEW |
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 166 |
167 void OnDroppedFrame() override; | 167 void OnDroppedFrame() override; |
168 | 168 |
169 bool EncoderPaused() const; | 169 bool EncoderPaused() const; |
170 void TraceFrameDropStart(); | 170 void TraceFrameDropStart(); |
171 void TraceFrameDropEnd(); | 171 void TraceFrameDropEnd(); |
172 | 172 |
173 rtc::Event shutdown_event_; | 173 rtc::Event shutdown_event_; |
174 | 174 |
175 const uint32_t number_of_cores_; | 175 const uint32_t number_of_cores_; |
| 176 bool initial_rampup_; |
176 | 177 |
177 const std::unique_ptr<VideoSourceProxy> source_proxy_; | 178 const std::unique_ptr<VideoSourceProxy> source_proxy_; |
178 EncoderSink* sink_; | 179 EncoderSink* sink_; |
179 const VideoSendStream::Config::EncoderSettings settings_; | 180 const VideoSendStream::Config::EncoderSettings settings_; |
180 const VideoCodecType codec_type_; | 181 const VideoCodecType codec_type_; |
181 | 182 |
182 vcm::VideoSender video_sender_ ACCESS_ON(&encoder_queue_); | 183 vcm::VideoSender video_sender_ ACCESS_ON(&encoder_queue_); |
183 OveruseFrameDetector overuse_detector_ ACCESS_ON(&encoder_queue_); | 184 OveruseFrameDetector overuse_detector_ ACCESS_ON(&encoder_queue_); |
184 std::unique_ptr<QualityScaler> quality_scaler_ ACCESS_ON(&encoder_queue_); | 185 std::unique_ptr<QualityScaler> quality_scaler_ ACCESS_ON(&encoder_queue_); |
185 | 186 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // All public methods are proxied to |encoder_queue_|. It must must be | 240 // All public methods are proxied to |encoder_queue_|. It must must be |
240 // destroyed first to make sure no tasks are run that use other members. | 241 // destroyed first to make sure no tasks are run that use other members. |
241 rtc::TaskQueue encoder_queue_; | 242 rtc::TaskQueue encoder_queue_; |
242 | 243 |
243 RTC_DISALLOW_COPY_AND_ASSIGN(ViEEncoder); | 244 RTC_DISALLOW_COPY_AND_ASSIGN(ViEEncoder); |
244 }; | 245 }; |
245 | 246 |
246 } // namespace webrtc | 247 } // namespace webrtc |
247 | 248 |
248 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ | 249 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ |
OLD | NEW |