Lines Matching refs:configs
94 bool IsValid(const std::vector<BalancedDegradationSettings::Config>& configs) { in IsValid() argument
95 if (configs.size() <= 1) { in IsValid()
99 for (const auto& config : configs) { in IsValid()
105 int last_kbps = configs[0].kbps; in IsValid()
106 for (size_t i = 1; i < configs.size(); ++i) { in IsValid()
107 if (configs[i].kbps > 0) { in IsValid()
108 if (configs[i].kbps < last_kbps) { in IsValid()
112 last_kbps = configs[i].kbps; in IsValid()
115 for (size_t i = 1; i < configs.size(); ++i) { in IsValid()
116 if (configs[i].pixels < configs[i - 1].pixels || in IsValid()
117 configs[i].fps < configs[i - 1].fps) { in IsValid()
121 if (!IsValid(configs[i].vp8, configs[i - 1].vp8) || in IsValid()
122 !IsValid(configs[i].vp9, configs[i - 1].vp9) || in IsValid()
123 !IsValid(configs[i].h264, configs[i - 1].h264) || in IsValid()
124 !IsValid(configs[i].av1, configs[i - 1].av1) || in IsValid()
125 !IsValid(configs[i].generic, configs[i - 1].generic)) { in IsValid()
129 for (const auto& config : configs) { in IsValid()
140 const std::vector<BalancedDegradationSettings::Config>& configs) { in GetValidOrDefault() argument
141 if (IsValid(configs)) { in GetValidOrDefault()
142 return configs; in GetValidOrDefault()
335 FieldTrialStructList<Config> configs( in BalancedDegradationSettings() local
392 ParseFieldTrial({&configs}, field_trial::FindFullName(kFieldTrial)); in BalancedDegradationSettings()
394 configs_ = GetValidOrDefault(configs.Get()); in BalancedDegradationSettings()