| 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" |
| 18 #include "webrtc/api/video/video_frame.h" |
| 17 #include "webrtc/base/scoped_ref_ptr.h" | 19 #include "webrtc/base/scoped_ref_ptr.h" |
| 18 #include "webrtc/base/timeutils.h" | 20 #include "webrtc/base/timeutils.h" |
| 19 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 21 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
| 20 #include "webrtc/modules/utility/include/process_thread.h" | 22 #include "webrtc/modules/utility/include/process_thread.h" |
| 21 #include "webrtc/modules/video_capture/video_capture.h" | 23 #include "webrtc/modules/video_capture/video_capture.h" |
| 22 #include "webrtc/modules/video_capture/video_capture_factory.h" | 24 #include "webrtc/modules/video_capture/video_capture_factory.h" |
| 23 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 25 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
| 24 #include "webrtc/system_wrappers/include/sleep.h" | 26 #include "webrtc/system_wrappers/include/sleep.h" |
| 25 #include "webrtc/test/frame_utils.h" | 27 #include "webrtc/test/frame_utils.h" |
| 26 #include "webrtc/test/gtest.h" | 28 #include "webrtc/test/gtest.h" |
| 27 #include "webrtc/video_frame.h" | |
| 28 | 29 |
| 29 using webrtc::CriticalSectionWrapper; | 30 using webrtc::CriticalSectionWrapper; |
| 30 using webrtc::CriticalSectionScoped; | 31 using webrtc::CriticalSectionScoped; |
| 31 using webrtc::SleepMs; | 32 using webrtc::SleepMs; |
| 32 using webrtc::VideoCaptureAlarm; | 33 using webrtc::VideoCaptureAlarm; |
| 33 using webrtc::VideoCaptureCapability; | 34 using webrtc::VideoCaptureCapability; |
| 34 using webrtc::VideoCaptureDataCallback; | 35 using webrtc::VideoCaptureDataCallback; |
| 35 using webrtc::VideoCaptureFactory; | 36 using webrtc::VideoCaptureFactory; |
| 36 using webrtc::VideoCaptureFeedBack; | 37 using webrtc::VideoCaptureFeedBack; |
| 37 using webrtc::VideoCaptureModule; | 38 using webrtc::VideoCaptureModule; |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 length, capture_callback_.capability(), 0)); | 525 length, capture_callback_.capability(), 0)); |
| 525 EXPECT_EQ(0, capture_module_->SetCaptureRotation(webrtc::kVideoRotation_180)); | 526 EXPECT_EQ(0, capture_module_->SetCaptureRotation(webrtc::kVideoRotation_180)); |
| 526 capture_callback_.SetExpectedCaptureRotation(webrtc::kVideoRotation_180); | 527 capture_callback_.SetExpectedCaptureRotation(webrtc::kVideoRotation_180); |
| 527 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), | 528 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), |
| 528 length, capture_callback_.capability(), 0)); | 529 length, capture_callback_.capability(), 0)); |
| 529 EXPECT_EQ(0, capture_module_->SetCaptureRotation(webrtc::kVideoRotation_270)); | 530 EXPECT_EQ(0, capture_module_->SetCaptureRotation(webrtc::kVideoRotation_270)); |
| 530 capture_callback_.SetExpectedCaptureRotation(webrtc::kVideoRotation_270); | 531 capture_callback_.SetExpectedCaptureRotation(webrtc::kVideoRotation_270); |
| 531 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), | 532 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), |
| 532 length, capture_callback_.capability(), 0)); | 533 length, capture_callback_.capability(), 0)); |
| 533 } | 534 } |
| OLD | NEW |