Home
last modified time | relevance | path

Searched refs:texel_count (Results 1 - 17 of 17) sorted by relevance

/third_party/astc-encoder/Source/
H A Dastcenc_averages_and_directions.cpp53 unsigned int texel_count = blk.texel_count; in compute_partition_averages_rgb() local
54 promise(texel_count > 0); in compute_partition_averages_rgb()
67 for (unsigned int i = 0; i < texel_count; i += ASTCENC_SIMD_WIDTH) in compute_partition_averages_rgb()
71 vmask lane_mask = lane_id < vint(texel_count); in compute_partition_averages_rgb()
86 vfloat4 block_total = blk.data_mean.swz<0, 1, 2>() * static_cast<float>(blk.texel_count); in compute_partition_averages_rgb()
103 for (unsigned int i = 0; i < texel_count; i += ASTCENC_SIMD_WIDTH) in compute_partition_averages_rgb()
107 vmask lane_mask = lane_id < vint(texel_count); in compute_partition_averages_rgb()
126 vfloat4 block_total = blk.data_mean.swz<0, 1, 2>() * static_cast<float>(blk.texel_count); in compute_partition_averages_rgb()
148 for (unsigned int i = 0; i < texel_count; in compute_partition_averages_rgb()
583 unsigned int texel_count = pi.partition_texel_count[partition]; compute_avgs_and_dirs_3_comp_rgb() local
673 unsigned int texel_count = pt.partition_texel_count[partition]; compute_avgs_and_dirs_2_comp() local
745 unsigned int texel_count = pi.partition_texel_count[partition]; compute_error_squared_rgba() local
860 unsigned int texel_count = pi.partition_texel_count[partition]; global() local
[all...]
H A Dastcenc_find_best_partitioning.cpp56 * @param texel_count The number of texels in the block.
62 unsigned int texel_count, in kmeans_init()
66 promise(texel_count > 0); in kmeans_init()
73 unsigned int sample = 145897 % texel_count; in kmeans_init()
80 for (unsigned int i = 0; i < texel_count; i++) in kmeans_init()
104 for (sample = 0; sample < texel_count; sample++) in kmeans_init()
114 sample = astc::min(sample, texel_count - 1); in kmeans_init()
125 for (unsigned int i = 0; i < texel_count; i++) in kmeans_init()
141 * @param texel_count The number of texels in the block.
148 unsigned int texel_count, in kmeans_assign()
60 kmeans_init( const image_block& blk, unsigned int texel_count, unsigned int partition_count, vfloat4 cluster_centers[BLOCK_MAX_PARTITIONS] ) kmeans_init() argument
146 kmeans_assign( const image_block& blk, unsigned int texel_count, unsigned int partition_count, const vfloat4 cluster_centers[BLOCK_MAX_PARTITIONS], uint8_t partition_of_texel[BLOCK_MAX_TEXELS] ) kmeans_assign() argument
210 kmeans_update( const image_block& blk, unsigned int texel_count, unsigned int partition_count, vfloat4 cluster_centers[BLOCK_MAX_PARTITIONS], const uint8_t partition_of_texel[BLOCK_MAX_TEXELS] ) kmeans_update() argument
[all...]
H A Dastcenc_ideal_endpoints_and_weights.cpp117 unsigned int texel_count = blk.texel_count; in compute_ideal_colors_and_weights_1_comp() local
118 promise(texel_count > 0); in compute_ideal_colors_and_weights_1_comp()
198 unsigned int texel_count_simd = round_up_to_simd_multiple_vla(texel_count); in compute_ideal_colors_and_weights_1_comp()
199 for (unsigned int i = texel_count; i < texel_count_simd; i++) in compute_ideal_colors_and_weights_1_comp()
228 unsigned int texel_count = blk.texel_count;
229 promise(texel_count > 0);
336 unsigned int texel_count_simd = round_up_to_simd_multiple_vla(texel_count);
337 for (unsigned int i = texel_count;
[all...]
H A Dastcenc_decompress_symbolic.cpp109 for (unsigned int i = 0; i < bsd.texel_count; i += ASTCENC_SIMD_WIDTH) in unpack_weights()
142 for (unsigned int i = 0; i < bsd.texel_count; i += ASTCENC_SIMD_WIDTH) in unpack_weights()
202 for (unsigned int i = 0; i < bsd.texel_count; i++) in decompress_symbolic_block()
255 for (unsigned int i = 0; i < bsd.texel_count; i++) in decompress_symbolic_block()
305 int texel_count = pi.partition_texel_count[i]; in decompress_symbolic_block() local
306 for (int j = 0; j < texel_count; j++) in decompress_symbolic_block()
368 unsigned int texel_count = bsd.texel_count; in compute_symbolic_block_difference_2plane() local
369 for (unsigned int i = 0; i < texel_count; i++) in compute_symbolic_block_difference_2plane()
464 unsigned int texel_count in compute_symbolic_block_difference_1plane() local
558 unsigned int texel_count = bsd.texel_count; compute_symbolic_block_difference_1plane_1partition() local
[all...]
H A Dastcenc_partition_tables.cpp34 * @param texel_count The number of texels in the block.
39 unsigned int texel_count, in generate_canonical_partitioning()
60 for (unsigned int i = 0; i < texel_count; i++) in generate_canonical_partitioning()
283 int texels_per_block = bsd.texel_count; in generate_one_partition_info_entry()
371 unsigned int texels_to_process = astc::min(bsd.texel_count, BLOCK_MAX_KMEANS_TEXELS); in generate_one_partition_info_entry()
423 generate_canonical_partitioning(bsd.texel_count, ptab[next_index].partition_of_texel, canonical_patterns + next_index * BIT_PATTERN_WORDS);
38 generate_canonical_partitioning( unsigned int texel_count, const uint8_t* partition_of_texel, uint64_t bit_pattern[BIT_PATTERN_WORDS] ) generate_canonical_partitioning() argument
H A Dastcenc_block_sizes.cpp417 di.texel_count = static_cast<uint8_t>(texels_per_block); in init_decimation_info_2d()
673 di.texel_count = static_cast<uint8_t>(texels_per_block); in init_decimation_info_3d()
684 * The @c bsd.texel_count is an input and must be populated beforehand.
692 if (bsd.texel_count <= BLOCK_MAX_KMEANS_TEXELS) in assign_kmeans_texels()
694 for (uint8_t i = 0; i < bsd.texel_count; i++) in assign_kmeans_texels()
708 for (uint8_t i = 0; i < bsd.texel_count; i++) in assign_kmeans_texels()
718 texel = texel % bsd.texel_count; in assign_kmeans_texels()
814 bsd.texel_count = static_cast<uint8_t>(x_texels * y_texels); in construct_block_size_descriptor_2d()
1044 bsd.texel_count = static_cast<uint8_t>(x_texels * y_texels * z_texels); in construct_block_size_descriptor_3d()
H A Dastcenc_compress_symbolic.cpp129 promise(bsd.texel_count > 0); in realign_weights_undecimated()
132 for (; texel + ASTCENC_SIMD_WIDTH <= bsd.texel_count; texel += ASTCENC_SIMD_WIDTH) in realign_weights_undecimated()
231 for (; texel < bsd.texel_count; texel++) in realign_weights_undecimated()
336 promise(bsd.texel_count > 0); in realign_weights_undecimated()
337 for (unsigned int texel = 0; texel < bsd.texel_count; texel++) in realign_weights_undecimated()
418 assert(weight_count != bsd.texel_count); in realign_weights_decimated()
870 if (di.weight_count != bsd.texel_count) in compress_symbolic_block_for_partition_1plane()
1208 if (di.weight_count != bsd.texel_count) in compress_symbolic_block_for_partition_2planes()
1456 float error_weight_sum = hadd_s(blk.channel_weight) * bsd.texel_count; in compress_block()
1462 lowest_correl = prepare_block_statistics(bsd.texel_count, bl in compress_block()
[all...]
H A Dastcenc_entry.cpp848 blk.texel_count = static_cast<uint8_t>(block_x * block_y * block_z); in compress_image()
1128 size_t texel_count = image.dim_x * image.dim_y * image.dim_z; in astcenc_compress_image()
1129 ctx->input_alpha_averages = new float[texel_count]; in astcenc_compress_image()
1230 blk.texel_count = static_cast<uint8_t>(block_x * block_y * block_z); in astcenc_decompress_image()
1321 info->texel_count = bsd.texel_count; in astcenc_get_block_info()
1391 for (unsigned int i = 0; i < bsd.texel_count; i++) in astcenc_get_block_info()
1401 for (unsigned int i = 0; i < bsd.texel_count; i++) in astcenc_get_block_info()
H A Dastcenc.h675 unsigned int texel_count; member
H A Dastcenc_pick_best_endpoint_format.cpp88 unsigned int texel_count = pi.partition_texel_count[partition_index]; in compute_error_squared_rgb_single_partition() local
90 promise(texel_count > 0); in compute_error_squared_rgb_single_partition()
138 for (; i + ASTCENC_SIMD_WIDTH <= texel_count; i += ASTCENC_SIMD_WIDTH) in compute_error_squared_rgb_single_partition()
212 if (i < texel_count) in compute_error_squared_rgb_single_partition()
217 vmask mask = lane_ids < vint(texel_count); in compute_error_squared_rgb_single_partition()
H A Dastcenc_internal.h361 uint8_t texel_count; member
554 uint8_t texel_count; member
769 uint8_t texel_count; member
H A Dastcenc_image.cpp177 vfloat4 data_mean_scale(1.0f / static_cast<float>(bsd.texel_count)); in load_image_block()
329 blk.data_mean = data_mean / static_cast<float>(bsd.texel_count); in load_image_block_fast_ldr()
H A Dastcenccli_toplevel.cpp1661 float texel_count = static_cast<float>(info.block_x * info.block_y);
1663 density = weight_count / texel_count;
/third_party/skia/third_party/externals/swiftshader/third_party/astc-encoder/Source/
H A Dastc_partition_tables.cpp30 int texel_count, in gen_canonicalized_partition_table()
43 for (i = 0; i < texel_count; i++) in gen_canonicalized_partition_table()
78 int texel_count, in partition_table_zap_equal_elements()
88 gen_canonicalized_partition_table(texel_count, pi[i].partition_of_texel, canonicalizeds + i * 7); in partition_table_zap_equal_elements()
231 int texels_per_block = bsd->texel_count; in generate_one_partition_table()
284 partition_table_zap_equal_elements(bsd->texel_count, par_tab2); in init_partition_tables()
285 partition_table_zap_equal_elements(bsd->texel_count, par_tab3); in init_partition_tables()
286 partition_table_zap_equal_elements(bsd->texel_count, par_tab4); in init_partition_tables()
29 gen_canonicalized_partition_table( int texel_count, const uint8_t* partition_table, uint64_t canonicalized[7] ) gen_canonicalized_partition_table() argument
77 partition_table_zap_equal_elements( int texel_count, partition_info* pi ) partition_table_zap_equal_elements() argument
H A Dastc_decompress_symbolic.cpp105 for (i = 0; i < bsd->texel_count; i++) in decompress_symbolic_block()
118 for (i = 0; i < bsd->texel_count; i++) in decompress_symbolic_block()
130 imageblock_initialize_work_from_orig(blk, bsd->texel_count); in decompress_symbolic_block()
185 for (i = 0; i < bsd->texel_count; i++) in decompress_symbolic_block()
196 imageblock_initialize_work_from_orig(blk, bsd->texel_count); in decompress_symbolic_block()
255 for (i = 0; i < bsd->texel_count; i++) in decompress_symbolic_block()
259 for (i = 0; i < bsd->texel_count; i++) in decompress_symbolic_block()
266 for (i = 0; i < bsd->texel_count; i++) in decompress_symbolic_block()
287 imageblock_initialize_orig_from_work(blk, bsd->texel_count); in decompress_symbolic_block()
H A Dastc_codec_internals.h102 int texel_count; member
H A Dastc_block_sizes2.cpp485 bsd->texel_count = xdim * ydim; in construct_block_size_descriptor_2d()
564 bsd->texel_count = xdim * ydim * zdim; in construct_block_size_descriptor_3d()

Completed in 21 milliseconds