OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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_MEDIA_ENGINE_WEBRTCVIDEOCAPTURER_H_ | 11 #ifndef WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOCAPTURER_H_ |
12 #define WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOCAPTURER_H_ | 12 #define WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOCAPTURER_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
| 18 #include "webrtc/base/asyncinvoker.h" |
| 19 #include "webrtc/base/messagehandler.h" |
| 20 #include "webrtc/base/scoped_ref_ptr.h" |
18 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 21 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
19 #include "webrtc/media/base/device.h" | 22 #include "webrtc/media/base/device.h" |
20 #include "webrtc/media/base/videocapturer.h" | 23 #include "webrtc/media/base/videocapturer.h" |
21 #include "webrtc/modules/video_capture/video_capture.h" | 24 #include "webrtc/modules/video_capture/video_capture.h" |
22 #include "webrtc/rtc_base/asyncinvoker.h" | |
23 #include "webrtc/rtc_base/messagehandler.h" | |
24 #include "webrtc/rtc_base/scoped_ref_ptr.h" | |
25 | 25 |
26 namespace cricket { | 26 namespace cricket { |
27 | 27 |
28 // Factory to allow injection of a VCM impl into WebRtcVideoCapturer. | 28 // Factory to allow injection of a VCM impl into WebRtcVideoCapturer. |
29 // DeviceInfos do not have a Release() and therefore need an explicit Destroy(). | 29 // DeviceInfos do not have a Release() and therefore need an explicit Destroy(). |
30 class WebRtcVcmFactoryInterface { | 30 class WebRtcVcmFactoryInterface { |
31 public: | 31 public: |
32 virtual ~WebRtcVcmFactoryInterface() {} | 32 virtual ~WebRtcVcmFactoryInterface() {} |
33 virtual rtc::scoped_refptr<webrtc::VideoCaptureModule> Create( | 33 virtual rtc::scoped_refptr<webrtc::VideoCaptureModule> Create( |
34 const char* device) = 0; | 34 const char* device) = 0; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 int captured_frames_; | 78 int captured_frames_; |
79 std::vector<uint8_t> capture_buffer_; | 79 std::vector<uint8_t> capture_buffer_; |
80 rtc::Thread* start_thread_; // Set in Start(), unset in Stop(); | 80 rtc::Thread* start_thread_; // Set in Start(), unset in Stop(); |
81 | 81 |
82 std::unique_ptr<rtc::AsyncInvoker> async_invoker_; | 82 std::unique_ptr<rtc::AsyncInvoker> async_invoker_; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace cricket | 85 } // namespace cricket |
86 | 86 |
87 #endif // WEBRTC_MEDIA_WEBRTC_WEBRTCVIDEOCAPTURER_H_ | 87 #endif // WEBRTC_MEDIA_WEBRTC_WEBRTCVIDEOCAPTURER_H_ |
OLD | NEW |