Lines Matching defs:bsd
68 * @param bsd The block size information.
75 const block_size_descriptor& bsd,
81 const auto& pi = bsd.get_partition_info(partition_count, scb.partition_index);
84 const block_mode& bm = bsd.get_block_mode(scb.block_mode);
129 promise(bsd.texel_count > 0);
132 for (; texel + ASTCENC_SIMD_WIDTH <= bsd.texel_count; texel += ASTCENC_SIMD_WIDTH)
231 for (; texel < bsd.texel_count; texel++)
282 const block_size_descriptor& bsd,
288 const auto& pi = bsd.get_partition_info(partition_count, scb.partition_index);
291 const block_mode& bm = bsd.get_block_mode(scb.block_mode);
336 promise(bsd.texel_count > 0);
337 for (unsigned int texel = 0; texel < bsd.texel_count; texel++)
396 * @param bsd The block size information.
402 const block_size_descriptor& bsd,
408 const auto& pi = bsd.get_partition_info(partition_count, scb.partition_index);
411 const block_mode& bm = bsd.get_block_mode(scb.block_mode);
416 const decimation_info& di = bsd.get_decimation_info(bm.decimation_mode);
418 assert(weight_count != bsd.texel_count);
556 * @param bsd The block size information.
568 const block_size_descriptor& bsd,
590 const auto& pi = bsd.get_partition_info(partition_count, partition_index);
601 unsigned int max_decimation_modes = only_always ? bsd.decimation_mode_count_always
602 : bsd.decimation_mode_count_selected;
606 const auto& dm = bsd.get_decimation_mode(i);
612 const auto& di = bsd.get_decimation_info(i);
635 privateProfile, only_always, bsd, dec_weights_ideal, max_weight_quant, tmpbuf);
652 unsigned int max_block_modes = only_always ? bsd.block_mode_count_1plane_always
653 : bsd.block_mode_count_1plane_selected;
657 const block_mode& bm = bsd.block_modes[i];
679 const auto& di = bsd.get_decimation_info(decimation_mode);
724 assert(bm_packed_index >= 0 && bm_packed_index < static_cast<int>(bsd.block_mode_count_1plane_selected));
725 const block_mode& qw_bm = bsd.block_modes[bm_packed_index];
728 const auto& di = bsd.get_decimation_info(decimation_mode);
833 float errorval = compute_difference(config, bsd, workscb, blk);
870 if (di.weight_count != bsd.texel_count)
873 config.profile, bsd, blk, workscb);
878 config.profile, bsd, blk, workscb);
882 float errorval = compute_difference(config, bsd, workscb, blk);
930 * @param bsd The block size information.
940 const block_size_descriptor& bsd,
950 promise(bsd.decimation_mode_count_selected > 0);
958 compute_ideal_colors_and_weights_2planes(bsd, blk, plane2_component, ei1, ei2);
965 for (unsigned int i = 0; i < bsd.decimation_mode_count_selected; i++)
967 const auto& dm = bsd.get_decimation_mode(i);
973 const auto& di = bsd.get_decimation_info(i);
1011 privateProfile, bsd, dec_weights_ideal, max_weight_quant, tmpbuf);
1026 unsigned int start_2plane = bsd.block_mode_count_1plane_selected;
1027 unsigned int end_2plane = bsd.block_mode_count_1plane_2plane_selected;
1031 const block_mode& bm = bsd.block_modes[i];
1053 const auto& di = bsd.get_decimation_info(decimation_mode);
1095 const auto& pi = bsd.get_partition_info(1, 0);
1100 bsd.block_mode_count_1plane_selected, bsd.block_mode_count_1plane_2plane_selected,
1113 assert(bm_packed_index >= static_cast<int>(bsd.block_mode_count_1plane_selected) &&
1114 bm_packed_index < static_cast<int>(bsd.block_mode_count_1plane_2plane_selected));
1115 const block_mode& qw_bm = bsd.block_modes[bm_packed_index];
1118 const auto& di = bsd.get_decimation_info(decimation_mode);
1144 blk, bsd, di,
1170 float errorval = compute_symbolic_block_difference_2plane(config, bsd, workscb, blk);
1208 if (di.weight_count != bsd.texel_count)
1211 config.profile, bsd, blk, workscb);
1216 config.profile, bsd, blk, workscb);
1220 float errorval = compute_symbolic_block_difference_2plane(config, bsd, workscb, blk);
1402 const block_size_descriptor& bsd = *ctx.bsd;
1456 float error_weight_sum = hadd_s(blk.channel_weight) * bsd.texel_count;
1462 lowest_correl = prepare_block_statistics(bsd.texel_count, blk);
1528 symbolic_to_physical(bsd, scb, pcb);
1538 float error_weight_sum = hadd_s(blk.channel_weight) * bsd.texel_count;
1577 if ((ctx.config.tune_search_mode0_enable >= TUNE_MIN_SEARCH_MODE0) && (bsd.zdim == 1))
1592 ctx.config, bsd, blk, i == 0,
1597 const auto& bm = bsd.get_block_mode(scb.block_mode);
1609 lowest_correl = prepare_block_statistics(bsd.texel_count, blk);
1647 ctx.config, bsd, blk, error_threshold * errorval_overshoot,
1675 bsd, blk, partition_count, requested_indices, partition_indices, requested_trials);
1689 ctx.config, bsd, blk, false,
1750 symbolic_to_physical(bsd, scb, pcb);
1754 decompress_symbolic_block(ctx.config.profile, bsd, blk.xpos, blk.ypos, blk.zpos, scb, decBlk);
1756 for (size_t ii = 0; ii < bsd.texel_count; ii++) {