| 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 |
| 11 #include <stdio.h> | 11 #include <stdio.h> |
| 12 | 12 |
| 13 #include <map> | 13 #include <map> |
| 14 #include <memory> | 14 #include <memory> |
| 15 #include <sstream> | 15 #include <sstream> |
| 16 | 16 |
| 17 #include "webrtc/api/video/i420_buffer.h" | 17 #include "webrtc/api/video/i420_buffer.h" |
| 18 #include "webrtc/api/video/video_frame.h" | 18 #include "webrtc/api/video/video_frame.h" |
| 19 #include "webrtc/base/criticalsection.h" |
| 20 #include "webrtc/base/scoped_ref_ptr.h" |
| 21 #include "webrtc/base/timeutils.h" |
| 19 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 22 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
| 20 #include "webrtc/modules/utility/include/process_thread.h" | 23 #include "webrtc/modules/utility/include/process_thread.h" |
| 21 #include "webrtc/modules/video_capture/video_capture.h" | 24 #include "webrtc/modules/video_capture/video_capture.h" |
| 22 #include "webrtc/modules/video_capture/video_capture_factory.h" | 25 #include "webrtc/modules/video_capture/video_capture_factory.h" |
| 23 #include "webrtc/rtc_base/criticalsection.h" | |
| 24 #include "webrtc/rtc_base/scoped_ref_ptr.h" | |
| 25 #include "webrtc/rtc_base/timeutils.h" | |
| 26 #include "webrtc/system_wrappers/include/sleep.h" | 26 #include "webrtc/system_wrappers/include/sleep.h" |
| 27 #include "webrtc/test/frame_utils.h" | 27 #include "webrtc/test/frame_utils.h" |
| 28 #include "webrtc/test/gtest.h" | 28 #include "webrtc/test/gtest.h" |
| 29 | 29 |
| 30 using webrtc::SleepMs; | 30 using webrtc::SleepMs; |
| 31 using webrtc::VideoCaptureCapability; | 31 using webrtc::VideoCaptureCapability; |
| 32 using webrtc::VideoCaptureFactory; | 32 using webrtc::VideoCaptureFactory; |
| 33 using webrtc::VideoCaptureModule; | 33 using webrtc::VideoCaptureModule; |
| 34 | 34 |
| 35 | 35 |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 length, capture_callback_.capability(), 0)); | 412 length, capture_callback_.capability(), 0)); |
| 413 EXPECT_EQ(0, capture_module_->SetCaptureRotation(webrtc::kVideoRotation_180)); | 413 EXPECT_EQ(0, capture_module_->SetCaptureRotation(webrtc::kVideoRotation_180)); |
| 414 capture_callback_.SetExpectedCaptureRotation(webrtc::kVideoRotation_180); | 414 capture_callback_.SetExpectedCaptureRotation(webrtc::kVideoRotation_180); |
| 415 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), | 415 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), |
| 416 length, capture_callback_.capability(), 0)); | 416 length, capture_callback_.capability(), 0)); |
| 417 EXPECT_EQ(0, capture_module_->SetCaptureRotation(webrtc::kVideoRotation_270)); | 417 EXPECT_EQ(0, capture_module_->SetCaptureRotation(webrtc::kVideoRotation_270)); |
| 418 capture_callback_.SetExpectedCaptureRotation(webrtc::kVideoRotation_270); | 418 capture_callback_.SetExpectedCaptureRotation(webrtc::kVideoRotation_270); |
| 419 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), | 419 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), |
| 420 length, capture_callback_.capability(), 0)); | 420 length, capture_callback_.capability(), 0)); |
| 421 } | 421 } |
| OLD | NEW |