/hardware/google/gfxstream/third-party/astc-encoder/Source/ |
D | astcenc_decompress_symbolic.cpp | 296 vint4 ep1; in decompress_symbolic_block() local 305 ep0, ep1); in decompress_symbolic_block() 314 vint4 color = lerp_color_int(decode_mode, ep0, ep1, weight); in decompress_symbolic_block() 359 vint4 ep1; in compute_symbolic_block_difference_2plane() local 368 ep0, ep1); in compute_symbolic_block_difference_2plane() 375 vint4 colori = lerp_color_int(config.profile, ep0, ep1, weight); in compute_symbolic_block_difference_2plane() 454 vint4 ep1; in compute_symbolic_block_difference_1plane() local 463 ep0, ep1); in compute_symbolic_block_difference_1plane() 470 vint4 colori = lerp_color_int(config.profile, ep0, ep1, in compute_symbolic_block_difference_1plane() 543 vint4 ep1; in compute_symbolic_block_difference_1plane_1partition() local [all …]
|
D | astcenc_pick_best_endpoint_format.cpp | 353 vfloat4 ep1 = ep.endpt1[partition_index]; in compute_color_error_for_every_integer_count_and_quant_level() local 355 float ep1_min = hmin_rgb_s(ep1); in compute_color_error_for_every_integer_count_and_quant_level() 367 vfloat4 ep1_range_error_high = max(ep1 - offset, 0.0f); in compute_color_error_for_every_integer_count_and_quant_level() 370 vfloat4 ep1_range_error_low = min(ep1, 0.0f); in compute_color_error_for_every_integer_count_and_quant_level() 388 if (ep1.lane<0>() > ep1.lane<1>() && ep1.lane<0>() > ep1.lane<2>()) in compute_color_error_for_every_integer_count_and_quant_level() 390 af = ep1.lane<0>(); in compute_color_error_for_every_integer_count_and_quant_level() 391 cf = ep1.lane<0>() - ep0.lane<0>(); in compute_color_error_for_every_integer_count_and_quant_level() 393 else if (ep1.lane<1>() > ep1.lane<2>()) in compute_color_error_for_every_integer_count_and_quant_level() 395 af = ep1.lane<1>(); in compute_color_error_for_every_integer_count_and_quant_level() 396 cf = ep1.lane<1>() - ep0.lane<1>(); in compute_color_error_for_every_integer_count_and_quant_level() [all …]
|
D | astcenc_ideal_endpoints_and_weights.cpp | 329 vfloat4 ep1 = select(blk.data_max, vfloat4(highvalue.lane<0>()), comp1_mask); in compute_ideal_colors_and_weights_2_comp() local 332 ei.ep.endpt1[i] = select(ep1, vfloat4(highvalue.lane<1>()), comp2_mask); in compute_ideal_colors_and_weights_2_comp() 475 vfloat4 ep1 = line.a + line.b * highparam; in compute_ideal_colors_and_weights_3_comp() local 485 ei.ep.endpt1[i] = vfloat4(bmax.lane<0>(), ep1.lane<0>(), ep1.lane<1>(), ep1.lane<2>()); in compute_ideal_colors_and_weights_3_comp() 489 ei.ep.endpt1[i] = vfloat4(ep1.lane<0>(), bmax.lane<1>(), ep1.lane<1>(), ep1.lane<2>()); in compute_ideal_colors_and_weights_3_comp() 493 ei.ep.endpt1[i] = vfloat4(ep1.lane<0>(), ep1.lane<1>(), bmax.lane<2>(), ep1.lane<2>()); in compute_ideal_colors_and_weights_3_comp() 497 ei.ep.endpt1[i] = vfloat4(ep1.lane<0>(), ep1.lane<1>(), ep1.lane<2>(), bmax.lane<3>()); in compute_ideal_colors_and_weights_3_comp() 1333 vfloat4 ep1 = (left_sum * color_vec_y - middle_sum * color_vec_x) * color_rdet1; in recompute_ideal_colors_1plane() local 1336 vmask4 notnan_mask = (ep0 == ep0) & (ep1 == ep1); in recompute_ideal_colors_1plane() 1340 ep.endpt1[i] = select(ep.endpt1[i], ep1, full_mask); in recompute_ideal_colors_1plane() [all …]
|
D | astcenc_color_quantize.cpp | 391 vint4 ep1(r1du, g1du, b1du, 0); in try_quantize_rgb_delta() local 392 bit_transfer_signed(ep1, ep0); in try_quantize_rgb_delta() 393 if (hadd_rgb_s(ep1) < 0) in try_quantize_rgb_delta() 399 ep0 = ep0 + ep1; in try_quantize_rgb_delta() 517 vint4 ep1(r1du, g1du, b1du, 0); in try_quantize_rgb_delta_blue_contract() local 518 bit_transfer_signed(ep1, ep0); in try_quantize_rgb_delta_blue_contract() 519 if (hadd_rgb_s(ep1) >= 0) in try_quantize_rgb_delta_blue_contract() 525 ep0 = ep0 + ep1; in try_quantize_rgb_delta_blue_contract()
|
D | astcenc_compress_symbolic.cpp | 774 vfloat4 ep1 = (vfloat4(1.0f) - ei1.ep.endpt0[0]) / (ei1.ep.endpt1[0] - ei1.ep.endpt0[0]); in compress_symbolic_block_for_partition_2planes() local 775 vmask4 use_ep1 = (ep1 > vfloat4(0.5f)) & (ep1 < min_ep1); in compress_symbolic_block_for_partition_2planes() 776 min_ep1 = select(min_ep1, ep1, use_ep1); in compress_symbolic_block_for_partition_2planes()
|
/hardware/google/gfxstream/host/vulkan/emulated_textures/shaders/ |
D | AstcDecompressor.glsl | 469 // Decodes the endpoints and writes them to ep0 and ep1. 474 void decodeEndpoints(ivec4 vA, ivec4 vB, uint mode, out uvec4 ep0, out uvec4 ep1) { 478 ep1 = uvec4(vB.xxx, 255); 485 ep1 = uvec4(uvec3(l1), 255); 491 ep1 = vB.xxxy; 497 ep1 = clamp(vA.xxxy + vB.xxxy, 0, 255); 501 ep1 = uvec4(vA.x, vB.x, vA.y, 255); 502 ep0 = uvec4((ep1.rgb * vB.y) >> 8, 255); 506 ep1 = uvec4(vA.x, vB.x, vA.y, vB.z); 507 ep0 = uvec4((ep1.rgb * vB.y) >> 8, vA.z); [all …]
|
D | AstcNew.comp | 469 // Decodes the endpoints and writes them to ep0 and ep1. 474 void decodeEndpoints(ivec4 vA, ivec4 vB, uint mode, out uvec4 ep0, out uvec4 ep1) { 478 ep1 = uvec4(vB.xxx, 255); 485 ep1 = uvec4(uvec3(l1), 255); 491 ep1 = vB.xxxy; 497 ep1 = clamp(vA.xxxy + vB.xxxy, 0, 255); 501 ep1 = uvec4(vA.x, vB.x, vA.y, 255); 502 ep0 = uvec4((ep1.rgb * vB.y) >> 8, 255); 506 ep1 = uvec4(vA.x, vB.x, vA.y, vB.z); 507 ep0 = uvec4((ep1.rgb * vB.y) >> 8, vA.z); [all …]
|