duvc-ctl 2.0.0
USB Video Class Camera Control Library
Loading...
Searching...
No Matches
directshow.h
Go to the documentation of this file.
1#pragma once
2
8#ifdef _WIN32
9
10#include <dshow.h>
11#include <duvc-ctl/core/types.h>
12#include <duvc-ctl/detail/com_helpers.h>
13
14namespace duvc {
15
23using namespace detail; // Forward definition
24
29com_ptr<ICreateDevEnum> create_dev_enum();
30
36com_ptr<IEnumMoniker> enum_video_devices(ICreateDevEnum *dev);
37
43std::wstring read_friendly_name(IMoniker *mon);
44
50std::wstring read_device_path(IMoniker *mon);
51
59bool is_same_device(const Device &d, const std::wstring &name,
60 const std::wstring &path);
61
67com_ptr<IBaseFilter> open_device_filter(const Device &dev);
68
69} // namespace duvc
70
71#endif // _WIN32
Definition core.h:13
std::wstring read_friendly_name(IMoniker *mon)
Read friendly name from device moniker.
Definition core.cpp:199
com_ptr< IBaseFilter > open_device_filter(const Device &dev)
Create DirectShow filter from device.
Definition core.cpp:260
bool is_same_device(const Device &d, const std::wstring &name, const std::wstring &path)
Check if two device identifiers refer to same device.
Definition core.cpp:250
com_ptr< IEnumMoniker > enum_video_devices(ICreateDevEnum *dev)
Enumerate video input devices.
Definition core.cpp:181
std::wstring read_device_path(IMoniker *mon)
Read device path from moniker.
Definition core.cpp:207
com_ptr< ICreateDevEnum > create_dev_enum()
Create DirectShow device enumerator.
Definition core.cpp:173
Core data types and enumerations for duvc-ctl.