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

Method createSmoothingConfigs

sources/effects/EffectEngine.cpp:165–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void EffectEngine::createSmoothingConfigs()
166{
167 unsigned defaultEffectConfig = SMOOTHING_EFFECT_CONFIGS_START;
168 unsigned dynamicId = defaultEffectConfig + 1;
169
170 _hyperInstance->addEffectConfig(defaultEffectConfig);
171
172 for (EffectDefinition& def : _availableEffects)
173 {
174 // add smoothing configs to HyperHdr
175 if (def.smoothingCustomSettings)
176 {
177 def.smoothingConfig = _hyperInstance->addEffectConfig(
178 dynamicId++,
179 def.smoothingTime,
180 def.smoothingFrequency,
181 def.smoothingDirectMode);
182 }
183 else
184 {
185 def.smoothingConfig = _hyperInstance->addEffectConfig(defaultEffectConfig);
186 }
187 }
188}
189
190int EffectEngine::runEffect(const QString& effectName, int priority, int timeout, const QString& origin)
191{

Callers

nothing calls this directly

Calls 1

addEffectConfigMethod · 0.80

Tested by

no test coverage detected