blob: 1f9f42094503ed33efdd40a1365821ae2f3cbc9f [file] [log] [blame]
sjlee@webrtc.orgd690eab2013-08-14 22:07:04 +00001/*
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
kthelgason20a52e12016-09-30 00:43:12 -070011#ifndef WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_VIDEO_CAPTURE_H_
12#define WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_VIDEO_CAPTURE_H_
sjlee@webrtc.orgd690eab2013-08-14 22:07:04 +000013
Peter Boström1d194412016-03-21 16:44:31 +010014#include "webrtc/base/scoped_ref_ptr.h"
sjlee@webrtc.orgd690eab2013-08-14 22:07:04 +000015#include "webrtc/modules/video_capture/video_capture_impl.h"
16
fischman@webrtc.orgf792d172014-03-10 17:12:08 +000017@class RTCVideoCaptureIosObjC;
sjlee@webrtc.orgd690eab2013-08-14 22:07:04 +000018
19namespace webrtc {
20namespace videocapturemodule {
21class VideoCaptureIos : public VideoCaptureImpl {
22 public:
23 explicit VideoCaptureIos(const int32_t capture_id);
24 virtual ~VideoCaptureIos();
25
Peter Boström1d194412016-03-21 16:44:31 +010026 static rtc::scoped_refptr<VideoCaptureModule> Create(
27 const int32_t capture_id,
28 const char* device_unique_id_utf8);
sjlee@webrtc.orgd690eab2013-08-14 22:07:04 +000029
30 // Implementation of VideoCaptureImpl.
kjellander@webrtc.org14665ff2015-03-04 12:58:35 +000031 int32_t StartCapture(const VideoCaptureCapability& capability) override;
32 int32_t StopCapture() override;
33 bool CaptureStarted() override;
34 int32_t CaptureSettings(VideoCaptureCapability& settings) override;
sjlee@webrtc.orgd690eab2013-08-14 22:07:04 +000035
36 private:
fischman@webrtc.orgf792d172014-03-10 17:12:08 +000037 RTCVideoCaptureIosObjC* capture_device_;
sjlee@webrtc.orgd690eab2013-08-14 22:07:04 +000038 bool is_capturing_;
39 int32_t id_;
40 VideoCaptureCapability capability_;
41};
42
43} // namespace videocapturemodule
44} // namespace webrtc
45
kthelgason20a52e12016-09-30 00:43:12 -070046#endif // WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_VIDEO_CAPTURE_H_