tommi@webrtc.org | 8187877 | 2012-11-20 13:35:33 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012 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_WINDOWS_DEVICE_INFO_MF_H_ |
| 12 | #define WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_DEVICE_INFO_MF_H_ |
| 13 | |
pbos@webrtc.org | a9b74ad | 2013-07-12 10:03:52 +0000 | [diff] [blame] | 14 | #include "webrtc/modules/video_capture/device_info_impl.h" |
tommi@webrtc.org | 8187877 | 2012-11-20 13:35:33 +0000 | [diff] [blame] | 15 | |
| 16 | namespace webrtc { |
| 17 | namespace videocapturemodule { |
| 18 | |
| 19 | // Provides video capture device information using the Media Foundation API. |
| 20 | class DeviceInfoMF : public DeviceInfoImpl { |
| 21 | public: |
nisse | b29b9c8 | 2016-12-12 00:22:56 -0800 | [diff] [blame] | 22 | DeviceInfoMF(); |
tommi@webrtc.org | 8187877 | 2012-11-20 13:35:33 +0000 | [diff] [blame] | 23 | virtual ~DeviceInfoMF(); |
| 24 | |
pbos@webrtc.org | dfc5bb9 | 2013-04-10 08:23:13 +0000 | [diff] [blame] | 25 | int32_t Init(); |
| 26 | virtual uint32_t NumberOfDevices(); |
tommi@webrtc.org | 8187877 | 2012-11-20 13:35:33 +0000 | [diff] [blame] | 27 | |
pbos@webrtc.org | dfc5bb9 | 2013-04-10 08:23:13 +0000 | [diff] [blame] | 28 | virtual int32_t GetDeviceName(uint32_t deviceNumber, char* deviceNameUTF8, |
| 29 | uint32_t deviceNameLength, |
| 30 | char* deviceUniqueIdUTF8, |
| 31 | uint32_t deviceUniqueIdUTF8Length, |
| 32 | char* productUniqueIdUTF8, |
| 33 | uint32_t productUniqueIdUTF8Length); |
tommi@webrtc.org | 8187877 | 2012-11-20 13:35:33 +0000 | [diff] [blame] | 34 | |
pbos@webrtc.org | dfc5bb9 | 2013-04-10 08:23:13 +0000 | [diff] [blame] | 35 | virtual int32_t DisplayCaptureSettingsDialogBox( |
tommi@webrtc.org | 8187877 | 2012-11-20 13:35:33 +0000 | [diff] [blame] | 36 | const char* deviceUniqueIdUTF8, const char* dialogTitleUTF8, |
pbos@webrtc.org | dfc5bb9 | 2013-04-10 08:23:13 +0000 | [diff] [blame] | 37 | void* parentWindow, uint32_t positionX, uint32_t positionY); |
tommi@webrtc.org | 8187877 | 2012-11-20 13:35:33 +0000 | [diff] [blame] | 38 | }; |
| 39 | |
| 40 | } // namespace videocapturemodule |
| 41 | } // namespace webrtc |
| 42 | |
| 43 | #endif // WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_DEVICE_INFO_MF_H_ |