Searched refs:channel_weight (Results 1 – 8 of 8) sorted by relevance
/hardware/google/gfxstream/third-party/astc-encoder/Source/ |
D | astcenc_ideal_endpoints_and_weights.cpp | 127 error_weight = blk.channel_weight.lane<0>(); in compute_ideal_colors_and_weights_1_comp() 131 error_weight = blk.channel_weight.lane<1>(); in compute_ideal_colors_and_weights_1_comp() 135 error_weight = blk.channel_weight.lane<2>(); in compute_ideal_colors_and_weights_1_comp() 140 error_weight = blk.channel_weight.lane<3>(); in compute_ideal_colors_and_weights_1_comp() 239 error_weight = hadd_s(blk.channel_weight.swz<0, 1>()) / 2.0f; in compute_ideal_colors_and_weights_2_comp() 246 error_weight = hadd_s(blk.channel_weight.swz<0, 2>()) / 2.0f; in compute_ideal_colors_and_weights_2_comp() 255 error_weight = hadd_s(blk.channel_weight.swz<1, 2>()) / 2.0f; in compute_ideal_colors_and_weights_2_comp() 375 error_weight = hadd_s(blk.channel_weight.swz<0, 1, 2>()); in compute_ideal_colors_and_weights_3_comp() 382 error_weight = hadd_s(blk.channel_weight.swz<0, 2, 3>()); in compute_ideal_colors_and_weights_3_comp() 389 error_weight = hadd_s(blk.channel_weight.swz<0, 1, 3>()); in compute_ideal_colors_and_weights_3_comp() [all …]
|
D | astcenc_decompress_symbolic.cpp | 414 summa += min(dot(error, blk.channel_weight), ERROR_CALC_DEFAULT); in compute_symbolic_block_difference_2plane() 510 summa += min(dot(error, blk.channel_weight), ERROR_CALC_DEFAULT); in compute_symbolic_block_difference_1plane() 613 vfloat metric = color_error_r * blk.channel_weight.lane<0>() in compute_symbolic_block_difference_1plane_1partition() 614 + color_error_g * blk.channel_weight.lane<1>() in compute_symbolic_block_difference_1plane_1partition() 615 + color_error_b * blk.channel_weight.lane<2>() in compute_symbolic_block_difference_1plane_1partition() 616 + color_error_a * blk.channel_weight.lane<3>(); in compute_symbolic_block_difference_1plane_1partition()
|
D | astcenc_averages_and_directions.cpp | 779 vfloat ew_r(blk.channel_weight.lane<0>()); in compute_error_squared_rgba() 780 vfloat ew_g(blk.channel_weight.lane<1>()); in compute_error_squared_rgba() 781 vfloat ew_b(blk.channel_weight.lane<2>()); in compute_error_squared_rgba() 782 vfloat ew_a(blk.channel_weight.lane<3>()); in compute_error_squared_rgba() 919 vfloat ew_r(blk.channel_weight.lane<0>()); in compute_error_squared_rgb() 920 vfloat ew_g(blk.channel_weight.lane<1>()); in compute_error_squared_rgb() 921 vfloat ew_b(blk.channel_weight.lane<2>()); in compute_error_squared_rgb()
|
D | astcenc_find_best_partitioning.cpp | 84 float distance = dot_s(diff * diff, blk.channel_weight); in kmeans_init() 129 float distance = dot_s(diff * diff, blk.channel_weight); in kmeans_init() 168 float distance = dot_s(diff * diff, blk.channel_weight); in kmeans_assign()
|
D | astcenc_compress_symbolic.cpp | 146 vfloat4 error_weight = blk.channel_weight; in realign_weights_undecimated() 317 vfloat4 error_weight = blk.channel_weight; in realign_weights_decimated() 1079 float weight = hadd_s(blk.channel_weight) / 4.0f; in prepare_block_statistics() 1210 float error_weight_sum = hadd_s(blk.channel_weight) * bsd.texel_count; in compress_block() 1254 float error_weight_sum = hadd_s(blk.channel_weight) * bsd.texel_count; in compress_block()
|
D | astcenc_entry.cpp | 877 blk.channel_weight = vfloat4(ctx.config.cw_r_weight, in compress_image() 970 blk.channel_weight = vfloat4(ctx.config.cw_r_weight * alpha_scale, in compress_image()
|
D | astcenc_pick_best_endpoint_format.cpp | 86 vfloat4 ews = blk.channel_weight; in compute_error_squared_rgb_single_partition() 1129 pi, eci[i], ep, blk.channel_weight, best_error[i], in compute_ideal_endpoint_formats()
|
D | astcenc_internal.h | 755 vfloat4 channel_weight; member
|