sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 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 | |
kthelgason | 20a52e1 | 2016-09-30 00:43:12 -0700 | [diff] [blame] | 11 | #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_VIDEO_CAPTURE_H_ |
| 12 | #define WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_VIDEO_CAPTURE_H_ |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 13 | |
| 14 | #include "webrtc/modules/video_capture/video_capture_impl.h" |
Edward Lemur | c20978e | 2017-07-06 19:44:34 +0200 | [diff] [blame] | 15 | #include "webrtc/rtc_base/scoped_ref_ptr.h" |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 16 | |
fischman@webrtc.org | f792d17 | 2014-03-10 17:12:08 +0000 | [diff] [blame] | 17 | @class RTCVideoCaptureIosObjC; |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 18 | |
| 19 | namespace webrtc { |
| 20 | namespace videocapturemodule { |
| 21 | class VideoCaptureIos : public VideoCaptureImpl { |
| 22 | public: |
nisse | b29b9c8 | 2016-12-12 00:22:56 -0800 | [diff] [blame] | 23 | VideoCaptureIos(); |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 24 | virtual ~VideoCaptureIos(); |
| 25 | |
Peter Boström | 1d19441 | 2016-03-21 16:44:31 +0100 | [diff] [blame] | 26 | static rtc::scoped_refptr<VideoCaptureModule> Create( |
Peter Boström | 1d19441 | 2016-03-21 16:44:31 +0100 | [diff] [blame] | 27 | const char* device_unique_id_utf8); |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 28 | |
| 29 | // Implementation of VideoCaptureImpl. |
kjellander@webrtc.org | 14665ff | 2015-03-04 12:58:35 +0000 | [diff] [blame] | 30 | int32_t StartCapture(const VideoCaptureCapability& capability) override; |
| 31 | int32_t StopCapture() override; |
| 32 | bool CaptureStarted() override; |
| 33 | int32_t CaptureSettings(VideoCaptureCapability& settings) override; |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 34 | |
| 35 | private: |
fischman@webrtc.org | f792d17 | 2014-03-10 17:12:08 +0000 | [diff] [blame] | 36 | RTCVideoCaptureIosObjC* capture_device_; |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 37 | bool is_capturing_; |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 38 | VideoCaptureCapability capability_; |
| 39 | }; |
| 40 | |
| 41 | } // namespace videocapturemodule |
| 42 | } // namespace webrtc |
| 43 | |
kthelgason | 20a52e1 | 2016-09-30 00:43:12 -0700 | [diff] [blame] | 44 | #endif // WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_VIDEO_CAPTURE_H_ |