Lines Matching refs:CHAN_MAX
286 sample[ACOMP] = CHAN_MAX; in affine_span()
292 sample[ACOMP] = CHAN_MAX; in affine_span()
313 dest[RCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->red + \ in affine_span()
316 dest[GCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->green + \ in affine_span()
319 dest[BCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->blue + \ in affine_span()
325 dest[RCOMP] = ((CHAN_MAX - sample[RCOMP]) * span->red \ in affine_span()
327 dest[GCOMP] = ((CHAN_MAX - sample[GCOMP]) * span->green \ in affine_span()
329 dest[BCOMP] = ((CHAN_MAX - sample[BCOMP]) * span->blue \ in affine_span()
340 dest[RCOMP] = MIN2(rSum, CHAN_MAX); \ in affine_span()
341 dest[GCOMP] = MIN2(gSum, CHAN_MAX); \ in affine_span()
342 dest[BCOMP] = MIN2(bSum, CHAN_MAX); \ in affine_span()