Searched refs:cmap_entries (Results 1 – 3 of 3) sorted by relevance
171 int bits_per_pixel, cmap_entries; in write_bmp_header() local178 cmap_entries = 256; in write_bmp_header()182 cmap_entries = 0; in write_bmp_header()187 cmap_entries = 256; in write_bmp_header()190 headersize = 14 + 40 + cmap_entries * 4; /* Header and colormap */ in write_bmp_header()216 PUT_2B(bmpinfoheader, 32, cmap_entries); /* biClrUsed */ in write_bmp_header()224 if (cmap_entries > 0) in write_bmp_header()225 write_colormap(cinfo, dest, cmap_entries, 4); in write_bmp_header()236 int bits_per_pixel, cmap_entries; in write_os2_header() local243 cmap_entries = 256; in write_os2_header()[all …]
1309 png_uint_32 cmap_entries; in png_image_read_header() local1314 cmap_entries = 1U << png_ptr->bit_depth; in png_image_read_header()1318 cmap_entries = png_ptr->num_palette; in png_image_read_header()1322 cmap_entries = 256; in png_image_read_header()1326 if (cmap_entries > 256) in png_image_read_header()1327 cmap_entries = 256; in png_image_read_header()1329 image->colormap_entries = cmap_entries; in png_image_read_header()1954 unsigned int cmap_entries; in png_image_read_colormap() local2043 cmap_entries = 1U << png_ptr->bit_depth; in png_image_read_colormap()2044 if (cmap_entries > image->colormap_entries) in png_image_read_colormap()[all …]
1568 png_uint_32 cmap_entries; in png_image_read_header() local1573 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() local2309 cmap_entries = 1U << png_ptr->bit_depth; in png_image_read_colormap()2310 if (cmap_entries > image->colormap_entries) in png_image_read_colormap()[all …]