Lines Matching refs:CLAMP
270 #define CLAMP(x) (pwc_crop_table[MAX_OUTER_CROP_VALUE+(x)])
272 #define CLAMP(x) ((x)>255?255:((x)<0?0:x))
377 *d++ = CLAMP((*c) >> scalebits);
381 *d++ = CLAMP((*c) >> scalebits);
385 *d++ = CLAMP((*c) >> scalebits);
389 *d++ = CLAMP((*c) >> scalebits);
430 *d++ = CLAMP((*c1) >> scalebits);
431 *d++ = CLAMP((*c2) >> scalebits);
436 *d++ = CLAMP((*c1) >> scalebits);
437 *d++ = CLAMP((*c2) >> scalebits);
488 d[i*2] = CLAMP((*c) >> scalebits);
492 d[i*2] = CLAMP((*c) >> scalebits);
542 d[i*2] = CLAMP((*c) >> scalebits);
546 d[i*2+1] = CLAMP((*c) >> scalebits);
550 d[i*2] = CLAMP((*c) >> scalebits);
554 d[i*2+1] = CLAMP((*c) >> scalebits);