Home | History | Annotate | Download | only in libjpeg-turbo

Lines Matching refs:colormap

190 /* Write a Windows-style BMP file header, including colormap if needed */
205 /* Compute colormap size and total file size */
220 /* Grayscale output. We need to fake a 256-entry colormap. */
225 headersize = 14 + 40 + cmap_entries * 4; /* Header and colormap */
266 /* Write an OS2-style BMP file header, including colormap if needed */
273 /* Compute colormap size and total file size */
288 /* Grayscale output. We need to fake a 256-entry colormap. */
293 headersize = 14 + 12 + cmap_entries * 3; /* Header and colormap */
325 * Write the colormap.
333 JSAMPARRAY colormap = cinfo->colormap;
338 if (colormap != NULL) {
340 /* Normal case with RGB colormap */
342 putc(GETJSAMPLE(colormap[2][i]), outfile);
343 putc(GETJSAMPLE(colormap[1][i]), outfile);
344 putc(GETJSAMPLE(colormap[0][i]), outfile);
349 /* Grayscale colormap (only happens with grayscale quantization) */
351 putc(GETJSAMPLE(colormap[0][i]), outfile);
352 putc(GETJSAMPLE(colormap[0][i]), outfile);
353 putc(GETJSAMPLE(colormap[0][i]), outfile);
359 /* If no colormap, must be grayscale data. Generate a linear "map". */
368 /* Pad colormap with zeros to ensure specified number of colormap entries */
392 /* Write the header and colormap */