Home | History | Annotate | Download | only in jpeg-6b

Lines Matching defs:colormap

158 /* Write a Windows-style BMP file header, including colormap if needed */
173 /* Compute colormap size and total file size */
185 /* Grayscale output. We need to fake a 256-entry colormap. */
190 headersize = 14 + 40 + cmap_entries * 4; /* Header and colormap */
231 /* Write an OS2-style BMP file header, including colormap if needed */
238 /* Compute colormap size and total file size */
250 /* Grayscale output. We need to fake a 256-entry colormap. */
255 headersize = 14 + 12 + cmap_entries * 3; /* Header and colormap */
287 * Write the colormap.
295 JSAMPARRAY colormap = cinfo->colormap;
300 if (colormap != NULL) {
302 /* Normal case with RGB colormap */
304 putc(GETJSAMPLE(colormap[2][i]), outfile);
305 putc(GETJSAMPLE(colormap[1][i]), outfile);
306 putc(GETJSAMPLE(colormap[0][i]), outfile);
311 /* Grayscale colormap (only happens with grayscale quantization) */
313 putc(GETJSAMPLE(colormap[0][i]), outfile);
314 putc(GETJSAMPLE(colormap[0][i]), outfile);
315 putc(GETJSAMPLE(colormap[0][i]), outfile);
321 /* If no colormap, must be grayscale data. Generate a linear "map". */
330 /* Pad colormap with zeros to ensure specified number of colormap entries */
354 /* Write the header and colormap */