Lines Matching refs:JSAMPLE
533 cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total); in compute_color()
534 cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total); in compute_color()
535 cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total); in compute_color()
648 JSAMPLE colorlist[]) in find_nearby_colors()
769 colorlist[ncolors++] = (JSAMPLE) i; in find_nearby_colors()
777 int numcolors, JSAMPLE colorlist[], JSAMPLE bestcolor[]) in find_best_colors()
788 JSAMPLE * cptr; /* pointer into bestcolor[] array */ in find_best_colors()
838 *cptr = (JSAMPLE) icolor; in find_best_colors()
865 register JSAMPLE * cptr; /* pointer into bestcolor[] array */ in fill_inverse_cmap()
868 JSAMPLE colorlist[MAXNUMCOLORS]; in fill_inverse_cmap()
871 JSAMPLE bestcolor[BOX_C0_ELEMS * BOX_C1_ELEMS * BOX_C2_ELEMS]; in fill_inverse_cmap()
943 *outptr++ = (JSAMPLE) (*cachep - 1); in pass2_no_dither()
968 JSAMPLE *range_limit = cinfo->sample_range_limit; in pass2_fs_dither()
1035 *outptr = (JSAMPLE) pixcode; in pass2_fs_dither()