blob: d215cf5755b8af574fd160ad4c5248e81fa1d39b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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/base/video_capture_types.h"
#include "media/video/capture/video_capture_device.h"
namespace media {
// A convenience wrap of a device's name and associated supported formats.
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_
|