Lines Matching refs:num_new_palette
291 int num_new_palette;
316 num_new_palette = num_palette;
328 while (num_new_palette > maximum_colors)
330 for (i = 0; i < num_new_palette - 1; i++)
334 for (j = i + 1; j < num_new_palette; j++)
367 < num_new_palette &&
369 < num_new_palette)
373 if (num_new_palette & 0x01)
384 num_new_palette--;
386 = palette[num_new_palette];
398 num_new_palette)
405 [num_new_palette]] = png_ptr->index_to_palette[j];
407 = png_ptr->palette_to_index[num_new_palette];
409 png_ptr->index_to_palette[j] = (png_byte)num_new_palette;
410 png_ptr->palette_to_index[num_new_palette] = (png_byte)j;
412 if (num_new_palette <= maximum_colors)
415 if (num_new_palette <= maximum_colors)