Lines Matching defs:num_new_palette
295 int num_new_palette;
320 num_new_palette = num_palette;
332 while (num_new_palette > maximum_colors)
334 for (i = 0; i < num_new_palette - 1; i++)
338 for (j = i + 1; j < num_new_palette; j++)
371 < num_new_palette &&
373 < num_new_palette)
377 if (num_new_palette & 0x01)
388 num_new_palette--;
390 = palette[num_new_palette];
402 num_new_palette)
409 [num_new_palette]] = png_ptr->index_to_palette[j];
411 = png_ptr->palette_to_index[num_new_palette];
413 png_ptr->index_to_palette[j] = (png_byte)num_new_palette;
414 png_ptr->palette_to_index[num_new_palette] = (png_byte)j;
416 if (num_new_palette <= maximum_colors)
419 if (num_new_palette <= maximum_colors)