Chromium Code Reviews| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 // Counts how many frames we've dropped in the initial rampup phase. | |
|
perkj_webrtc
2017/01/24 09:06:16
This still happens every time the encoder it recon
kthelgason
2017/01/24 10:53:10
You're right, but we can't have that behaviour. In
| |
| 179 int initial_rampup_; | |
| 178 | 180 |
| 179 const std::unique_ptr<VideoSourceProxy> source_proxy_; | 181 const std::unique_ptr<VideoSourceProxy> source_proxy_; |
| 180 EncoderSink* sink_; | 182 EncoderSink* sink_; |
| 181 const VideoSendStream::Config::EncoderSettings settings_; | 183 const VideoSendStream::Config::EncoderSettings settings_; |
| 182 const VideoCodecType codec_type_; | 184 const VideoCodecType codec_type_; |
| 183 | 185 |
| 184 vcm::VideoSender video_sender_ ACCESS_ON(&encoder_queue_); | 186 vcm::VideoSender video_sender_ ACCESS_ON(&encoder_queue_); |
| 185 OveruseFrameDetector overuse_detector_ ACCESS_ON(&encoder_queue_); | 187 OveruseFrameDetector overuse_detector_ ACCESS_ON(&encoder_queue_); |
| 186 std::unique_ptr<QualityScaler> quality_scaler_ ACCESS_ON(&encoder_queue_); | 188 std::unique_ptr<QualityScaler> quality_scaler_ ACCESS_ON(&encoder_queue_); |
| 187 | 189 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 240 // All public methods are proxied to |encoder_queue_|. It must must be | 242 // 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. | 243 // destroyed first to make sure no tasks are run that use other members. |
| 242 rtc::TaskQueue encoder_queue_; | 244 rtc::TaskQueue encoder_queue_; |
| 243 | 245 |
| 244 RTC_DISALLOW_COPY_AND_ASSIGN(ViEEncoder); | 246 RTC_DISALLOW_COPY_AND_ASSIGN(ViEEncoder); |
| 245 }; | 247 }; |
| 246 | 248 |
| 247 } // namespace webrtc | 249 } // namespace webrtc |
| 248 | 250 |
| 249 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ | 251 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ |
| OLD | NEW |