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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 std::unique_ptr<VideoBitrateAllocator> rate_allocator_ | 250 std::unique_ptr<VideoBitrateAllocator> rate_allocator_ |
251 ACCESS_ON(&encoder_queue_); | 251 ACCESS_ON(&encoder_queue_); |
252 // The maximum frame rate of the current codec configuration, as determined | 252 // The maximum frame rate of the current codec configuration, as determined |
253 // at the last ReconfigureEncoder() call. | 253 // at the last ReconfigureEncoder() call. |
254 int max_framerate_ ACCESS_ON(&encoder_queue_); | 254 int max_framerate_ ACCESS_ON(&encoder_queue_); |
255 | 255 |
256 // Set when ConfigureEncoder has been called in order to lazy reconfigure the | 256 // Set when ConfigureEncoder has been called in order to lazy reconfigure the |
257 // encoder on the next frame. | 257 // encoder on the next frame. |
258 bool pending_encoder_reconfiguration_ ACCESS_ON(&encoder_queue_); | 258 bool pending_encoder_reconfiguration_ ACCESS_ON(&encoder_queue_); |
259 rtc::Optional<VideoFrameInfo> last_frame_info_ ACCESS_ON(&encoder_queue_); | 259 rtc::Optional<VideoFrameInfo> last_frame_info_ ACCESS_ON(&encoder_queue_); |
| 260 int crop_width_ ACCESS_ON(&encoder_queue_); |
| 261 int crop_height_ ACCESS_ON(&encoder_queue_); |
260 uint32_t encoder_start_bitrate_bps_ ACCESS_ON(&encoder_queue_); | 262 uint32_t encoder_start_bitrate_bps_ ACCESS_ON(&encoder_queue_); |
261 size_t max_data_payload_length_ ACCESS_ON(&encoder_queue_); | 263 size_t max_data_payload_length_ ACCESS_ON(&encoder_queue_); |
262 bool nack_enabled_ ACCESS_ON(&encoder_queue_); | 264 bool nack_enabled_ ACCESS_ON(&encoder_queue_); |
263 uint32_t last_observed_bitrate_bps_ ACCESS_ON(&encoder_queue_); | 265 uint32_t last_observed_bitrate_bps_ ACCESS_ON(&encoder_queue_); |
264 bool encoder_paused_and_dropped_frame_ ACCESS_ON(&encoder_queue_); | 266 bool encoder_paused_and_dropped_frame_ ACCESS_ON(&encoder_queue_); |
265 Clock* const clock_; | 267 Clock* const clock_; |
266 // Counters used for deciding if the video resolution or framerate is | 268 // Counters used for deciding if the video resolution or framerate is |
267 // currently restricted, and if so, why, on a per degradation preference | 269 // currently restricted, and if so, why, on a per degradation preference |
268 // basis. | 270 // basis. |
269 // TODO(sprang): Replace this with a state holding a relative overuse measure | 271 // TODO(sprang): Replace this with a state holding a relative overuse measure |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 // All public methods are proxied to |encoder_queue_|. It must must be | 307 // All public methods are proxied to |encoder_queue_|. It must must be |
306 // destroyed first to make sure no tasks are run that use other members. | 308 // destroyed first to make sure no tasks are run that use other members. |
307 rtc::TaskQueue encoder_queue_; | 309 rtc::TaskQueue encoder_queue_; |
308 | 310 |
309 RTC_DISALLOW_COPY_AND_ASSIGN(ViEEncoder); | 311 RTC_DISALLOW_COPY_AND_ASSIGN(ViEEncoder); |
310 }; | 312 }; |
311 | 313 |
312 } // namespace webrtc | 314 } // namespace webrtc |
313 | 315 |
314 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ | 316 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ |
OLD | NEW |