Lines Matching defs:wb

250  * @param[out] wb          The decimation table init scratch working buffers.
258 dt_init_working_buffers& wb
272 wb.texel_count_of_weight[i] = 0;
277 wb.weight_count_of_texel[i] = 0;
313 wb.grid_weights_of_texel[texel][wb.weight_count_of_texel[texel]] = static_cast<uint8_t>(qweight[i]);
314 wb.weights_of_texel[texel][wb.weight_count_of_texel[texel]] = static_cast<uint8_t>(weight[i]);
315 wb.weight_count_of_texel[texel]++;
316 wb.texels_of_weight[qweight[i]][wb.texel_count_of_weight[qweight[i]]] = static_cast<uint8_t>(texel);
317 wb.texel_weights_of_weight[qweight[i]][wb.texel_count_of_weight[qweight[i]]] = static_cast<uint8_t>(weight[i]);
318 wb.texel_count_of_weight[qweight[i]]++;
319 max_texel_count_of_weight = astc::max(max_texel_count_of_weight, wb.texel_count_of_weight[qweight[i]]);
328 di.texel_weight_count[i] = wb.weight_count_of_texel[i];
331 for (unsigned int j = 0; j < wb.weight_count_of_texel[i]; j++)
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];
339 for (unsigned int j = wb.weight_count_of_texel[i]; j < 4; j++)
351 unsigned int texel_count_wt = wb.texel_count_of_weight[i];
356 uint8_t texel = wb.texels_of_weight[i][j];
360 di.weights_texel_contribs_tr[j][i] = static_cast<float>(wb.texel_weights_of_weight[i][j]);
402 unsigned int last_texel_count_wt = wb.texel_count_of_weight[weights_per_block - 1];
434 @param[out] wb The decimation table init scratch working buffers.
444 dt_init_working_buffers& wb
456 wb.texel_count_of_weight[i] = 0;
461 wb.weight_count_of_texel[i] = 0;
568 wb.grid_weights_of_texel[texel][wb.weight_count_of_texel[texel]] = static_cast<uint8_t>(qweight[i]);
569 wb.weights_of_texel[texel][wb.weight_count_of_texel[texel]] = static_cast<uint8_t>(weight[i]);
570 wb.weight_count_of_texel[texel]++;
571 wb.texels_of_weight[qweight[i]][wb.texel_count_of_weight[qweight[i]]] = static_cast<uint8_t>(texel);
572 wb.texel_weights_of_weight[qweight[i]][wb.texel_count_of_weight[qweight[i]]] = static_cast<uint8_t>(weight[i]);
573 wb.texel_count_of_weight[qweight[i]]++;
574 max_texel_count_of_weight = astc::max(max_texel_count_of_weight, wb.texel_count_of_weight[qweight[i]]);
584 di.texel_weight_count[i] = wb.weight_count_of_texel[i];
595 for (unsigned int j = 0; j < wb.weight_count_of_texel[i]; j++)
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];
607 unsigned int texel_count_wt = wb.texel_count_of_weight[i];
612 unsigned int texel = wb.texels_of_weight[i][j];
616 di.weights_texel_contribs_tr[j][i] = static_cast<float>(wb.texel_weights_of_weight[i][j]);
658 int last_texel_count_wt = wb.texel_count_of_weight[weights_per_block - 1];
735 * @param wb The decimation table init scratch working buffers.
744 dt_init_working_buffers& wb,
753 init_decimation_info_2d(x_texels, y_texels, x_weights, y_weights, di, wb);
809 dt_init_working_buffers* wb = new dt_init_working_buffers;
871 delete wb;
944 construct_dt_entry_2d(x_texels, y_texels, x_weights, y_weights, bsd, *wb, packed_dm_idx);
1010 delete wb;
1039 dt_init_working_buffers* wb = new dt_init_working_buffers;
1066 init_decimation_info_3d(x_texels, y_texels, z_texels, x_weights, y_weights, z_weights, di, *wb);
1195 delete wb;