Lines Matching refs:num_new_palette
320 int num_new_palette; in png_set_dither() local
342 num_new_palette = num_palette; in png_set_dither()
354 while (num_new_palette > maximum_colors) in png_set_dither()
356 for (i = 0; i < num_new_palette - 1; i++) in png_set_dither()
360 for (j = i + 1; j < num_new_palette; j++) in png_set_dither()
393 < num_new_palette && in png_set_dither()
395 < num_new_palette) in png_set_dither()
399 if (num_new_palette & 0x01) in png_set_dither()
410 num_new_palette--; in png_set_dither()
412 = palette[num_new_palette]; in png_set_dither()
424 num_new_palette) in png_set_dither()
431 [num_new_palette]] = png_ptr->index_to_palette[j]; in png_set_dither()
433 = png_ptr->palette_to_index[num_new_palette]; in png_set_dither()
436 (png_byte)num_new_palette; in png_set_dither()
437 png_ptr->palette_to_index[num_new_palette] = in png_set_dither()
440 if (num_new_palette <= maximum_colors) in png_set_dither()
443 if (num_new_palette <= maximum_colors) in png_set_dither()