| 991 | } |
| 992 | |
| 993 | void 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 | |
| 1003 | void Grabber::setAutoToneMappingCurrentStateEnabled(bool enabled) |
| 1004 | { |
no test coverage detected