Win Video Capture: add support for enumerating DirectShow WDM devices
commita4b9b88c1e96490c88fc801eedaf7eef513366d9
authormcasas <mcasas@chromium.org>
Fri, 29 Aug 2014 14:15:48 +0000 (29 07:15 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 29 Aug 2014 14:17:16 +0000 (29 14:17 +0000)
treea6e678856abfa619ecc55952b95cbee55ddf8fd3
parentb54007966b8b34d2d210066a2875ae69d5327623
Win Video Capture: add support for enumerating DirectShow WDM devices

DirectShow supports a certain type of Video Capture Cards, in general
video digitizers (a.k.a. Analog video capture cards). These cards need
extra configuration of the "remote" ports in and out. For this purpose,
the Windows Driver Model is used [1], where special DS Filters are
added upstream of the capture source.

This CL adds support for enumerating these devices, which will show up
as another camera in the system list.

Other posterior CLs will figure out other parts needed, namely:

- which "normal" Filter is associated to the WDM Filter, for the
purpose of capabilities enumeration.

- if the VideoCaptureDevice::Name passed to VideoCaptureDeviceWin
is labelled as being WDM, a slightly different capture graph is
needed.

For the Hauppage USB-Live 2, this means another camera called
"Hauppauge Cx23100 Crossbar", in addition to the normal "Hauppauge
USB-Live2"

[1] http://msdn.microsoft.com/en-us/library/windows/desktop/dd373405(v=vs.85).aspx

BUG=402684

Review URL: https://codereview.chromium.org/510723003

Cr-Commit-Position: refs/heads/master@{#292627}
media/video/capture/video_capture_device.h
media/video/capture/win/video_capture_device_factory_win.cc