Lines Matching refs:cfg
103 return std::all_of(cfgs.cbegin(), cfgs.cend(), [channelCount](const T& cfg) { in isChannelConfigValid() argument
104 return (cfg.channel >= 0 && cfg.channel < channelCount); in isChannelConfigValid()
117 void addEngineConfig(const DynamicsProcessing::EngineArchitecture& cfg);
118 void addPreEqChannelConfig(const std::vector<DynamicsProcessing::ChannelConfig>& cfg);
119 void addPostEqChannelConfig(const std::vector<DynamicsProcessing::ChannelConfig>& cfg);
120 void addMbcChannelConfig(const std::vector<DynamicsProcessing::ChannelConfig>& cfg);
124 void addLimiterConfig(const std::vector<DynamicsProcessing::LimiterConfig>& cfg);
199 for (auto cfg : cfgs) { in isBandConfigValid() local
200 if (cfg.channel < 0 || cfg.channel >= mChannelCount) return false; in isBandConfigValid()
201 if (cfg.band < 0 || cfg.band >= bandCount) return false; in isBandConfigValid()
203 if (freqs.find(cfg.band) != freqs.end()) return false; in isBandConfigValid()
204 freqs.insert(cfg.band); in isBandConfigValid()
375 const DynamicsProcessing::EngineArchitecture& cfg) { in addEngineConfig() argument
377 dp.set<DynamicsProcessing::engineArchitecture>(cfg); in addEngineConfig()
386 for (auto& cfg : cfgs) { in addPreEqChannelConfig() local
387 if (cfg.enable) mPreEqChannelEnable.insert(cfg.channel); in addPreEqChannelConfig()
396 for (auto& cfg : cfgs) { in addPostEqChannelConfig() local
397 if (cfg.enable) mPostEqChannelEnable.insert(cfg.channel); in addPostEqChannelConfig()
406 for (auto& cfg : cfgs) { in addMbcChannelConfig() local
407 if (cfg.enable) mMbcChannelEnable.insert(cfg.channel); in addMbcChannelConfig()
437 for (auto& cfg : cfgs) { in addLimiterConfig() local
438 if (cfg.enable) mLimiterChannelEnable.insert(cfg.channel); in addLimiterConfig()
462 void fillEngineArchConfig(DynamicsProcessing::EngineArchitecture& cfg, in fillEngineArchConfig() argument
464 cfg.resolutionPreference = std::get<ENGINE_TEST_RESOLUTION_PREFERENCE>(params); in fillEngineArchConfig()
465 cfg.preferredProcessingDurationMs = std::get<ENGINE_TEST_PREFERRED_DURATION>(params); in fillEngineArchConfig()
466 cfg.preEqStage = cfg.postEqStage = cfg.mbcStage = in fillEngineArchConfig()
468 cfg.limiterInUse = true; in fillEngineArchConfig()
507 DynamicsProcessing::EngineArchitecture cfg; in __anonfd82c5bd0302() local
508 fillEngineArchConfig(cfg, info.param); in __anonfd82c5bd0302()
509 std::string name = getPrefix(descriptor) + "_Cfg_" + cfg.toString(); in __anonfd82c5bd0302()
591 void fillLimiterConfig(DynamicsProcessing::LimiterConfig& cfg, in fillLimiterConfig() argument
594 cfg.channel = std::get<LIMITER_CHANNEL>(params); in fillLimiterConfig()
595 cfg.enable = std::get<LIMITER_ENABLE>(params); in fillLimiterConfig()
596 cfg.linkGroup = std::get<LIMITER_LINK_GROUP>(params); in fillLimiterConfig()
597 cfg.attackTimeMs = additional[LIMITER_ATTACK_TIME]; in fillLimiterConfig()
598 cfg.releaseTimeMs = additional[LIMITER_RELEASE_TIME]; in fillLimiterConfig()
599 cfg.ratio = additional[LIMITER_RATIO]; in fillLimiterConfig()
600 cfg.thresholdDb = additional[LIMITER_THRESHOLD]; in fillLimiterConfig()
601 cfg.postGainDb = additional[LIMITER_POST_GAIN]; in fillLimiterConfig()
636 DynamicsProcessing::LimiterConfig cfg; in __anonfd82c5bd0702() local
637 fillLimiterConfig(cfg, info.param); in __anonfd82c5bd0702()
641 cfg.toString(); in __anonfd82c5bd0702()