Lines Matching refs:cmap_entries
1568 png_uint_32 cmap_entries; in png_image_read_header() local
1573 cmap_entries = 1U << png_ptr->bit_depth; in png_image_read_header()
1577 cmap_entries = png_ptr->num_palette; in png_image_read_header()
1581 cmap_entries = 256; in png_image_read_header()
1585 if (cmap_entries > 256) in png_image_read_header()
1586 cmap_entries = 256; in png_image_read_header()
1588 image->colormap_entries = cmap_entries; in png_image_read_header()
2220 unsigned int cmap_entries; in png_image_read_colormap() local
2309 cmap_entries = 1U << png_ptr->bit_depth; in png_image_read_colormap()
2310 if (cmap_entries > image->colormap_entries) in png_image_read_colormap()
2313 step = 255 / (cmap_entries - 1); in png_image_read_colormap()
2334 for (i=val=0; i<cmap_entries; ++i, val += step) in png_image_read_colormap()
2392 cmap_entries = make_gray_colormap(display); in png_image_read_colormap()
2484 cmap_entries = make_ga_colormap(display); in png_image_read_colormap()
2518 cmap_entries = make_gray_colormap(display); in png_image_read_colormap()
2609 cmap_entries = i; in png_image_read_colormap()
2650 cmap_entries = make_ga_colormap(display); in png_image_read_colormap()
2676 cmap_entries = make_gray_file_colormap(display); in png_image_read_colormap()
2681 cmap_entries = make_gray_colormap(display); in png_image_read_colormap()
2769 cmap_entries = make_rgb_colormap(display); in png_image_read_colormap()
2772 png_create_colormap_entry(display, cmap_entries, 255, 255, in png_image_read_colormap()
2778 background_index = cmap_entries++; in png_image_read_colormap()
2793 png_create_colormap_entry(display, cmap_entries++, in png_image_read_colormap()
2818 cmap_entries = make_rgb_colormap(display); in png_image_read_colormap()
2820 png_create_colormap_entry(display, cmap_entries, back_r, in png_image_read_colormap()
2843 sample_size * cmap_entries, in png_image_read_colormap()
2849 background_index = cmap_entries++; in png_image_read_colormap()
2862 png_create_colormap_entry(display, cmap_entries++, in png_image_read_colormap()
2903 cmap_entries = make_rgb_colormap(display); in png_image_read_colormap()
2927 cmap_entries = png_ptr->num_palette; in png_image_read_colormap()
2928 if (cmap_entries > 256) in png_image_read_colormap()
2929 cmap_entries = 256; in png_image_read_colormap()
2931 if (cmap_entries > image->colormap_entries) in png_image_read_colormap()
2934 for (i=0; i < cmap_entries; ++i) in png_image_read_colormap()
3002 if (cmap_entries > 256 || cmap_entries > image->colormap_entries) in png_image_read_colormap()
3005 image->colormap_entries = cmap_entries; in png_image_read_colormap()
3021 if (background_index >= cmap_entries || in png_image_read_colormap()