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

Side by Side Diff: webrtc/media/base/videocapturer.cc

Issue 1807673008: Revert of Change VideoCapture_apply_rotation default to false (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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) 2010 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2010 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 if (!size || data_size == CapturedFrame::kUnknownDataSize) { 53 if (!size || data_size == CapturedFrame::kUnknownDataSize) {
54 return false; 54 return false;
55 } 55 }
56 *size = data_size; 56 *size = data_size;
57 return true; 57 return true;
58 } 58 }
59 59
60 ///////////////////////////////////////////////////////////////////// 60 /////////////////////////////////////////////////////////////////////
61 // Implementation of class VideoCapturer 61 // Implementation of class VideoCapturer
62 ///////////////////////////////////////////////////////////////////// 62 /////////////////////////////////////////////////////////////////////
63 VideoCapturer::VideoCapturer() : apply_rotation_(false) { 63 VideoCapturer::VideoCapturer() : apply_rotation_(true) {
64 thread_checker_.DetachFromThread(); 64 thread_checker_.DetachFromThread();
65 Construct(); 65 Construct();
66 } 66 }
67 67
68 void VideoCapturer::Construct() { 68 void VideoCapturer::Construct() {
69 ratio_w_ = 0; 69 ratio_w_ = 0;
70 ratio_h_ = 0; 70 ratio_h_ = 0;
71 enable_camera_list_ = false; 71 enable_camera_list_ = false;
72 square_pixel_aspect_ratio_ = false; 72 square_pixel_aspect_ratio_ = false;
73 capture_state_ = CS_STOPPED; 73 capture_state_ = CS_STOPPED;
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 rtc::CritScope cs(&frame_stats_crit_); 545 rtc::CritScope cs(&frame_stats_crit_);
546 546
547 last_captured_frame_format_.width = captured_frame->width; 547 last_captured_frame_format_.width = captured_frame->width;
548 last_captured_frame_format_.height = captured_frame->height; 548 last_captured_frame_format_.height = captured_frame->height;
549 // TODO(ronghuawu): Useful to report interval as well? 549 // TODO(ronghuawu): Useful to report interval as well?
550 last_captured_frame_format_.interval = 0; 550 last_captured_frame_format_.interval = 0;
551 last_captured_frame_format_.fourcc = captured_frame->fourcc; 551 last_captured_frame_format_.fourcc = captured_frame->fourcc;
552 } 552 }
553 553
554 } // namespace cricket 554 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/base/videobroadcaster_unittest.cc ('k') | webrtc/media/base/videocapturer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698