Lines Matching refs:num_new_palette
540 int num_new_palette;
562 num_new_palette = num_palette;
574 while (num_new_palette > maximum_colors)
576 for (i = 0; i < num_new_palette - 1; i++)
580 for (j = i + 1; j < num_new_palette; j++)
615 < num_new_palette &&
617 < num_new_palette)
621 if (num_new_palette & 0x01)
632 num_new_palette--;
634 = palette[num_new_palette];
647 num_new_palette)
654 [num_new_palette]] = png_ptr->index_to_palette[j];
657 = png_ptr->palette_to_index[num_new_palette];
660 (png_byte)num_new_palette;
662 png_ptr->palette_to_index[num_new_palette] =
665 if (num_new_palette <= maximum_colors)
668 if (num_new_palette <= maximum_colors)