Lines Matching defs:blk
102 * @param blk The image block color data to compress.
108 const image_block& blk,
117 unsigned int texel_count = blk.texel_count;
127 error_weight = blk.channel_weight.lane<0>();
128 data_vr = blk.data_r;
131 error_weight = blk.channel_weight.lane<1>();
132 data_vr = blk.data_g;
135 error_weight = blk.channel_weight.lane<2>();
136 data_vr = blk.data_b;
140 error_weight = blk.channel_weight.lane<3>();
141 data_vr = blk.data_a;
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);
211 * @param blk The image block color data to compress.
218 const image_block& blk,
228 unsigned int texel_count = blk.texel_count;
239 error_weight = hadd_s(blk.channel_weight.swz<0, 1>()) / 2.0f;
241 data_vr = blk.data_r;
242 data_vg = blk.data_g;
246 error_weight = hadd_s(blk.channel_weight.swz<0, 2>()) / 2.0f;
248 data_vr = blk.data_r;
249 data_vg = blk.data_b;
255 error_weight = hadd_s(blk.channel_weight.swz<1, 2>()) / 2.0f;
257 data_vr = blk.data_g;
258 data_vg = blk.data_b;
261 compute_avgs_and_dirs_2_comp(pi, blk, component1, component2, pms);
328 vfloat4 ep0 = select(blk.data_min, vfloat4(lowvalue.lane<0>()), comp1_mask);
329 vfloat4 ep1 = select(blk.data_max, vfloat4(highvalue.lane<0>()), comp1_mask);
349 * @param blk The image block color data to compress.
355 const image_block& blk,
364 unsigned int texel_count = blk.texel_count;
367 partition_metrics *pms = reinterpret_cast<partition_metrics *>(&blk.pms[0]);
375 error_weight = hadd_s(blk.channel_weight.swz<1, 2, 3>());
376 data_vr = blk.data_g;
377 data_vg = blk.data_b;
378 data_vb = blk.data_a;
382 error_weight = hadd_s(blk.channel_weight.swz<0, 2, 3>());
383 data_vr = blk.data_r;
384 data_vg = blk.data_b;
385 data_vb = blk.data_a;
389 error_weight = hadd_s(blk.channel_weight.swz<0, 1, 3>());
390 data_vr = blk.data_r;
391 data_vg = blk.data_g;
392 data_vb = blk.data_a;
398 error_weight = hadd_s(blk.channel_weight.swz<0, 1, 2>());
399 data_vr = blk.data_r;
400 data_vg = blk.data_g;
401 data_vb = blk.data_b;
408 compute_avgs_and_dirs_3_comp_rgb(pi, blk, pms);
412 compute_avgs_and_dirs_3_comp(pi, blk, omitted_component, pms);
522 vfloat4 bmin = blk.data_min;
523 vfloat4 bmax = blk.data_max;
561 * @param blk The image block color data to compress.
566 const image_block& blk,
570 const float error_weight = hadd_s(blk.channel_weight) / 4.0f;
574 unsigned int texel_count = blk.texel_count;
580 compute_avgs_and_dirs_4_comp(pi, blk, pms);
601 vfloat4 point = blk.texel(tix);
658 const image_block& blk,
662 bool uses_alpha = !blk.is_constant_channel(3);
666 compute_ideal_colors_and_weights_4_comp(blk, pi, ei);
670 compute_ideal_colors_and_weights_3_comp(blk, pi, ei, 3);
677 const image_block& blk,
683 bool uses_alpha = !blk.is_constant_channel(3);
691 compute_ideal_colors_and_weights_3_comp(blk, pi, ei1, 0);
695 compute_ideal_colors_and_weights_2_comp(blk, pi, ei1, 1, 2);
697 compute_ideal_colors_and_weights_1_comp(blk, pi, ei2, 0);
703 compute_ideal_colors_and_weights_3_comp(blk, pi, ei1, 1);
707 compute_ideal_colors_and_weights_2_comp(blk, pi, ei1, 0, 2);
709 compute_ideal_colors_and_weights_1_comp(blk, pi, ei2, 1);
715 compute_ideal_colors_and_weights_3_comp(blk, pi, ei1, 2);
719 compute_ideal_colors_and_weights_2_comp(blk, pi, ei1, 0, 1);
721 compute_ideal_colors_and_weights_1_comp(blk, pi, ei2, 2);
726 compute_ideal_colors_and_weights_3_comp(blk, pi, ei1, 3);
727 compute_ideal_colors_and_weights_1_comp(blk, pi, ei2, 3);
1205 const image_block& blk,
1214 unsigned int total_texel_count = blk.texel_count;
1256 vfloat4 rgba_sum(blk.data_mean * static_cast<float>(blk.texel_count));
1271 rgba_sum += blk.texel(tix);
1275 rgba_sum = rgba_sum * blk.channel_weight;
1276 vfloat4 rgba_weight_sum = max(blk.channel_weight * static_cast<float>(texel_count), 1e-17f);
1296 vfloat4 color_weight = blk.channel_weight;
1302 vfloat4 rgba = blk.texel(tix);
1397 if (blk.rgb_lns[0] || blk.alpha_lns[0])
1428 const image_block& blk,
1439 unsigned int total_texel_count = blk.texel_count;
1501 vfloat4 rgba_weight_sum = max(blk.channel_weight * static_cast<float>(texel_count), 1e-17f);
1502 vfloat4 scale_dir = normalize(blk.data_mean.swz<0, 1, 2>());
1529 vfloat4 color_weight = blk.channel_weight;
1534 vfloat4 rgba = blk.texel(j);
1682 if (blk.rgb_lns[0] || blk.alpha_lns[0])