duvc-ctl 2.0.0
USB Video Class Camera Control Library
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1#pragma once
2
12#ifdef _WIN32
13
14#include <duvc-ctl/core/types.h>
15#include <vector>
16#include <windows.h>
17
18namespace duvc {
19
26struct VendorProperty {
27 GUID property_set;
28 ULONG property_id;
30 std::vector<uint8_t>
31 data;
32
34 VendorProperty() = default;
35
43 const std::vector<uint8_t> &payload = {})
45};
46
55bool get_vendor_property(const Device &dev, const GUID &property_set,
56 ULONG property_id, std::vector<uint8_t> &data);
57
66bool set_vendor_property(const Device &dev, const GUID &property_set,
67 ULONG property_id, const std::vector<uint8_t> &data);
68
76bool query_vendor_property_support(const Device &dev, const GUID &property_set,
77 ULONG property_id);
78
79} // namespace duvc
80
81#endif // _WIN32
Result type that can contain either a value or an error.
Definition result.h:75
bool set(const Device &, CamProp, const PropSetting &)
Set a camera control property value.
Definition duvc.hpp:81
Definition core.h:13
bool query_vendor_property_support(const Device &dev, const GUID &property_set, ULONG property_id)
Query whether device supports a vendor-specific property.
Definition core.cpp:614
bool 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.
Definition core.cpp:584
bool 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.
Definition core.cpp:602
VendorProperty()=default
Default constructor.
ULONG property_id
Property ID within set (vendor-defined numeric identifier)
Definition core.h:43
VendorProperty(const GUID &set, ULONG id, const std::vector< uint8_t > &payload={})
Construct vendor property with initial values.
Definition constants.h:42
GUID property_set
Property set GUID (vendor-specific extension unit)
Definition core.h:42
std::vector< uint8_t > data
Property data payload (opaque vendor-defined binary data)
Definition core.h:44
Core data types and enumerations for duvc-ctl.