|
duvc-ctl 2.0.0
USB Video Class Camera Control Library
|
RAII wrapper for DirectShow device connections. More...
#include <duvc-ctl/core.h>
Classes | |
| class | com_apartment |
RAII wrapper for DirectShow device connections.
Manages COM interfaces for a single device, providing efficient access to camera controls without repeated device enumeration and binding.
Definition at line 358 of file core.cpp.
References duvc::get_cam_ctrl(), duvc::get_vproc(), and duvc::open_device_filter().
Create connection to specified device.
| dev | Device to connect to |
| std::runtime_error | if device cannot be opened |
| duvc::DeviceConnection::~DeviceConnection | ( | ) |
Destructor - releases all COM interfaces.
|
delete |
|
default |
| bool duvc::DeviceConnection::get | ( | CamProp | prop, |
| PropSetting & | val ) |
Definition at line 385 of file core.cpp.
References duvc::camprop_to_dshow(), duvc::from_flag(), and duvc::Result< T >::value().
| bool duvc::DeviceConnection::get | ( | CamProp | prop, |
| PropSetting & | val ) |
Get current value of a camera control property.
| prop | Camera property to query |
| val | Output current setting |
| bool duvc::DeviceConnection::get | ( | VidProp | prop, |
| PropSetting & | val ) |
Definition at line 413 of file core.cpp.
References duvc::from_flag(), duvc::Result< T >::value(), and duvc::vidprop_to_dshow().
| bool duvc::DeviceConnection::get | ( | VidProp | prop, |
| PropSetting & | val ) |
Get current value of a video processing property.
| prop | Video property to query |
| val | Output current setting |
Definition at line 441 of file core.cpp.
References duvc::camprop_to_dshow(), duvc::PropRange::default_mode, duvc::PropRange::default_val, duvc::from_flag(), duvc::PropRange::max, duvc::PropRange::min, and duvc::PropRange::step.
Get valid range for a camera control property.
| prop | Camera property to query |
| range | Output range information |
Definition at line 460 of file core.cpp.
References duvc::PropRange::default_mode, duvc::PropRange::default_val, duvc::from_flag(), duvc::PropRange::max, duvc::PropRange::min, duvc::PropRange::step, and duvc::vidprop_to_dshow().
Get valid range for a video processing property.
| prop | Video property to query |
| range | Output range information |
|
inline |
Check if connection is valid.
Definition at line 93 of file connection_pool.h.
|
delete |
|
default |
| bool duvc::DeviceConnection::set | ( | CamProp | prop, |
| const PropSetting & | val ) |
Definition at line 401 of file core.cpp.
References duvc::camprop_to_dshow(), duvc::to_flag(), and duvc::Result< T >::value().
| bool duvc::DeviceConnection::set | ( | CamProp | prop, |
| const PropSetting & | val ) |
Set value of a camera control property.
| prop | Camera property to set |
| val | New property setting |
| bool duvc::DeviceConnection::set | ( | VidProp | prop, |
| const PropSetting & | val ) |
Definition at line 429 of file core.cpp.
References duvc::to_flag(), duvc::Result< T >::value(), and duvc::vidprop_to_dshow().
| bool duvc::DeviceConnection::set | ( | VidProp | prop, |
| const PropSetting & | val ) |
Set value of a video processing property.
| prop | Video property to set |
| val | New property setting |