| 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 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_MAIN_SOURCE_VIDEO_CAPTURE_IMPL_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_MAIN_SOURCE_VIDEO_CAPTURE_IMPL_H_ |
| 12 #define WEBRTC_MODULES_VIDEO_CAPTURE_MAIN_SOURCE_VIDEO_CAPTURE_IMPL_H_ | 12 #define WEBRTC_MODULES_VIDEO_CAPTURE_MAIN_SOURCE_VIDEO_CAPTURE_IMPL_H_ |
| 13 | 13 |
| 14 /* | 14 /* |
| 15 * video_capture_impl.h | 15 * video_capture_impl.h |
| 16 */ | 16 */ |
| 17 | 17 |
| 18 #include "webrtc/api/video/video_frame.h" |
| 18 #include "webrtc/base/scoped_ref_ptr.h" | 19 #include "webrtc/base/scoped_ref_ptr.h" |
| 19 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 20 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
| 20 #include "webrtc/common_video/rotation.h" | |
| 21 #include "webrtc/modules/video_capture/video_capture.h" | 21 #include "webrtc/modules/video_capture/video_capture.h" |
| 22 #include "webrtc/modules/video_capture/video_capture_config.h" | 22 #include "webrtc/modules/video_capture/video_capture_config.h" |
| 23 #include "webrtc/video_frame.h" | |
| 24 | 23 |
| 25 namespace webrtc | 24 namespace webrtc |
| 26 { | 25 { |
| 27 class CriticalSectionWrapper; | 26 class CriticalSectionWrapper; |
| 28 | 27 |
| 29 namespace videocapturemodule { | 28 namespace videocapturemodule { |
| 30 // Class definitions | 29 // Class definitions |
| 31 class VideoCaptureImpl: public VideoCaptureModule, public VideoCaptureExternal | 30 class VideoCaptureImpl: public VideoCaptureModule, public VideoCaptureExternal |
| 32 { | 31 { |
| 33 public: | 32 public: |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 int64_t _incomingFrameTimesNanos[kFrameRateCountHistorySize]; | 135 int64_t _incomingFrameTimesNanos[kFrameRateCountHistorySize]; |
| 137 VideoRotation _rotateFrame; // Set if the frame should be rotated by the | 136 VideoRotation _rotateFrame; // Set if the frame should be rotated by the |
| 138 // capture module. | 137 // capture module. |
| 139 | 138 |
| 140 // Indicate whether rotation should be applied before delivered externally. | 139 // Indicate whether rotation should be applied before delivered externally. |
| 141 bool apply_rotation_; | 140 bool apply_rotation_; |
| 142 }; | 141 }; |
| 143 } // namespace videocapturemodule | 142 } // namespace videocapturemodule |
| 144 } // namespace webrtc | 143 } // namespace webrtc |
| 145 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_MAIN_SOURCE_VIDEO_CAPTURE_IMPL_H_ | 144 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_MAIN_SOURCE_VIDEO_CAPTURE_IMPL_H_ |
| OLD | NEW |