| 163 | } |
| 164 | |
| 165 | void 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 | |
| 190 | int EffectEngine::runEffect(const QString& effectName, int priority, int timeout, const QString& origin) |
| 191 | { |
nothing calls this directly
no test coverage detected