Test Kiyo Pro HDR control
This commit is contained in:
parent
812b8b4d43
commit
cdc23ee743
4 changed files with 106 additions and 10 deletions
|
|
@ -193,3 +193,18 @@ properties are not enough to recover 60 fps locally. Powerline `60Hz` moves the
|
|||
needle only to about 29 fps. The next investigation should compare this direct
|
||||
KS path with Synapse/OBS and inspect whether the firmware exposes a vendor or
|
||||
extension control that selects the real 60 fps profile.
|
||||
|
||||
HDR follow-up:
|
||||
|
||||
- the probe now tries `KSPROPERTY_CAMERACONTROL_EXTENDED_VIDEOHDR` with both
|
||||
filter-scope and pin-0 extended-property headers;
|
||||
- the Kiyo Pro reports `ERROR_FILE_NOT_FOUND` / `Element not found`;
|
||||
- setting extended Video HDR off also reports `Element not found`;
|
||||
- measured cadence is unchanged at about 25 fps for both `720p MJPG` and
|
||||
`1080p MJPG`.
|
||||
|
||||
Conclusion: HDR may still be part of the Razer/Synapse control story, but it is
|
||||
not exposed through the standard Windows extended Video HDR KS property on this
|
||||
device path. The next useful cut is vendor-extension enumeration or an
|
||||
OBS/Synapse comparison to see whether Razer flips a private UVC extension before
|
||||
opening the real 60 fps stream.
|
||||
|
|
|
|||
|
|
@ -94,7 +94,8 @@ struct PinCandidate
|
|||
enum class ControlSet
|
||||
{
|
||||
Camera,
|
||||
VideoProcAmp
|
||||
VideoProcAmp,
|
||||
ExtendedVideoHdr
|
||||
};
|
||||
|
||||
struct SavedControl
|
||||
|
|
@ -198,16 +199,92 @@ bool setCameraControl(HANDLE filter, ULONG id, LONG value, ULONG flags)
|
|||
|
||||
bool getControl(HANDLE filter, ControlSet set, ULONG id, LONG& value, ULONG& flags)
|
||||
{
|
||||
return set == ControlSet::Camera
|
||||
? getCameraControl(filter, id, value, flags)
|
||||
: getVideoProcAmp(filter, id, value, flags);
|
||||
if (set == ControlSet::Camera)
|
||||
{
|
||||
return getCameraControl(filter, id, value, flags);
|
||||
}
|
||||
|
||||
if (set == ControlSet::VideoProcAmp)
|
||||
{
|
||||
return getVideoProcAmp(filter, id, value, flags);
|
||||
}
|
||||
|
||||
struct ExtendedVideoHdrProperty
|
||||
{
|
||||
KSCAMERA_EXTENDEDPROP_HEADER header;
|
||||
KSCAMERA_EXTENDEDPROP_VALUE value;
|
||||
};
|
||||
|
||||
KSPROPERTY property{};
|
||||
property.Set = KSPROPERTYSETID_ExtendedCameraControl;
|
||||
property.Id = KSPROPERTY_CAMERACONTROL_EXTENDED_VIDEOHDR;
|
||||
property.Flags = KSPROPERTY_TYPE_GET;
|
||||
|
||||
ExtendedVideoHdrProperty data{};
|
||||
bool ok = false;
|
||||
const ULONG extendedPinIds[] = {KSCAMERA_EXTENDEDPROP_FILTERSCOPE, 0UL};
|
||||
for (const ULONG pinId : extendedPinIds)
|
||||
{
|
||||
data = {};
|
||||
data.header.Version = 1;
|
||||
data.header.PinId = pinId;
|
||||
data.header.Size = sizeof(data);
|
||||
if (ksProperty(filter, &property, sizeof(property), &data, sizeof(data)))
|
||||
{
|
||||
ok = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!ok)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
value = static_cast<LONG>(data.header.Flags);
|
||||
flags = static_cast<ULONG>(data.header.Capability);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool setControl(HANDLE filter, ControlSet set, ULONG id, LONG value, ULONG flags)
|
||||
{
|
||||
return set == ControlSet::Camera
|
||||
? setCameraControl(filter, id, value, flags)
|
||||
: setVideoProcAmp(filter, id, value, flags);
|
||||
if (set == ControlSet::Camera)
|
||||
{
|
||||
return setCameraControl(filter, id, value, flags);
|
||||
}
|
||||
|
||||
if (set == ControlSet::VideoProcAmp)
|
||||
{
|
||||
return setVideoProcAmp(filter, id, value, flags);
|
||||
}
|
||||
|
||||
struct ExtendedVideoHdrProperty
|
||||
{
|
||||
KSCAMERA_EXTENDEDPROP_HEADER header;
|
||||
KSCAMERA_EXTENDEDPROP_VALUE value;
|
||||
};
|
||||
|
||||
KSPROPERTY property{};
|
||||
property.Set = KSPROPERTYSETID_ExtendedCameraControl;
|
||||
property.Id = KSPROPERTY_CAMERACONTROL_EXTENDED_VIDEOHDR;
|
||||
property.Flags = KSPROPERTY_TYPE_SET;
|
||||
|
||||
ExtendedVideoHdrProperty data{};
|
||||
const ULONG extendedPinIds[] = {KSCAMERA_EXTENDEDPROP_FILTERSCOPE, 0UL};
|
||||
for (const ULONG pinId : extendedPinIds)
|
||||
{
|
||||
data = {};
|
||||
data.header.Version = 1;
|
||||
data.header.PinId = pinId;
|
||||
data.header.Size = sizeof(data);
|
||||
data.header.Flags = static_cast<ULONGLONG>(value);
|
||||
if (ksProperty(filter, &property, sizeof(property), &data, sizeof(data)))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void printKnownControls(HANDLE filter)
|
||||
|
|
@ -216,6 +293,7 @@ void printKnownControls(HANDLE filter)
|
|||
{"camera.zoom/exposure", ControlSet::Camera, KSPROPERTY_CAMERACONTROL_ZOOM, 0, KSPROPERTY_CAMERACONTROL_FLAGS_MANUAL},
|
||||
{"camera.exposure", ControlSet::Camera, KSPROPERTY_CAMERACONTROL_EXPOSURE, 0, KSPROPERTY_CAMERACONTROL_FLAGS_MANUAL},
|
||||
{"camera.auto-exposure-priority/low-light", ControlSet::Camera, KSPROPERTY_CAMERACONTROL_AUTO_EXPOSURE_PRIORITY, 0, KSPROPERTY_CAMERACONTROL_FLAGS_MANUAL},
|
||||
{"extended.video-hdr", ControlSet::ExtendedVideoHdr, KSPROPERTY_CAMERACONTROL_EXTENDED_VIDEOHDR, 0, 0},
|
||||
{"procamp.contrast/hdr-led", ControlSet::VideoProcAmp, KSPROPERTY_VIDEOPROCAMP_CONTRAST, 0, KSPROPERTY_VIDEOPROCAMP_FLAGS_MANUAL},
|
||||
{"procamp.gamma", ControlSet::VideoProcAmp, KSPROPERTY_VIDEOPROCAMP_GAMMA, 0, KSPROPERTY_VIDEOPROCAMP_FLAGS_MANUAL},
|
||||
{"procamp.brightness/digital-gain", ControlSet::VideoProcAmp, KSPROPERTY_VIDEOPROCAMP_BRIGHTNESS, 0, KSPROPERTY_VIDEOPROCAMP_FLAGS_MANUAL},
|
||||
|
|
@ -884,6 +962,7 @@ int main(int argc, char** argv)
|
|||
const ULONG procManual = KSPROPERTY_VIDEOPROCAMP_FLAGS_MANUAL;
|
||||
const std::vector<ControlScenario> webcamScenarios = {
|
||||
{"baseline", {}},
|
||||
{"extended video HDR off", {{"extended.video-hdr", ControlSet::ExtendedVideoHdr, KSPROPERTY_CAMERACONTROL_EXTENDED_VIDEOHDR, static_cast<LONG>(KSCAMERA_EXTENDEDPROP_VIDEOHDR_OFF), 0}}},
|
||||
{"low-light compensation off", {{"camera.auto-exposure-priority/low-light", ControlSet::Camera, KSPROPERTY_CAMERACONTROL_AUTO_EXPOSURE_PRIORITY, 0, camManual}}},
|
||||
{"powerline disabled", {{"procamp.powerline-frequency", ControlSet::VideoProcAmp, KSPROPERTY_VIDEOPROCAMP_POWERLINE_FREQUENCY, 0, procManual}}},
|
||||
{"powerline 50hz", {{"procamp.powerline-frequency", ControlSet::VideoProcAmp, KSPROPERTY_VIDEOPROCAMP_POWERLINE_FREQUENCY, 1, procManual}}},
|
||||
|
|
|
|||
|
|
@ -8,3 +8,4 @@
|
|||
{"ts":"2026-05-21T20:55:00+00:00","type":"verification","status":"ok","note":"LeapUVC KS control sweep showed the short-window 83 fps result was mostly startup drag. With two seconds of warm-up discarded and eight queued async KS reads, 640x240 YUY2 delivered about 110.7 fps against 115 fps advertised; 640x120 YUY2 delivered 1030 frames in 5.003s (205.87 fps) against 214 fps advertised. Exposure, gamma, HDR/LED, gain, and dark-frame controls are reachable through KS; digital gain=0 and the old FPS-ratio selector are rejected with ERROR_INVALID_PARAMETER."}
|
||||
{"ts":"2026-05-21T21:25:00+00:00","type":"verification","status":"ok","note":"Razer Kiyo direct KS probe measured VID_1532 PID_0E03 and PID_0E05 camera interfaces with eight queued async reads and two-second warm-up discard. Plain Kiyo is exposure-limited by default: 1920x1080 MJPG reaches 30.27 fps with manual exposure -9/-10, and 1280x720 MJPG reaches 51.51 fps after manual exposure/gain sweep against 60 fps advertised. Kiyo Pro advertises 60 fps at 1280x720 and 1920x1080 MJPG, but the current KS path delivers only about 25 fps regardless of manual exposure; it needs separate control/driver investigation before high-cadence use."}
|
||||
{"ts":"2026-05-21T21:55:00+00:00","type":"verification","status":"ok","note":"Online Kiyo Pro research found matching trouble reports: Razer documents 1080p60/720p60, HDR can reduce frame rate, anti-flicker/powerline can interact with frame rate, and Microsoft maps low-light compensation to AUTO_EXPOSURE_PRIORITY, which can vary frame rate. Local KS follow-up found Kiyo Pro reports low-light priority=1 and powerline=50Hz. Setting low-light priority to 0 did not improve cadence; setting powerline to 60Hz moved 720p/1080p MJPG only from about 25 fps to about 29 fps. Standard KS controls are not enough; next step is compare Synapse/OBS and inspect vendor/extension controls or firmware state."}
|
||||
{"ts":"2026-05-21T22:15:00+00:00","type":"verification","status":"ok","note":"Kiyo Pro HDR-off test added KSPROPERTY_CAMERACONTROL_EXTENDED_VIDEOHDR get/set with filter-scope and pin-0 extended-property headers. The camera returns Element not found for standard extended Video HDR, and setting HDR off does not change cadence: 720p/1080p MJPG remain about 25 fps. HDR may still be controlled through Razer/Synapse, but not via the standard Windows extended Video HDR KS property on this path."}
|
||||
|
|
|
|||
|
|
@ -92,9 +92,10 @@ current_status:
|
|||
same KS path even with manual exposure tuning. Online reports and local
|
||||
control tests point at Kiyo Pro firmware/Synapse/anti-flicker or extension
|
||||
control state: standard KS low-light compensation off does not restore 60
|
||||
fps, and powerline 60Hz only raises Pro cadence to about 29 fps.
|
||||
fps, powerline 60Hz only raises Pro cadence to about 29 fps, and standard
|
||||
extended Video HDR is not exposed on this KS path.
|
||||
next_action: >
|
||||
Turn the warmed, queued Leap KS path into an `IMimirVideoCaptureDriver`,
|
||||
preserve direct control hooks for timing-camera state, and decide whether
|
||||
Kiyo Pro needs Synapse/OBS comparison, vendor extension control inspection,
|
||||
or firmware reset before it joins the six-camera capture set.
|
||||
Kiyo Pro needs Synapse/OBS comparison, vendor extension enumeration, or
|
||||
firmware reset before it joins the six-camera capture set.
|
||||
|
|
|
|||
Loading…
Reference in a new issue