Lines Matching full:palette
53 * The palette always has 2^bit-depth entries and the tRNS chunk one fewer. The
54 * image is the 1-channel diamond, but using palette index, not luminosity.
67 * will have exactly one palette entry and all image files with be 16x16 in
170 generate_palette(png_colorp palette, png_bytep trans, int bit_depth,
190 set_color(palette+0, trans+0, colors[1], colors[1], colors[1], 255,
195 set_color(palette+0, trans+0, colors[1], colors[1], colors[1],
200 set_color(palette+0, trans+0, colors[1], colors[2], colors[3], 255,
205 set_color(palette+0, trans+0, colors[1], colors[2], colors[3],
212 set_color(palette+0, trans+0, 255, 0, 0, 0, gamma_table);
213 set_color(palette+1, trans+1, 255, 255, 255, 255, gamma_table);
233 set_color(palette+ip, trans+ip,
440 /* Palette with fixed color: the image rows are all 0 and the image width
640 png_color palette[256];
643 npalette = generate_palette(palette, trans, bit_depth, gamma_table,
645 png_set_PLTE(png_ptr, info_ptr, palette, npalette);
1350 if (strcmp(arg, "palette") == 0)