Chromium Code Reviews| Index: media/video/capture/video_capture_device_info.h |
| diff --git a/media/video/capture/video_capture_device_info.h b/media/video/capture/video_capture_device_info.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5186a347334f17d3dfcfc61ea34c8a5f068d00a3 |
| --- /dev/null |
| +++ b/media/video/capture/video_capture_device_info.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2014 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_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_INFO_H_ |
| +#define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_INFO_H_ |
| + |
| +#include "media/video/capture/video_capture_device.h" |
| +#include "media/video/capture/video_capture_types.h" |
| + |
| +namespace media { |
| + |
| +// A convenience wrap of a devices' name and associated supported formats. |
|
wolenetz
2014/10/09 20:51:43
nit: s/devices'/device's/
mcasas
2014/10/10 11:30:42
Done.
|
| +struct MEDIA_EXPORT VideoCaptureDeviceInfo { |
| + VideoCaptureDeviceInfo(); |
| + VideoCaptureDeviceInfo(const VideoCaptureDevice::Name& name, |
| + const VideoCaptureFormats& supported_formats); |
| + ~VideoCaptureDeviceInfo(); |
| + |
| + VideoCaptureDevice::Name name; |
| + VideoCaptureFormats supported_formats; |
| +}; |
| + |
| +typedef std::vector<VideoCaptureDeviceInfo> VideoCaptureDeviceInfos; |
| + |
| +} // namespace media |
| + |
| +#endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_INFO_H_ |