|
duvc-ctl 2.0.0
USB Video Class Camera Control Library
|
Functions | |
| bool | duvc::get (const Device &dev, CamProp prop, PropSetting &out) |
| Get a camera control property value. | |
| bool | duvc::set (const Device &dev, CamProp prop, const PropSetting &in) |
| Set a camera control property value. | |
| bool | duvc::get_range (const Device &dev, CamProp prop, PropRange &out) |
| Get the valid range for a camera control property. | |
| bool | duvc::get (const Device &dev, VidProp prop, PropSetting &out) |
| Get a video processing property value. | |
| bool | duvc::set (const Device &dev, VidProp prop, const PropSetting &in) |
| Set a video processing property value. | |
| bool | duvc::get_range (const Device &dev, VidProp prop, PropRange &out) |
| Get the valid range for a video processing property. | |
Simplified one-call camera control functions.
These wrappers provide easy access for CLI tools and casual use cases. They internally use the Camera RAII API but expose a simple bool interface. For detailed error handling, use the full Camera API.
|
inline |
Get a camera control property value.
Definition at line 63 of file duvc.hpp.
References duvc::Result< T >::is_ok(), and duvc::Result< T >::value().
Referenced by duvc_cam_get(), and duvc_vid_get().
|
inline |
Get a video processing property value.
| dev | Device to query |
| prop | Video property |
| out | Output property setting |
Definition at line 113 of file duvc.hpp.
References duvc::Result< T >::is_ok(), and duvc::Result< T >::value().
Get the valid range for a camera control property.
Definition at line 95 of file duvc.hpp.
References duvc::Result< T >::is_ok(), and duvc::Result< T >::value().
Referenced by duvc_cam_get_range(), and duvc_vid_get_range().
Get the valid range for a video processing property.
| dev | Device to query |
| prop | Video property |
| out | Output property range |
Definition at line 145 of file duvc.hpp.
References duvc::Result< T >::is_ok(), and duvc::Result< T >::value().
Set a camera control property value.
Definition at line 81 of file duvc.hpp.
References duvc::Result< T >::is_ok().
Referenced by duvc_cam_set(), and duvc_vid_set().
Set a video processing property value.
| dev | Device to modify |
| prop | Video property |
| in | New property setting |
Definition at line 131 of file duvc.hpp.
References duvc::Result< T >::is_ok().