Lines Matching refs:JSAMPLE
511 cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total); in compute_color()
512 cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total); in compute_color()
513 cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total); in compute_color()
626 JSAMPLE colorlist[]) in find_nearby_colors()
747 colorlist[ncolors++] = (JSAMPLE) i; in find_nearby_colors()
755 int numcolors, JSAMPLE colorlist[], JSAMPLE bestcolor[]) in find_best_colors()
766 JSAMPLE * cptr; /* pointer into bestcolor[] array */ in find_best_colors()
816 *cptr = (JSAMPLE) icolor; in find_best_colors()
843 register JSAMPLE * cptr; /* pointer into bestcolor[] array */ in fill_inverse_cmap()
846 JSAMPLE colorlist[MAXNUMCOLORS]; in fill_inverse_cmap()
849 JSAMPLE bestcolor[BOX_C0_ELEMS * BOX_C1_ELEMS * BOX_C2_ELEMS]; in fill_inverse_cmap()
921 *outptr++ = (JSAMPLE) (*cachep - 1); in pass2_no_dither()
946 JSAMPLE *range_limit = cinfo->sample_range_limit; in pass2_fs_dither()
1013 *outptr = (JSAMPLE) pixcode; in pass2_fs_dither()