Lines Matching refs:maximum_colors
417 int num_palette, int maximum_colors, png_const_uint_16p histogram, in png_set_quantize() argument
437 if (num_palette > maximum_colors) in png_set_quantize()
462 for (i = num_palette - 1; i >= maximum_colors; i--) in png_set_quantize()
494 for (i = 0; i < maximum_colors; i++) in png_set_quantize()
496 if ((int)png_ptr->quantize_sort[i] >= maximum_colors) in png_set_quantize()
500 while ((int)png_ptr->quantize_sort[j] >= maximum_colors); in png_set_quantize()
513 for (i = 0; i < maximum_colors; i++) in png_set_quantize()
516 if ((int)png_ptr->quantize_sort[i] >= maximum_colors) in png_set_quantize()
522 while ((int)png_ptr->quantize_sort[j] >= maximum_colors); in png_set_quantize()
536 if ((int)png_ptr->quantize_index[i] >= maximum_colors) in png_set_quantize()
543 for (k = 1, min_k = 0; k < maximum_colors; k++) in png_set_quantize()
609 while (num_new_palette > maximum_colors) in png_set_quantize()
700 if (num_new_palette <= maximum_colors) in png_set_quantize()
703 if (num_new_palette <= maximum_colors) in png_set_quantize()
730 num_palette = maximum_colors; in png_set_quantize()