1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Windows specific implementation of VideoCaptureDevice.
6 // DirectShow is used for capturing. DirectShow provide its own threads
9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_CAPABILITY_LIST_WIN_H_
10 #define MEDIA_VIDEO_CAPTURE_WIN_CAPABILITY_LIST_WIN_H_
14 #include "media/video/capture/video_capture_types.h"
18 struct CapabilityWin
{
19 CapabilityWin(int index
, const VideoCaptureFormat
& format
)
20 : stream_index(index
), supported_format(format
) {}
22 VideoCaptureFormat supported_format
;
25 typedef std::list
<CapabilityWin
> CapabilityList
;
27 CapabilityWin
GetBestMatchedCapability(const VideoCaptureFormat
& requested
,
28 const CapabilityList
& capabilities
);
32 #endif // MEDIA_VIDEO_CAPTURE_WIN_CAPABILITY_LIST_WIN_H_