Lines Matching refs:colormap
27 * In 1-pass quantization the colormap must be chosen in advance of seeing the
33 * Since the colormap is orthogonal, the representative value for each color
35 * then these indexes can be combined into a colormap index by a standard
41 * index of the colormap entry closest to a given pixel value is just
145 /* Initially allocated colormap is saved here */
151 * premultiplied as described above. Since colormap indexes must fit into
172 * These routines determine the colormap to be used. The rest of the module
173 * only assumes that the colormap is orthogonal.
269 * Create the colormap.
276 JSAMPARRAY colormap; /* Created colormap */
291 /* Allocate and fill in the colormap. */
295 colormap = (*cinfo->mem->alloc_sarray)
304 /* fill in colormap entries for i'th color component */
310 /* Fill in all colormap entries that have this value of this component */
314 colormap[i][ptr+k] = (JSAMPLE) val;
320 /* Save the colormap in private storage,
323 cquantize->sv_colormap = colormap;
684 /* pixel code, because the colormap is orthogonal. */
747 /* Install my colormap. */
748 cinfo->colormap = cquantize->sv_colormap;
805 * Switch to a new external colormap between output passes.
838 /* Make sure colormap indexes can be represented by JSAMPLEs */
842 /* Create the colormap and color index table. */