Lines Matching refs:CHAN_MAX
287 sample[ACOMP] = CHAN_MAX; in affine_span()
293 sample[ACOMP] = CHAN_MAX; in affine_span()
314 dest[RCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->red + \ in affine_span()
317 dest[GCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->green + \ in affine_span()
320 dest[BCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->blue + \ in affine_span()
326 dest[RCOMP] = ((CHAN_MAX - sample[RCOMP]) * span->red \ in affine_span()
328 dest[GCOMP] = ((CHAN_MAX - sample[GCOMP]) * span->green \ in affine_span()
330 dest[BCOMP] = ((CHAN_MAX - sample[BCOMP]) * span->blue \ in affine_span()
341 dest[RCOMP] = MIN2(rSum, CHAN_MAX); \ in affine_span()
342 dest[GCOMP] = MIN2(gSum, CHAN_MAX); \ in affine_span()
343 dest[BCOMP] = MIN2(bSum, CHAN_MAX); \ in affine_span()