Skip to content

Commit

Permalink
Toggle hardware tonemapper for Elgato 4K60 S+
Browse files Browse the repository at this point in the history
  • Loading branch information
jpark37 authored and jp9000 committed Apr 26, 2022
1 parent d26311f commit ed02c35
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ void HDevice::Receive(bool isVideo, IMediaSample *sample)
const bool hdr = IsVendorVideoHDR(propertySet);
if (deviceHdrSignal != hdr) {
deviceHdrSignal = hdr;
#ifdef ENABLE_HEVC
SetVendorVideoFormat(propertySet, hdr);
#endif
videoConfig.reactivateCallback();
reactivatePending = true;
return;
Expand Down Expand Up @@ -409,6 +412,9 @@ bool HDevice::SetVideoConfig(VideoConfig *config)
ComPtr<IKsPropertySet> propertySet = ComQIPtr<IKsPropertySet>(filter);
if (propertySet) {
const bool hdr = IsVendorVideoHDR(propertySet);
#ifdef ENABLE_HEVC
SetVendorVideoFormat(propertySet, hdr);
#endif
deviceHdrSignal = hdr;
}

Expand Down

0 comments on commit ed02c35

Please sign in to comment.