Lines Matching defs:CLAMP
271 #define CLAMP(x) (pwc_crop_table[MAX_OUTER_CROP_VALUE+(x)])
273 #define CLAMP(x) ((x)>255?255:((x)<0?0:x))
378 *d++ = CLAMP((*c) >> scalebits);
382 *d++ = CLAMP((*c) >> scalebits);
386 *d++ = CLAMP((*c) >> scalebits);
390 *d++ = CLAMP((*c) >> scalebits);
431 *d++ = CLAMP((*c1) >> scalebits);
432 *d++ = CLAMP((*c2) >> scalebits);
437 *d++ = CLAMP((*c1) >> scalebits);
438 *d++ = CLAMP((*c2) >> scalebits);
489 d[i*2] = CLAMP((*c) >> scalebits);
493 d[i*2] = CLAMP((*c) >> scalebits);
543 d[i*2] = CLAMP((*c) >> scalebits);
547 d[i*2+1] = CLAMP((*c) >> scalebits);
551 d[i*2] = CLAMP((*c) >> scalebits);
555 d[i*2+1] = CLAMP((*c) >> scalebits);