Index: media/capture/video/video_capture_device_info.h |
diff --git a/media/capture/video/video_capture_device_info.h b/media/capture/video/video_capture_device_info.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..32f61c6b5f65cf8bb08127ebc7d25a9f19f60b7a |
--- /dev/null |
+++ b/media/capture/video/video_capture_device_info.h |
@@ -0,0 +1,28 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_INFO_H_ |
+#define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_INFO_H_ |
+ |
+#include "media/capture/video/video_capture_device_descriptor.h" |
+#include "media/capture/video_capture_types.h" |
+ |
+namespace media { |
+ |
+// Bundles a media::VideoCaptureDeviceDescriptor with corresponding supported |
+// video formats. |
+struct CAPTURE_EXPORT VideoCaptureDeviceInfo { |
+ VideoCaptureDeviceInfo(); |
+ VideoCaptureDeviceInfo(media::VideoCaptureDeviceDescriptor descriptor); |
+ VideoCaptureDeviceInfo(const VideoCaptureDeviceInfo& other); |
+ ~VideoCaptureDeviceInfo(); |
+ VideoCaptureDeviceInfo& operator=(const VideoCaptureDeviceInfo& other); |
+ |
+ media::VideoCaptureDeviceDescriptor descriptor; |
+ media::VideoCaptureFormats supported_formats; |
+}; |
+ |
+} // namespace media |
+ |
+#endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_INFO_H_ |