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_DEVICE_INFO_H_ |
| 12 | #define WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_DEVICE_INFO_H_ |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 13 | |
| 14 | #include "webrtc/modules/video_capture/device_info_impl.h" |
| 15 | |
Yuriy Shevchuk | 39f2b0c | 2015-05-14 14:16:13 -0700 | [diff] [blame] | 16 | #include <map> |
kthelgason | 20a52e1 | 2016-09-30 00:43:12 -0700 | [diff] [blame^] | 17 | #include <string> |
Yuriy Shevchuk | 39f2b0c | 2015-05-14 14:16:13 -0700 | [diff] [blame] | 18 | |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 19 | namespace webrtc { |
| 20 | namespace videocapturemodule { |
| 21 | class DeviceInfoIos : public DeviceInfoImpl { |
| 22 | public: |
| 23 | explicit DeviceInfoIos(const int32_t device_id); |
| 24 | virtual ~DeviceInfoIos(); |
| 25 | |
| 26 | // Implementation of DeviceInfoImpl. |
kjellander@webrtc.org | 14665ff | 2015-03-04 12:58:35 +0000 | [diff] [blame] | 27 | int32_t Init() override; |
| 28 | uint32_t NumberOfDevices() override; |
| 29 | int32_t GetDeviceName(uint32_t deviceNumber, |
| 30 | char* deviceNameUTF8, |
| 31 | uint32_t deviceNameLength, |
| 32 | char* deviceUniqueIdUTF8, |
| 33 | uint32_t deviceUniqueIdUTF8Length, |
| 34 | char* productUniqueIdUTF8 = 0, |
| 35 | uint32_t productUniqueIdUTF8Length = 0) override; |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 36 | |
kjellander@webrtc.org | 14665ff | 2015-03-04 12:58:35 +0000 | [diff] [blame] | 37 | int32_t NumberOfCapabilities(const char* deviceUniqueIdUTF8) override; |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 38 | |
kjellander@webrtc.org | 14665ff | 2015-03-04 12:58:35 +0000 | [diff] [blame] | 39 | int32_t GetCapability(const char* deviceUniqueIdUTF8, |
| 40 | const uint32_t deviceCapabilityNumber, |
| 41 | VideoCaptureCapability& capability) override; |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 42 | |
kjellander@webrtc.org | 14665ff | 2015-03-04 12:58:35 +0000 | [diff] [blame] | 43 | int32_t DisplayCaptureSettingsDialogBox(const char* deviceUniqueIdUTF8, |
| 44 | const char* dialogTitleUTF8, |
| 45 | void* parentWindow, |
| 46 | uint32_t positionX, |
| 47 | uint32_t positionY) override; |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 48 | |
kjellander@webrtc.org | 14665ff | 2015-03-04 12:58:35 +0000 | [diff] [blame] | 49 | int32_t GetOrientation(const char* deviceUniqueIdUTF8, |
| 50 | VideoRotation& orientation) override; |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 51 | |
kjellander@webrtc.org | 14665ff | 2015-03-04 12:58:35 +0000 | [diff] [blame] | 52 | int32_t CreateCapabilityMap(const char* device_unique_id_utf8) override; |
Yuriy Shevchuk | 39f2b0c | 2015-05-14 14:16:13 -0700 | [diff] [blame] | 53 | |
| 54 | private: |
| 55 | std::map<std::string, VideoCaptureCapabilities> _capabilitiesMap; |
sjlee@webrtc.org | d690eab | 2013-08-14 22:07:04 +0000 | [diff] [blame] | 56 | }; |
| 57 | |
| 58 | } // namespace videocapturemodule |
| 59 | } // namespace webrtc |
| 60 | |
kthelgason | 20a52e1 | 2016-09-30 00:43:12 -0700 | [diff] [blame^] | 61 | #endif // WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_DEVICE_INFO_H_ |