duvc-ctl 2.0.0
USB Video Class Camera Control Library
Loading...
Searching...
No Matches
core.h File Reference
#include "defs.h"
#include <vector>
#include <functional>
#include <memory>
#include <cstdint>
#include <windows.h>
Include dependency graph for core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  duvc::VendorProperty
 Vendor-specific property data container. More...
 
class  duvc::DeviceConnection
 RAII wrapper for DirectShow device connections. More...
 

Namespaces

namespace  duvc
 

Typedefs

using duvc::DeviceChangeCallback = std::function<void(bool device_added, const std::wstring& device_path)>
 Device change callback function type.
 

Functions

std::vector< Deviceduvc::list_devices ()
 Enumerate all available video input devices.
 
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, 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, VidProp prop, PropRange &out)
 Get the valid range for a video processing 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.
 
const charduvc::to_string (CamProp prop)
 Convert camera property enum to string.
 
const charduvc::to_string (VidProp prop)
 Convert video property enum to string.
 
const charduvc::to_string (CamMode mode)
 Convert camera mode enum to string.
 
const wchar_tduvc::to_wstring (CamProp prop)
 Convert camera property enum to wide string.
 
const wchar_tduvc::to_wstring (VidProp prop)
 Convert video property enum to wide string.
 
const wchar_tduvc::to_wstring (CamMode mode)
 Convert camera mode enum to wide string.
 
void duvc::register_device_change_callback (DeviceChangeCallback callback)
 Register callback for device hotplug events.
 
void duvc::unregister_device_change_callback ()
 Unregister device change callback.
 
bool duvc::is_device_connected (const Device &dev)
 Check if a device is currently connected and accessible.
 
bool duvc::get_vendor_property (const Device &dev, const GUID &property_set, ULONG property_id, std::vector< uint8_t > &data)
 Get vendor-specific property data from device.
 
bool duvc::set_vendor_property (const Device &dev, const GUID &property_set, ULONG property_id, const std::vector< uint8_t > &data)
 Set vendor-specific property data on device.
 
bool duvc::query_vendor_property_support (const Device &dev, const GUID &property_set, ULONG property_id)
 Query whether device supports a vendor-specific property.
 
DeviceConnectionduvc::get_cached_connection (const Device &dev)
 
void duvc::release_cached_connection (const Device &dev)
 
void duvc::clear_connection_cache ()