Lines Matching full:clamp
278 #define CLAMP(x) (pwc_crop_table[MAX_OUTER_CROP_VALUE+(x)]) macro
280 #define CLAMP(x) ((x)>255?255:((x)<0?0:x)) macro
333 /* Build the static table to clamp value [0-255] */ in pwc_dec23_init()
383 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()
387 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()
391 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()
395 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()
436 *d++ = CLAMP((*c1) >> scalebits); in copy_image_block_CrCb()
437 *d++ = CLAMP((*c2) >> scalebits); in copy_image_block_CrCb()
442 *d++ = CLAMP((*c1) >> scalebits); in copy_image_block_CrCb()
443 *d++ = CLAMP((*c2) >> scalebits); in copy_image_block_CrCb()