| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_IOS_VIDEO_CAPTURE_IOS_H_ | |
| 12 #define WEBRTC_MODULES_VIDEO_CAPTURE_IOS_VIDEO_CAPTURE_IOS_H_ | |
| 13 | |
| 14 #include "webrtc/base/scoped_ref_ptr.h" | |
| 15 #include "webrtc/modules/video_capture/video_capture_impl.h" | |
| 16 | |
| 17 @class RTCVideoCaptureIosObjC; | |
| 18 | |
| 19 namespace webrtc { | |
| 20 namespace videocapturemodule { | |
| 21 class VideoCaptureIos : public VideoCaptureImpl { | |
| 22 public: | |
| 23 explicit VideoCaptureIos(const int32_t capture_id); | |
| 24 virtual ~VideoCaptureIos(); | |
| 25 | |
| 26 static rtc::scoped_refptr<VideoCaptureModule> Create( | |
| 27 const int32_t capture_id, | |
| 28 const char* device_unique_id_utf8); | |
| 29 | |
| 30 // Implementation of VideoCaptureImpl. | |
| 31 int32_t StartCapture(const VideoCaptureCapability& capability) override; | |
| 32 int32_t StopCapture() override; | |
| 33 bool CaptureStarted() override; | |
| 34 int32_t CaptureSettings(VideoCaptureCapability& settings) override; | |
| 35 | |
| 36 private: | |
| 37 RTCVideoCaptureIosObjC* capture_device_; | |
| 38 bool is_capturing_; | |
| 39 int32_t id_; | |
| 40 VideoCaptureCapability capability_; | |
| 41 }; | |
| 42 | |
| 43 } // namespace videocapturemodule | |
| 44 } // namespace webrtc | |
| 45 | |
| 46 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_IOS_VIDEO_CAPTURE_IOS_H_ | |
| OLD | NEW |