Home
last modified time | relevance | path

Searched refs:weight_count (Results 1 - 11 of 11) sorted by relevance

/third_party/astc-encoder/Source/
H A Dastcenc_weight_align.cpp88 * @param weight_count The number of (decimated) weights.
94 unsigned int weight_count, in compute_angular_offsets()
99 promise(weight_count > 0); in compute_angular_offsets()
105 for (unsigned int i = 0; i < weight_count; i += ASTCENC_SIMD_WIDTH) in compute_angular_offsets()
121 for (unsigned int j = 0; j < weight_count; j++) in compute_angular_offsets()
141 * @param weight_count The number of (decimated) weights.
155 unsigned int weight_count, in compute_lowest_and_highest_weight()
166 promise(weight_count > 0); in compute_lowest_and_highest_weight()
178 for (unsigned int j = 1; j < weight_count; j++) in compute_lowest_and_highest_weight()
209 for (unsigned int j = 0; j < weight_count; in compute_lowest_and_highest_weight()
93 compute_angular_offsets( unsigned int weight_count, const float* dec_weight_ideal_value, unsigned int max_angular_steps, float* offsets ) compute_angular_offsets() argument
153 compute_lowest_and_highest_weight( QualityProfile privateProfile, unsigned int weight_count, const float* dec_weight_ideal_value, unsigned int max_angular_steps, unsigned int max_quant_steps, const float* offsets, float* lowest_weight, int* weight_span, float* error, float* cut_low_weight_error, float* cut_high_weight_error ) compute_lowest_and_highest_weight() argument
246 compute_lowest_and_highest_weight( QualityProfile privateProfile, unsigned int weight_count, const float* dec_weight_ideal_value, unsigned int max_angular_steps, unsigned int max_quant_steps, const float* offsets, float* lowest_weight, int* weight_span, float* error, float* cut_low_weight_error, float* cut_high_weight_error ) compute_lowest_and_highest_weight() argument
332 compute_angular_endpoints_for_quant_levels( QualityProfile privateProfile, unsigned int weight_count, const float* dec_weight_ideal_value, unsigned int max_quant_level, float low_value[TUNE_MAX_ANGULAR_QUANT + 1], float high_value[TUNE_MAX_ANGULAR_QUANT + 1] ) compute_angular_endpoints_for_quant_levels() argument
460 unsigned int weight_count = bsd.get_decimation_info(i).weight_count; compute_angular_endpoints_1plane() local
531 unsigned int weight_count = bsd.get_decimation_info(i).weight_count; compute_angular_endpoints_2planes() local
[all...]
H A Dastcenc_symbolic_physical.cpp156 int weight_count = di.weight_count; in symbolic_to_physical() local
166 for (int i = 0; i < weight_count; i++) in symbolic_to_physical()
191 int real_weight_count = is_dual_plane ? 2 * weight_count : weight_count; in symbolic_to_physical()
198 for (int i = 0; i < weight_count; i++) in symbolic_to_physical()
213 for (int i = 0; i < weight_count; i++) in symbolic_to_physical()
407 int weight_count = di.weight_count; in physical_to_symbolic() local
408 promise(weight_count > in physical_to_symbolic()
[all...]
H A Dastcenc_block_sizes.cpp129 unsigned int weight_count = x_weights * y_weights * (D + 1); in decode_block_mode_2d() local
133 weight_bits = get_ise_sequence_bitcount(weight_count, static_cast<quant_method>(quant_mode)); in decode_block_mode_2d()
134 return (weight_count <= BLOCK_MAX_WEIGHTS && in decode_block_mode_2d()
232 unsigned int weight_count = x_weights * y_weights * z_weights * (D + 1); in decode_block_mode_3d() local
236 weight_bits = get_ise_sequence_bitcount(weight_count, static_cast<quant_method>(quant_mode)); in decode_block_mode_3d()
237 return (weight_count <= BLOCK_MAX_WEIGHTS && in decode_block_mode_3d()
418 di.weight_count = static_cast<uint8_t>(weights_per_block); in init_decimation_info_2d()
674 di.weight_count = static_cast<uint8_t>(weights_per_block); in init_decimation_info_3d()
747 unsigned int weight_count = x_weights * y_weights; in construct_dt_entry_2d() local
748 assert(weight_count < in construct_dt_entry_2d()
1058 unsigned int weight_count = x_weights * y_weights * z_weights; construct_block_size_descriptor_3d() local
[all...]
H A Dastcenc_ideal_endpoints_and_weights.cpp896 unsigned int weight_count = di.weight_count;
897 bool is_direct = texel_count == weight_count;
899 promise(weight_count > 0);
904 unsigned int prev_weight_count_simd = round_down_to_simd_multiple_vla(weight_count - 1);
929 for (unsigned int i = 0; i < weight_count; i += ASTCENC_SIMD_WIDTH)
988 for (unsigned int i = 0; i < weight_count; i += ASTCENC_SIMD_WIDTH)
1042 int weight_count = di.weight_count;
1043 promise(weight_count >
[all...]
H A Dastcenc_compress_symbolic.cpp417 unsigned int weight_count = di.weight_count; in realign_weights_decimated() local
418 assert(weight_count != bsd.texel_count); in realign_weights_decimated()
433 promise(weight_count > 0); in realign_weights_decimated()
463 for (unsigned int we_idx = 0; we_idx < weight_count; we_idx += ASTCENC_SIMD_WIDTH) in realign_weights_decimated()
471 for (unsigned int we_idx = 0; we_idx < weight_count; we_idx++) in realign_weights_decimated()
729 promise(di.weight_count > 0); in compress_symbolic_block_for_partition_1plane()
745 for (unsigned int j = 0; j < di.weight_count; j++) in compress_symbolic_block_for_partition_1plane()
870 if (di.weight_count != bsd.texel_count) in compress_symbolic_block_for_partition_1plane()
1119 promise(di.weight_count > in compress_symbolic_block_for_partition_2planes()
[all...]
H A Dastcenc_decompress_symbolic.cpp112 vint weight_count(di.texel_weight_count + i); in unpack_weights()
113 int max_weight_count = hmax(weight_count).lane<0>(); in unpack_weights()
147 vint weight_count(di.texel_weight_count + i); in unpack_weights()
148 int max_weight_count = hmax(weight_count).lane<0>(); in unpack_weights()
H A Dastcenc_internal.h367 uint8_t weight_count; member
H A Dastcenccli_toplevel.cpp1662 float weight_count = static_cast<float>(info.weight_x * info.weight_y);
1663 density = weight_count / texel_count;
/third_party/skia/third_party/externals/swiftshader/third_party/astc-encoder/Source/
H A Dastc_symbolic_physical.cpp121 int weight_count = ixtab2[bsd->block_modes[block_mode].decimation_mode]->num_weights; in physical_to_symbolic() local
125 int real_weight_count = is_dual_plane ? 2 * weight_count : weight_count; in physical_to_symbolic()
144 for (i = 0; i < weight_count; i++) in physical_to_symbolic()
152 decode_ise(weight_quantization_method, weight_count, bswapped, res->plane1_weights, 0); in physical_to_symbolic()
H A Dastc_block_sizes2.cpp126 int weight_count = N * M * (D + 1); in decode_block_mode_2d() local
129 int weightbits = compute_ise_bitcount(weight_count, (quantization_method) qmode); in decode_block_mode_2d()
130 if (weight_count > MAX_WEIGHTS_PER_BLOCK || weightbits < MIN_WEIGHT_BITS_PER_BLOCK || weightbits > MAX_WEIGHT_BITS_PER_BLOCK) in decode_block_mode_2d()
215 int weight_count = N * M * Q * (D + 1); in decode_block_mode_3d() local
218 int weightbits = compute_ise_bitcount(weight_count, (quantization_method) qmode); in decode_block_mode_3d()
219 if (weight_count > MAX_WEIGHTS_PER_BLOCK || in decode_block_mode_3d()
H A Dastc_decompress_symbolic.cpp236 int weight_count = it->num_weights; in decompress_symbolic_block() local
240 for (i = 0; i < weight_count; i++) in decompress_symbolic_block()
247 for (i = 0; i < weight_count; i++) in decompress_symbolic_block()

Completed in 14 milliseconds