Lines Matching refs:partition

28  * @brief Compute the average RGB color of each partition.
30 * The algorithm here uses a vectorized sequential scan and per-partition
34 * the last partition can be computed given that we know the block-wide average
44 * @param[out] averages The output averages. Unused partition indices will
56 // For 1 partition just use the precomputed mean
61 // For 2 partitions scan results for partition 0, compute partition 1
97 // For 3 partitions scan results for partition 0/1, compute partition 2
144 // For 4 partitions scan results for partition 0/1/2, compute partition 3
199 * @brief Compute the average RGBA color of each partition.
201 * The algorithm here uses a vectorized sequential scan and per-partition
205 * the last partition can be computed given that we know the block-wide average
215 * @param[out] averages The output averages. Unused partition indices will
227 // For 1 partition just use the precomputed mean
232 // For 2 partitions scan results for partition 0, compute partition 1
272 // For 3 partitions scan results for partition 0/1, compute partition 2
325 // For 4 partitions scan results for partition 0/1/2, compute partition 3
400 for (int partition = 0; partition < partition_count; partition++)
402 const uint8_t *texel_indexes = pi.texels_of_partition[partition];
403 unsigned int texel_count = pi.partition_texel_count[partition];
406 vfloat4 average = partition_averages[partition];
407 pm[partition].avg = average;
454 pm[partition].dir = best_vector;
515 for (unsigned int partition = 0; partition < partition_count; partition++)
517 const uint8_t *texel_indexes = pi.texels_of_partition[partition];
518 unsigned int texel_count = pi.partition_texel_count[partition];
521 vfloat4 average = partition_averages[partition];
522 pm[partition].avg = average;
563 pm[partition].dir = best_vector;
580 for (unsigned int partition = 0; partition < partition_count; partition++)
582 const uint8_t *texel_indexes = pi.texels_of_partition[partition];
583 unsigned int texel_count = pi.partition_texel_count[partition];
586 vfloat4 average = partition_averages[partition];
587 pm[partition].avg = average;
626 pm[partition].dir = best_vector;
670 for (unsigned int partition = 0; partition < partition_count; partition++)
672 const uint8_t *texel_indexes = pt.texels_of_partition[partition];
673 unsigned int texel_count = pt.partition_texel_count[partition];
676 // Only compute a partition mean if more than one partition
689 pm[partition].avg = average;
718 pm[partition].dir = best_vector;
738 for (unsigned int partition = 0; partition < partition_count; partition++)
740 const uint8_t *texel_indexes = pi.texels_of_partition[partition];
742 processed_line4 l_uncor = uncor_plines[partition];
743 processed_line4 l_samec = samec_plines[partition];
745 unsigned int texel_count = pi.partition_texel_count[partition];
835 line_lengths[partition] = astc::max(uncor_linelen, 1e-7f);
856 for (unsigned int partition = 0; partition < partition_count; partition++)
858 partition_lines3& pl = plines[partition];
859 const uint8_t *texel_indexes = pi.texels_of_partition[partition];
860 unsigned int texel_count = pi.partition_texel_count[partition];