Lines Matching refs:astc

397 	config.rgbm_m_scale = astc::max(config.rgbm_m_scale, 1.0f);
399 config.tune_partition_count_limit = astc::clamp(config.tune_partition_count_limit, 1u, 4u);
400 config.tune_2partition_index_limit = astc::clamp(config.tune_2partition_index_limit, 1u, BLOCK_MAX_PARTITIONINGS);
401 config.tune_3partition_index_limit = astc::clamp(config.tune_3partition_index_limit, 1u, BLOCK_MAX_PARTITIONINGS);
402 config.tune_4partition_index_limit = astc::clamp(config.tune_4partition_index_limit, 1u, BLOCK_MAX_PARTITIONINGS);
403 config.tune_block_mode_limit = astc::clamp(config.tune_block_mode_limit, 1u, 100u);
404 config.tune_refinement_limit = astc::max(config.tune_refinement_limit, 1u);
405 config.tune_candidate_limit = astc::clamp(config.tune_candidate_limit, 1u, TUNE_MAX_TRIAL_CANDIDATES);
406 config.tune_2partitioning_candidate_limit = astc::clamp(config.tune_2partitioning_candidate_limit, 1u, TUNE_MAX_PARTITIONING_CANDIDATES);
407 config.tune_3partitioning_candidate_limit = astc::clamp(config.tune_3partitioning_candidate_limit, 1u, TUNE_MAX_PARTITIONING_CANDIDATES);
408 config.tune_4partitioning_candidate_limit = astc::clamp(config.tune_4partitioning_candidate_limit, 1u, TUNE_MAX_PARTITIONING_CANDIDATES);
409 config.tune_db_limit = astc::max(config.tune_db_limit, 0.0f);
410 config.tune_mse_overshoot = astc::max(config.tune_mse_overshoot, 1.0f);
411 config.tune_2partition_early_out_limit_factor = astc::max(config.tune_2partition_early_out_limit_factor, 0.0f);
412 config.tune_3partition_early_out_limit_factor = astc::max(config.tune_3partition_early_out_limit_factor, 0.0f);
413 config.tune_2plane_early_out_limit_correlation = astc::max(config.tune_2plane_early_out_limit_correlation, 0.0f);
416 float max_weight = astc::max(astc::max(config.cw_r_weight, config.cw_g_weight),
417 astc::max(config.cw_b_weight, config.cw_a_weight));
421 config.cw_r_weight = astc::max(config.cw_r_weight, max_weight);
422 config.cw_g_weight = astc::max(config.cw_g_weight, max_weight);
423 config.cw_b_weight = astc::max(config.cw_b_weight, max_weight);
424 config.cw_a_weight = astc::max(config.cw_a_weight, max_weight);
458 block_z = astc::max(block_z, 1u); // For 2D blocks Z==0 is accepted, but convert to 1
522 config.tune_db_limit = astc::max((*preset_configs)[start].tune_db_limit_a_base - 35 * ltexels,
546 #define LERPI(param) astc::flt2int_rtn(\
561 config.tune_db_limit = astc::max(LERP(tune_db_limit_a_base) - 35 * ltexels,
615 config.tune_partition_count_limit = astc::min(config.tune_partition_count_limit + 1u, 4u);
743 ctx->config.tune_db_limit = astc::pow(0.1f, ctx->config.tune_db_limit * 0.1f) * 65535.0f * 65535.0f;
915 int end_x = astc::min(dim_x, start_x + block_x);
918 int end_y = astc::min(dim_y, start_y + block_y);
1037 arg.size_z = astc::min(step_z, size_z - z);
1040 arg.size_y = astc::min(step_xy, size_y - y);
1045 arg.size_x = astc::min(step_xy, size_x - x);