Lines Matching refs:colormap
212 /* Emit 3 copies of same byte value --- handy subr for colormap construction */
221 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap)
223 /* If colormap==NULL, synthesize a grayscale colormap */
264 if (colormap != NULL) {
267 putc(GETJSAMPLE(colormap[0][i]) >> cshift, dinfo->pub.output_file);
268 putc(GETJSAMPLE(colormap[1][i]) >> cshift, dinfo->pub.output_file);
269 putc(GETJSAMPLE(colormap[2][i]) >> cshift, dinfo->pub.output_file);
272 put_3bytes(dinfo, GETJSAMPLE(colormap[0][i]) >> cshift);
309 emit_header(dest, cinfo->actual_number_of_colors, cinfo->colormap);