Lines Matching refs:cmap_entries

1426       png_uint_32 cmap_entries;  in png_image_read_header()  local
1431 cmap_entries = 1U << png_ptr->bit_depth; in png_image_read_header()
1435 cmap_entries = png_ptr->num_palette; in png_image_read_header()
1439 cmap_entries = 256; in png_image_read_header()
1443 if (cmap_entries > 256) in png_image_read_header()
1444 cmap_entries = 256; in png_image_read_header()
1446 image->colormap_entries = cmap_entries; in png_image_read_header()
2081 unsigned int cmap_entries; in png_image_read_colormap() local
2170 cmap_entries = 1U << png_ptr->bit_depth; in png_image_read_colormap()
2171 if (cmap_entries > image->colormap_entries) in png_image_read_colormap()
2174 step = 255 / (cmap_entries - 1); in png_image_read_colormap()
2195 for (i=val=0; i<cmap_entries; ++i, val += step) in png_image_read_colormap()
2253 cmap_entries = make_gray_colormap(display); in png_image_read_colormap()
2351 cmap_entries = make_ga_colormap(display); in png_image_read_colormap()
2385 cmap_entries = make_gray_colormap(display); in png_image_read_colormap()
2483 cmap_entries = i; in png_image_read_colormap()
2524 cmap_entries = make_ga_colormap(display); in png_image_read_colormap()
2550 cmap_entries = make_gray_file_colormap(display); in png_image_read_colormap()
2555 cmap_entries = make_gray_colormap(display); in png_image_read_colormap()
2643 cmap_entries = make_rgb_colormap(display); in png_image_read_colormap()
2646 png_create_colormap_entry(display, cmap_entries, 255, 255, in png_image_read_colormap()
2652 background_index = cmap_entries++; in png_image_read_colormap()
2667 png_create_colormap_entry(display, cmap_entries++, in png_image_read_colormap()
2692 cmap_entries = make_rgb_colormap(display); in png_image_read_colormap()
2694 png_create_colormap_entry(display, cmap_entries, back_r, in png_image_read_colormap()
2717 sample_size * cmap_entries, in png_image_read_colormap()
2723 background_index = cmap_entries++; in png_image_read_colormap()
2736 png_create_colormap_entry(display, cmap_entries++, in png_image_read_colormap()
2777 cmap_entries = make_rgb_colormap(display); in png_image_read_colormap()
2801 cmap_entries = png_ptr->num_palette; in png_image_read_colormap()
2802 if (cmap_entries > 256) in png_image_read_colormap()
2803 cmap_entries = 256; in png_image_read_colormap()
2805 if (cmap_entries > image->colormap_entries) in png_image_read_colormap()
2808 for (i=0; i < cmap_entries; ++i) in png_image_read_colormap()
2876 if (cmap_entries > 256 || cmap_entries > image->colormap_entries) in png_image_read_colormap()
2879 image->colormap_entries = cmap_entries; in png_image_read_colormap()
2895 if (background_index >= cmap_entries || in png_image_read_colormap()