/* Return j'th output value, where j will range from 0 to maxj */
/* The output values must fall in 0..MAXJSAMPLE in increasing order */
{
+ (void)cinfo;(void)ci;
/* We always provide values 0 and MAXJSAMPLE for each component;
* any additional values are equally spaced between these limits.
* (Forcing the upper and lower values to the limits ensures that
/* Return largest input value that should map to j'th output value */
/* Must have largest(j=0) >= 0, and largest(j=maxj) >= MAXJSAMPLE */
{
+ (void)cinfo;(void)ci;
/* Breakpoints are halfway between values returned by output_value */
return (int) (((INT32) (2*j + 1) * MAXJSAMPLE + maxj) / (2*maxj));
}
my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
size_t arraysize;
int i;
+ (void)is_pre_scan;
/* Install my colormap. */
cinfo->colormap = cquantize->sv_colormap;
METHODDEF(void)
finish_pass_1_quant (j_decompress_ptr cinfo)
{
+ (void)cinfo;
/* no work in 1-pass case */
}