MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / setAutomaticToneMappingConfig

Method setAutomaticToneMappingConfig

sources/base/Grabber.cpp:993–1001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991}
992
993void Grabber::setAutomaticToneMappingConfig(bool enabled, const AutomaticToneMapping::ToneMappingThresholds& newConfig, int timeInSec, int timeToDisableInMSec)
994{
995 _automaticToneMapping.setConfig(enabled, newConfig, timeInSec, timeToDisableInMSec);
996 if (_automaticToneMapping.prepare() && !_qframe)
997 Error(_log, "Automatic tone mapping requires 'Quarter of frame' mode enabled");
998 if (_automaticToneMapping.prepare() && (_enc != PixelFormat::YUYV && _enc != PixelFormat::NV12 && _enc != PixelFormat::P010 ))
999 Warning(_log, "Automatic tone mapping requires YUYV/NV12/P010 video format");
1000
1001}
1002
1003void Grabber::setAutoToneMappingCurrentStateEnabled(bool enabled)
1004{

Callers 1

handleSettingsUpdateMethod · 0.80

Calls 2

setConfigMethod · 0.80
prepareMethod · 0.45

Tested by

no test coverage detected