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 <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "webrtc/base/asyncinvoker.h" | 17 #include "webrtc/base/asyncinvoker.h" |
18 #include "webrtc/base/messagehandler.h" | 18 #include "webrtc/base/messagehandler.h" |
19 #include "webrtc/base/scoped_ptr.h" | 19 #include "webrtc/base/scoped_ptr.h" |
20 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 20 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
| 21 #include "webrtc/media/base/device.h" |
21 #include "webrtc/media/base/videocapturer.h" | 22 #include "webrtc/media/base/videocapturer.h" |
22 #include "webrtc/media/engine/webrtcvideoframe.h" | 23 #include "webrtc/media/engine/webrtcvideoframe.h" |
23 #include "webrtc/modules/video_capture/video_capture.h" | 24 #include "webrtc/modules/video_capture/video_capture.h" |
24 | 25 |
25 namespace cricket { | 26 namespace cricket { |
26 | 27 |
27 // Factory to allow injection of a VCM impl into WebRtcVideoCapturer. | 28 // Factory to allow injection of a VCM impl into WebRtcVideoCapturer. |
28 // 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(). |
29 class WebRtcVcmFactoryInterface { | 30 class WebRtcVcmFactoryInterface { |
30 public: | 31 public: |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 struct WebRtcCapturedFrame : public CapturedFrame { | 88 struct WebRtcCapturedFrame : public CapturedFrame { |
88 public: | 89 public: |
89 WebRtcCapturedFrame(const webrtc::VideoFrame& frame, | 90 WebRtcCapturedFrame(const webrtc::VideoFrame& frame, |
90 void* buffer, | 91 void* buffer, |
91 size_t length); | 92 size_t length); |
92 }; | 93 }; |
93 | 94 |
94 } // namespace cricket | 95 } // namespace cricket |
95 | 96 |
96 #endif // WEBRTC_MEDIA_WEBRTC_WEBRTCVIDEOCAPTURER_H_ | 97 #endif // WEBRTC_MEDIA_WEBRTC_WEBRTCVIDEOCAPTURER_H_ |
OLD | NEW |