Home | History | Annotate | Download | only in jpeg

Lines Matching refs:icolor

499 compute_color (j_decompress_ptr cinfo, boxptr boxp, int icolor)
500 /* Compute representative color for a box, put it in colormap[icolor] */
532 cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total);
533 cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total);
534 cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total);
785 int i, icolor;
812 icolor = GETJSAMPLE(colorlist[i]);
814 inc0 = (minc0 - GETJSAMPLE(cinfo->colormap[0][icolor])) * C0_SCALE;
816 inc1 = (minc1 - GETJSAMPLE(cinfo->colormap[1][icolor])) * C1_SCALE;
818 inc2 = (minc2 - GETJSAMPLE(cinfo->colormap[2][icolor])) * C2_SCALE;
837 *cptr = (JSAMPLE) icolor;