Lines Matching defs:blk

69  * @param      blk           The image block color data to compress.
76 const image_block& blk,
171 vfloat4 orig_color0 = blk.texel(texel);
172 vfloat4 orig_color1 = blk.texel(texel + 1);
173 vfloat4 orig_color2 = blk.texel(texel + 2);
174 vfloat4 orig_color3 = blk.texel(texel + 3);
176 vfloat4 error_weight = blk.channel_weight;
249 vfloat4 orig_color = blk.texel(texel);
250 vfloat4 error_weight = blk.channel_weight;
283 const image_block& blk,
355 vfloat4 orig_color = blk.texel(texel);
356 vfloat4 error_weight = blk.channel_weight;
397 * @param blk The image block color data to compress.
403 const image_block& blk,
513 vfloat4 orig_color = blk.texel(texel);
524 vfloat4 error_weight = blk.channel_weight;
557 * @param blk The image block color data to compress.
569 const image_block& blk,
594 compute_ideal_colors_and_weights_1plane(blk, pi, ei);
710 pi, blk, ei.ep, qwt_bitcounts, qwt_errors,
753 blk, pi, di, workscb.weights,
833 float errorval = compute_difference(config, bsd, workscb, blk);
873 config.profile, bsd, blk, workscb);
878 config.profile, bsd, blk, workscb);
882 float errorval = compute_difference(config, bsd, workscb, blk);
931 * @param blk The image block color data to compress.
941 const image_block& blk,
958 compute_ideal_colors_and_weights_2planes(bsd, blk, plane2_component, ei1, ei2);
1098 pi, blk, epm, qwt_bitcounts, qwt_errors,
1144 blk, bsd, di,
1170 float errorval = compute_symbolic_block_difference_2plane(config, bsd, workscb, blk);
1211 config.profile, bsd, blk, workscb);
1216 config.profile, bsd, blk, workscb);
1220 float errorval = compute_symbolic_block_difference_2plane(config, bsd, workscb, blk);
1268 * @param blk The image block color data to compress.
1274 const image_block& blk
1298 float weight = hadd_s(blk.channel_weight) / 4.0f;
1302 float r = blk.data_r[i];
1303 float g = blk.data_g[i];
1304 float b = blk.data_b[i];
1305 float a = blk.data_a[i];
1368 trace_add_data("min_r", blk.data_min.lane<0>());
1369 trace_add_data("max_r", blk.data_max.lane<0>());
1370 trace_add_data("min_g", blk.data_min.lane<1>());
1371 trace_add_data("max_g", blk.data_max.lane<1>());
1372 trace_add_data("min_b", blk.data_min.lane<2>());
1373 trace_add_data("max_b", blk.data_max.lane<2>());
1374 trace_add_data("min_a", blk.data_min.lane<3>());
1375 trace_add_data("max_a", blk.data_max.lane<3>());
1389 const image_block& blk,
1406 trace_add_data("pos_x", blk.xpos);
1407 trace_add_data("pos_y", blk.ypos);
1408 trace_add_data("pos_z", blk.zpos);
1411 bool block_is_l = blk.is_luminance();
1415 bool block_is_la = blk.is_luminancealpha();
1456 float error_weight_sum = hadd_s(blk.channel_weight) * bsd.texel_count;
1462 lowest_correl = prepare_block_statistics(bsd.texel_count, blk);
1468 if (all(blk.data_min == blk.data_max))
1481 vint4 color_f16 = float_to_float16(blk.origin_texel);
1488 vfloat4 color_f32 = clamp(0.0f, 1.0f, blk.origin_texel) * 65535.0f;
1538 float error_weight_sum = hadd_s(blk.channel_weight) * bsd.texel_count;
1592 ctx.config, bsd, blk, i == 0,
1609 lowest_correl = prepare_block_statistics(bsd.texel_count, blk);
1633 if (blk.grayscale && i != 3)
1639 if (blk.is_constant_channel(i))
1647 ctx.config, bsd, blk, error_threshold * errorval_overshoot,
1675 bsd, blk, partition_count, requested_indices, partition_indices, requested_trials);
1689 ctx.config, bsd, blk, false,
1743 vfloat4 color_f32 = clamp(0.0f, 1.0f, blk.origin_texel) * 65535.0f;
1753 image_block decBlk = blk;
1754 decompress_symbolic_block(ctx.config.profile, bsd, blk.xpos, blk.ypos, blk.zpos, scb, decBlk);
1757 vint4 colorRef = float_to_int_rtn(blk.texel(ii) * 255.0f / 65535.0f);