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

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

Issue 2936393002: Add cropping to VIEEncoder to match simulcast streams resolution (Closed)
Patch Set: Fix typo Created 3 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
« no previous file with comments | « webrtc/video/video_quality_test.cc ('k') | webrtc/video/vie_encoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « webrtc/video/video_quality_test.cc ('k') | webrtc/video/vie_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698