Lines Matching defs:ei
104 * @param[out] ei The computed ideal endpoints and weights.
110 endpoints_and_weights& ei,
114 ei.ep.partition_count = partition_count;
188 ei.weights[tix] = value;
189 ei.weight_error_scale[tix] = length_squared * error_weight;
190 assert(!astc::isnan(ei.weight_error_scale[tix]));
193 ei.ep.endpt0[i] = select(blk.data_min, vfloat4(lowvalue), sep_mask);
194 ei.ep.endpt1[i] = select(blk.data_max, vfloat4(highvalue), sep_mask);
201 ei.weights[i] = 0.0f;
202 ei.weight_error_scale[i] = 0.0f;
205 ei.is_constant_weight_error_scale = is_constant_wes;
213 * @param[out] ei The computed ideal endpoints and weights.
220 endpoints_and_weights& ei,
225 ei.ep.partition_count = partition_count;
287 ei.weights[tix] = param;
317 float idx = (ei.weights[tix] - lowparam) * scale;
320 ei.weights[tix] = idx;
321 ei.weight_error_scale[tix] = length_squared * error_weight;
322 assert(!astc::isnan(ei.weight_error_scale[tix]));
331 ei.ep.endpt0[i] = select(ep0, vfloat4(lowvalue.lane<1>()), comp2_mask);
332 ei.ep.endpt1[i] = select(ep1, vfloat4(highvalue.lane<1>()), comp2_mask);
339 ei.weights[i] = 0.0f;
340 ei.weight_error_scale[i] = 0.0f;
343 ei.is_constant_weight_error_scale = is_constant_wes;
351 * @param[out] ei The computed ideal endpoints and weights.
357 endpoints_and_weights& ei,
361 ei.ep.partition_count = partition_count;
463 ei.weights[tix0] = param0;
464 ei.weights[tix1] = param1;
465 ei.weights[tix2] = param2;
466 ei.weights[tix3] = param3;
481 ei.weights[tix] = param;
511 float idx = (ei.weights[tix] - lowparam) * scale;
514 ei.weights[tix] = idx;
515 ei.weight_error_scale[tix] = length_squared * error_weight;
516 assert(!astc::isnan(ei.weight_error_scale[tix]));
529 ei.ep.endpt0[i] = vfloat4(bmin.lane<0>(), ep0.lane<0>(), ep0.lane<1>(), ep0.lane<2>());
530 ei.ep.endpt1[i] = vfloat4(bmax.lane<0>(), ep1.lane<0>(), ep1.lane<1>(), ep1.lane<2>());
533 ei.ep.endpt0[i] = vfloat4(ep0.lane<0>(), bmin.lane<1>(), ep0.lane<1>(), ep0.lane<2>());
534 ei.ep.endpt1[i] = vfloat4(ep1.lane<0>(), bmax.lane<1>(), ep1.lane<1>(), ep1.lane<2>());
537 ei.ep.endpt0[i] = vfloat4(ep0.lane<0>(), ep0.lane<1>(), bmin.lane<2>(), ep0.lane<2>());
538 ei.ep.endpt1[i] = vfloat4(ep1.lane<0>(), ep1.lane<1>(), bmax.lane<2>(), ep1.lane<2>());
541 ei.ep.endpt0[i] = vfloat4(ep0.lane<0>(), ep0.lane<1>(), ep0.lane<2>(), bmin.lane<3>());
542 ei.ep.endpt1[i] = vfloat4(ep1.lane<0>(), ep1.lane<1>(), ep1.lane<2>(), bmax.lane<3>());
551 ei.weights[i] = 0.0f;
552 ei.weight_error_scale[i] = 0.0f;
555 ei.is_constant_weight_error_scale = is_constant_wes;
563 * @param[out] ei The computed ideal endpoints and weights.
568 endpoints_and_weights& ei
603 ei.weights[tix] = param;
630 ei.ep.endpt0[i] = line.a + line.b * lowparam;
631 ei.ep.endpt1[i] = line.a + line.b * highparam;
636 float idx = (ei.weights[tix] - lowparam) * scale;
639 ei.weights[tix] = idx;
640 ei.weight_error_scale[tix] = length_squared * error_weight;
641 assert(!astc::isnan(ei.weight_error_scale[tix]));
649 ei.weights[i] = 0.0f;
650 ei.weight_error_scale[i] = 0.0f;
653 ei.is_constant_weight_error_scale = is_constant_wes;
660 endpoints_and_weights& ei
666 compute_ideal_colors_and_weights_4_comp(blk, pi, ei);
670 compute_ideal_colors_and_weights_3_comp(blk, pi, ei, 3);
891 const endpoints_and_weights& ei,
913 vfloat weight(ei.weights + i);
924 bool constant_wes = ei.is_constant_weight_error_scale;
925 vfloat weight_error_scale(ei.weight_error_scale[0]);
951 weight_error_scale = gatherf(ei.weight_error_scale, texel);
957 initial_weight += gatherf(ei.weights, texel) * contrib_weight;
1013 weight_error_scale = gatherf(ei.weight_error_scale, texel);
1018 vfloat ideal_weight = gatherf(ei.weights, texel);