OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_DEVICE_INFO_MF_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_DEVICE_INFO_MF_H_ |
12 #define WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_DEVICE_INFO_MF_H_ | 12 #define WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_DEVICE_INFO_MF_H_ |
13 | 13 |
14 #include "webrtc/modules/video_capture/device_info_impl.h" | 14 #include "webrtc/modules/video_capture/device_info_impl.h" |
15 | 15 |
16 namespace webrtc { | 16 namespace webrtc { |
17 namespace videocapturemodule { | 17 namespace videocapturemodule { |
18 | 18 |
19 // Provides video capture device information using the Media Foundation API. | 19 // Provides video capture device information using the Media Foundation API. |
20 class DeviceInfoMF : public DeviceInfoImpl { | 20 class DeviceInfoMF : public DeviceInfoImpl { |
21 public: | 21 public: |
22 explicit DeviceInfoMF(const int32_t id); | 22 DeviceInfoMF(); |
23 virtual ~DeviceInfoMF(); | 23 virtual ~DeviceInfoMF(); |
24 | 24 |
25 int32_t Init(); | 25 int32_t Init(); |
26 virtual uint32_t NumberOfDevices(); | 26 virtual uint32_t NumberOfDevices(); |
27 | 27 |
28 virtual int32_t GetDeviceName(uint32_t deviceNumber, char* deviceNameUTF8, | 28 virtual int32_t GetDeviceName(uint32_t deviceNumber, char* deviceNameUTF8, |
29 uint32_t deviceNameLength, | 29 uint32_t deviceNameLength, |
30 char* deviceUniqueIdUTF8, | 30 char* deviceUniqueIdUTF8, |
31 uint32_t deviceUniqueIdUTF8Length, | 31 uint32_t deviceUniqueIdUTF8Length, |
32 char* productUniqueIdUTF8, | 32 char* productUniqueIdUTF8, |
33 uint32_t productUniqueIdUTF8Length); | 33 uint32_t productUniqueIdUTF8Length); |
34 | 34 |
35 virtual int32_t DisplayCaptureSettingsDialogBox( | 35 virtual int32_t DisplayCaptureSettingsDialogBox( |
36 const char* deviceUniqueIdUTF8, const char* dialogTitleUTF8, | 36 const char* deviceUniqueIdUTF8, const char* dialogTitleUTF8, |
37 void* parentWindow, uint32_t positionX, uint32_t positionY); | 37 void* parentWindow, uint32_t positionX, uint32_t positionY); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace videocapturemodule | 40 } // namespace videocapturemodule |
41 } // namespace webrtc | 41 } // namespace webrtc |
42 | 42 |
43 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_DEVICE_INFO_MF_H_ | 43 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_DEVICE_INFO_MF_H_ |
OLD | NEW |