Lines Matching refs:di

249  * @param[out] di          The decimation info structure to populate.
257 decimation_info& di,
328 di.texel_weight_count[i] = wb.weight_count_of_texel[i];
329 max_texel_weight_count = astc::max(max_texel_weight_count, di.texel_weight_count[i]);
333 di.texel_weight_contribs_int_tr[j][i] = wb.weights_of_texel[i][j];
334 di.texel_weight_contribs_float_tr[j][i] = static_cast<float>(wb.weights_of_texel[i][j]) * (1.0f / WEIGHTS_TEXEL_SUM);
335 di.texel_weights_tr[j][i] = wb.grid_weights_of_texel[i][j];
341 di.texel_weight_contribs_int_tr[j][i] = 0;
342 di.texel_weight_contribs_float_tr[j][i] = 0.0f;
343 di.texel_weights_tr[j][i] = 0;
347 di.max_texel_weight_count = max_texel_weight_count;
352 di.weight_texel_count[i] = static_cast<uint8_t>(texel_count_wt);
359 di.weight_texels_tr[j][i] = texel;
360 di.weights_texel_contribs_tr[j][i] = static_cast<float>(wb.texel_weights_of_weight[i][j]);
363 di.texel_contrib_for_weight[j][i] = 0.0f;
366 uint8_t dttw = di.texel_weights_tr[k][texel];
367 float dttwf = di.texel_weight_contribs_float_tr[k][texel];
370 di.texel_contrib_for_weight[j][i] = di.texel_weight_contribs_float_tr[k][texel];
378 uint8_t last_texel = di.weight_texels_tr[texel_count_wt - 1][i];
381 di.weight_texels_tr[j][i] = last_texel;
382 di.weights_texel_contribs_tr[j][i] = 0.0f;
390 di.texel_weight_count[i] = 0;
394 di.texel_weight_contribs_float_tr[j][i] = 0;
395 di.texel_weights_tr[j][i] = 0;
396 di.texel_weight_contribs_int_tr[j][i] = 0;
403 uint8_t last_texel = di.weight_texels_tr[last_texel_count_wt - 1][weights_per_block - 1];
408 di.weight_texel_count[i] = 0;
412 di.weight_texels_tr[j][i] = last_texel;
413 di.weights_texel_contribs_tr[j][i] = 0.0f;
417 di.texel_count = static_cast<uint8_t>(texels_per_block);
418 di.weight_count = static_cast<uint8_t>(weights_per_block);
419 di.weight_x = static_cast<uint8_t>(x_weights);
420 di.weight_y = static_cast<uint8_t>(y_weights);
421 di.weight_z = 1;
433 * @param[out] di The decimation info structure to populate.
443 decimation_info& di,
584 di.texel_weight_count[i] = wb.weight_count_of_texel[i];
585 max_texel_weight_count = astc::max(max_texel_weight_count, di.texel_weight_count[i]);
590 di.texel_weight_contribs_int_tr[j][i] = 0;
591 di.texel_weight_contribs_float_tr[j][i] = 0.0f;
592 di.texel_weights_tr[j][i] = 0;
597 di.texel_weight_contribs_int_tr[j][i] = wb.weights_of_texel[i][j];
598 di.texel_weight_contribs_float_tr[j][i] = static_cast<float>(wb.weights_of_texel[i][j]) * (1.0f / WEIGHTS_TEXEL_SUM);
599 di.texel_weights_tr[j][i] = wb.grid_weights_of_texel[i][j];
603 di.max_texel_weight_count = max_texel_weight_count;
608 di.weight_texel_count[i] = static_cast<uint8_t>(texel_count_wt);
615 di.weight_texels_tr[j][i] = static_cast<uint8_t>(texel);
616 di.weights_texel_contribs_tr[j][i] = static_cast<float>(wb.texel_weights_of_weight[i][j]);
619 di.texel_contrib_for_weight[j][i] = 0.0f;
622 uint8_t dttw = di.texel_weights_tr[k][texel];
623 float dttwf = di.texel_weight_contribs_float_tr[k][texel];
626 di.texel_contrib_for_weight[j][i] = di.texel_weight_contribs_float_tr[k][texel];
634 uint8_t last_texel = di.weight_texels_tr[texel_count_wt - 1][i];
637 di.weight_texels_tr[j][i] = last_texel;
638 di.weights_texel_contribs_tr[j][i] = 0.0f;
646 di.texel_weight_count[i] = 0;
650 di.texel_weight_contribs_float_tr[j][i] = 0;
651 di.texel_weights_tr[j][i] = 0;
652 di.texel_weight_contribs_int_tr[j][i] = 0;
659 uint8_t last_texel = di.weight_texels_tr[last_texel_count_wt - 1][weights_per_block - 1];
664 di.weight_texel_count[i] = 0;
668 di.weight_texels_tr[j][i] = last_texel;
669 di.weights_texel_contribs_tr[j][i] = 0.0f;
673 di.texel_count = static_cast<uint8_t>(texels_per_block);
674 di.weight_count = static_cast<uint8_t>(weights_per_block);
675 di.weight_x = static_cast<uint8_t>(x_weights);
676 di.weight_y = static_cast<uint8_t>(y_weights);
677 di.weight_z = static_cast<uint8_t>(z_weights);
752 decimation_info& di = bsd.decimation_tables[index];
753 init_decimation_info_2d(x_texels, y_texels, x_weights, y_weights, di, wb);
1064 decimation_info& di = bsd.decimation_tables[decimation_mode_count];
1066 init_decimation_info_3d(x_texels, y_texels, z_texels, x_weights, y_weights, z_weights, di, *wb);