duvc-ctl 2.0.0
USB Video Class Camera Control Library
Loading...
Searching...
No Matches
logitech.h
Go to the documentation of this file.
1#pragma once
2
11#ifdef _WIN32
12
14#include <duvc-ctl/core/types.h>
15#include <vector>
16#include <windows.h>
17
18namespace duvc::logitech {
19
28inline constexpr GUID LOGITECH_PROPERTY_SET = {
29 0x82066163,
30 0x7BD0,
31 0x43EF,
32 {0x8A, 0x6F, 0x5B, 0x89, 0x05, 0xC9, 0xA6, 0x4C}};
33
41 RightLight = 1,
42 RightSound = 2,
43 FaceTracking = 3,
44 LedIndicator = 4,
45 ProcessorUsage = 5,
46 RawDataBits = 6,
47 FocusAssist = 7,
48 VideoStandard = 8,
49 DigitalZoomROI = 9,
50 TiltPan = 10,
51};
52
62
71 const std::vector<uint8_t> &data);
72
80
94template <typename T>
97
111template <typename T>
113 LogitechProperty prop, const T &value);
114
115} // namespace duvc::logitech
116
117#endif // _WIN32
Result type that can contain either a value or an error.
Definition result.h:75
Result< void > set_logitech_property_typed(const Device &device, LogitechProperty prop, const T &value)
Set typed Logitech property value.
Definition logitech.cpp:109
Result< bool > supports_logitech_properties(const Device &device)
Check if device supports Logitech vendor properties.
Definition logitech.cpp:62
Result< void > set_logitech_property(const Device &device, LogitechProperty prop, const std::vector< uint8_t > &data)
Set Logitech vendor property from raw byte vector.
Definition logitech.cpp:43
Result< T > get_logitech_property_typed(const Device &device, LogitechProperty prop)
Get typed Logitech property value.
Definition logitech.cpp:90
Result< std::vector< uint8_t > > get_logitech_property(const Device &device, LogitechProperty prop)
Get Logitech vendor property as raw byte vector.
Definition logitech.cpp:23
LogitechProperty
Logitech vendor property IDs.
Definition logitech.h:40
@ VideoStandard
Video standard selection (NTSC/PAL/etc)
@ RawDataBits
Raw data bit depth configuration.
@ TiltPan
Combined tilt/pan control (absolute positioning)
@ ProcessorUsage
Processor usage optimization hints.
@ LedIndicator
LED indicator control (on/off/blink modes)
@ RightLight
RightLight auto-exposure and brightness optimization.
@ FaceTracking
Face tracking enable/disable for auto-framing.
@ DigitalZoomROI
Digital zoom region of interest coordinates.
@ FocusAssist
Focus assist beam control.
@ RightSound
RightSound audio processing and noise cancellation.
constexpr GUID LOGITECH_PROPERTY_SET
Logitech vendor-specific property set GUID.
Definition logitech.h:28
Result/Error type system for duvc-ctl.
Represents a camera device.
Definition types.h:131
Core data types and enumerations for duvc-ctl.