Lines Matching refs:weights

21  * @brief Functions for computing color endpoints and texel weights.
33 * @param weights The decimated weight values to use.
40 const float* weights,
49 // Load the bilinear filter weights from the decimated grid
50 vfloat weight_val0 = gatherf(weights, weight_idx0);
51 vfloat weight_val1 = gatherf(weights, weight_idx1);
52 vfloat weight_val2 = gatherf(weights, weight_idx2);
53 vfloat weight_val3 = gatherf(weights, weight_idx3);
69 * This is specialized version which computes only two weights per texel for
73 * @param weights The decimated weight values to use.
80 const float* weights,
87 // Load the bilinear filter weights from the decimated grid
88 vfloat weight_val0 = gatherf(weights, weight_idx0);
89 vfloat weight_val1 = gatherf(weights, weight_idx1);
100 * @brief Compute the ideal endpoints and weights for 1 color component.
104 * @param[out] ei The computed ideal endpoints and weights.
188 ei.weights[tix] = value;
201 ei.weights[i] = 0.0f;
209 * @brief Compute the ideal endpoints and weights for 2 color components.
213 * @param[out] ei The computed ideal endpoints and weights.
287 ei.weights[tix] = param;
317 float idx = (ei.weights[tix] - lowparam) * scale;
320 ei.weights[tix] = idx;
339 ei.weights[i] = 0.0f;
347 * @brief Compute the ideal endpoints and weights for 3 color components.
351 * @param[out] ei The computed ideal endpoints and weights.
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;
551 ei.weights[i] = 0.0f;
559 * @brief Compute the ideal endpoints and weights for 4 color components.
563 * @param[out] ei The computed ideal endpoints and weights.
603 ei.weights[tix] = param;
636 float idx = (ei.weights[tix] - lowparam) * scale;
639 ei.weights[tix] = idx;
649 ei.weights[i] = 0.0f;
688 case 0: // Separate weights for red
700 case 1: // Separate weights for green
712 case 2: // Separate weights for blue
724 default: // Separate weights for alpha
751 vfloat actual_values = loada(eai.weights + i);
767 vfloat actual_values = loada(eai.weights + i);
783 vfloat actual_values = loada(eai.weights + i);
818 vfloat actual_values1 = loada(eai1.weights + i);
827 vfloat actual_values2 = loada(eai2.weights + i);
843 vfloat actual_values1 = loada(eai1.weights + i);
852 vfloat actual_values2 = loada(eai2.weights + i);
868 vfloat actual_values1 = loada(eai1.weights + i);
877 vfloat actual_values2 = loada(eai2.weights + i);
913 vfloat weight(ei.weights + i);
957 initial_weight += gatherf(ei.weights, texel) * contrib_weight;
1018 vfloat ideal_weight = gatherf(ei.weights, texel);
1152 * @param rgba_weight_sum Sum of partition component error weights.
1153 * @param weight_weight_sum Sum of partition component error weights * texel weight.
1154 * @param rgbq_sum Sum of partition component error weights * texel weight * color data.
1155 * @param psum Sum of RGB color weights * texel weight^2.
1347 // If all weights in the partition were equal, then just take average of all colors in
1360 // set of texel weights and pixel colors
1594 // If all weights in the partition were equal, then just take average of all colors in
1610 // set of texel weights and pixel colors
1649 // If all weights in the partition were equal, then just take average of all colors in
1662 // set of texel weights and pixel colors