Lines Matching refs:astc

502 				// float weight = astc::flt_rd(weight_base + 0.5f);
503 // float weight_down = astc::flt_rd(weight_base + 0.5f + uqw_diff_down * tw_base) - weight;
504 // float weight_up = astc::flt_rd(weight_base + 0.5f + uqw_diff_up * tw_base) - weight;
582 int max_weight_quant = astc::min(static_cast<int>(QUANT_32), quant_limit);
841 best_errorval_in_mode = astc::min(errorval, best_errorval_in_mode);
890 best_errorval_in_mode = astc::min(errorval, best_errorval_in_mode);
952 int max_weight_quant = astc::min(static_cast<int>(QUANT_32), quant_limit);
1178 best_errorval_in_mode = astc::min(errorval, best_errorval_in_mode);
1228 best_errorval_in_mode = astc::min(errorval, best_errorval_in_mode);
1330 float rpt = 1.0f / astc::max(weight_sum, 1e-7f);
1347 rg_cov *= astc::rsqrt(rr_var * gg_var);
1348 rb_cov *= astc::rsqrt(rr_var * bb_var);
1349 ra_cov *= astc::rsqrt(rr_var * aa_var);
1350 gb_cov *= astc::rsqrt(gg_var * bb_var);
1351 ga_cov *= astc::rsqrt(gg_var * aa_var);
1352 ba_cov *= astc::rsqrt(bb_var * aa_var);
1354 if (astc::isnan(rg_cov)) rg_cov = 1.0f;
1355 if (astc::isnan(rb_cov)) rb_cov = 1.0f;
1356 if (astc::isnan(ra_cov)) ra_cov = 1.0f;
1357 if (astc::isnan(gb_cov)) gb_cov = 1.0f;
1358 if (astc::isnan(ga_cov)) ga_cov = 1.0f;
1359 if (astc::isnan(ba_cov)) ba_cov = 1.0f;
1361 float lowest_correlation = astc::min(fabsf(rg_cov), fabsf(rb_cov));
1362 lowest_correlation = astc::min(lowest_correlation, fabsf(ra_cov));
1363 lowest_correlation = astc::min(lowest_correlation, fabsf(gb_cov));
1364 lowest_correlation = astc::min(lowest_correlation, fabsf(ga_cov));
1365 lowest_correlation = astc::min(lowest_correlation, fabsf(ba_cov));
1600 best_errorvals_for_pcount[0] = astc::min(best_errorvals_for_pcount[0], errorval);
1672 requested_trials = astc::min(requested_trials, requested_indices);
1694 best_errorvals_for_pcount[partition_count - 1] = astc::min(best_errorvals_for_pcount[partition_count - 1], errorval);