blob: 7512277cb52453095ba119f284b0bb35f5e0f463 [file] [log] [blame]
tommi@webrtc.org81878772012-11-20 13:35:33 +00001/*
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.orga9b74ad2013-07-12 10:03:52 +000014#include "webrtc/modules/video_capture/device_info_impl.h"
tommi@webrtc.org81878772012-11-20 13:35:33 +000015
16namespace webrtc {
17namespace videocapturemodule {
18
19// Provides video capture device information using the Media Foundation API.
20class DeviceInfoMF : public DeviceInfoImpl {
21 public:
nisseb29b9c82016-12-12 00:22:56 -080022 DeviceInfoMF();
tommi@webrtc.org81878772012-11-20 13:35:33 +000023 virtual ~DeviceInfoMF();
24
pbos@webrtc.orgdfc5bb92013-04-10 08:23:13 +000025 int32_t Init();
26 virtual uint32_t NumberOfDevices();
tommi@webrtc.org81878772012-11-20 13:35:33 +000027
pbos@webrtc.orgdfc5bb92013-04-10 08:23:13 +000028 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.org81878772012-11-20 13:35:33 +000034
pbos@webrtc.orgdfc5bb92013-04-10 08:23:13 +000035 virtual int32_t DisplayCaptureSettingsDialogBox(
tommi@webrtc.org81878772012-11-20 13:35:33 +000036 const char* deviceUniqueIdUTF8, const char* dialogTitleUTF8,
pbos@webrtc.orgdfc5bb92013-04-10 08:23:13 +000037 void* parentWindow, uint32_t positionX, uint32_t positionY);
tommi@webrtc.org81878772012-11-20 13:35:33 +000038};
39
40} // namespace videocapturemodule
41} // namespace webrtc
42
43#endif // WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_DEVICE_INFO_MF_H_