Home | History | Annotate | Download | only in enc

Lines Matching refs:clusters

662   int* const clusters = WebPSafeMalloc(image_histo_size, sizeof(*clusters));
666 if (!HistoQueueInit(&histo_queue, image_histo_size) || clusters == NULL) {
671 // Initialize clusters indexes.
672 clusters[i] = i;
689 if (clusters[i] >= idx2) {
690 clusters[i] = clusters[i + 1];
716 if (clusters[i] != idx1) {
717 PreparePair(histograms, idx1, clusters[i],
725 if (i != clusters[i]) { // swap the two histograms
726 HistogramSwap(&histograms[i], &histograms[clusters[i]]);
734 WebPSafeFree(clusters);