Lines Matching refs:MAXJSAMPLE
66 * this to 0..MAXJSAMPLE, and then index into the colorindex table as usual.
247 /* The output values must fall in 0..MAXJSAMPLE in increasing order */
249 /* We always provide values 0 and MAXJSAMPLE for each component;
254 return (int) (((INT32) j * MAXJSAMPLE + maxj/2) / maxj);
261 /* Must have largest(j=0) >= 0, and largest(j=maxj) >= MAXJSAMPLE */
264 return (int) (((INT32) (2*j + 1) * MAXJSAMPLE + maxj) / (2*maxj));
339 /* For ordered dither, we pad the color index tables by MAXJSAMPLE in
340 * each direction (input index values can be -MAXJSAMPLE .. 2*MAXJSAMPLE).
345 pad = MAXJSAMPLE*2;
354 (JDIMENSION) (MAXJSAMPLE+1 + pad),
367 cquantize->colorindex[i] += MAXJSAMPLE;
374 for (j = 0; j <= MAXJSAMPLE; j++) {
382 for (j = 1; j <= MAXJSAMPLE; j++) {
384 indexptr[MAXJSAMPLE+j] = indexptr[MAXJSAMPLE];
405 /* The inter-value distance for this color is MAXJSAMPLE/(ncolors-1).
407 * (f=0..N-1) should be (N-1-2*f)/(2*N) * MAXJSAMPLE/(ncolors-1).
414 * MAXJSAMPLE;
544 /* Form pixel value + dither, range-limit to 0..MAXJSAMPLE,
548 * inputs. The maximum dither is +- MAXJSAMPLE; this sets the
673 /* Form pixel value + error, and range-limit to 0..MAXJSAMPLE.
674 * The maximum error is +- MAXJSAMPLE; this sets the required size
839 if (cinfo->desired_number_of_colors > (MAXJSAMPLE+1))
840 ERREXIT1(cinfo, JERR_QUANT_MANY_COLORS, MAXJSAMPLE+1);