COL 670 lib/png.c COL*rgba = 0; COL 681 lib/png.c rgba = (COL*)malloc(palettelen*sizeof(COL)); COL 697 lib/png.c rgba = (COL*)malloc(palettelen*4); COL 752 lib/png.c *(COL*)&data2[y*header.width*4+x*4+0] = rgba[destline[x]]; COL 769 lib/png.c COL*image = (COL*)_image; COL 789 lib/png.c static colornum_t* getColors(COL*image, int size, int*num) COL 833 lib/png.c static void getOptimalPalette(COL*image, int size, int palettesize, COL*palette) COL 836 lib/png.c memset(palette, 0, sizeof(COL)*256); COL 940 lib/png.c static void png_quantize_image(unsigned char*_image, int size, int numcolors, unsigned char**newimage, COL*palette) COL 942 lib/png.c COL*image = (COL*)_image; COL 1145 lib/png.c static inline u32 color_hash(COL*col) COL 1153 lib/png.c static int png_get_number_of_palette_entries(COL*img, int width, int height, COL*palette, char*has_alpha) COL 1167 lib/png.c assert(sizeof(COL)==sizeof(u32)); COL 1218 lib/png.c palette[i++] = *(COL*)(&cpal[s]); COL 1227 lib/png.c COL c = palette[i]; COL 1241 lib/png.c static void png_map_to_palette(COL*src, unsigned char*dest, int size, COL*palette, int palette_size) COL 1260 lib/png.c if(!memcmp(&palette[index], &src[t], sizeof(COL))) COL 1541 lib/png.c COL palette[256]; COL 1546 lib/png.c int num = png_get_number_of_palette_entries((COL*)data, width, height, palette, &has_alpha); COL 1550 lib/png.c png_map_to_palette((COL*)data, data2, width*height, palette, num);