# HG changeset patch # User reimar # Date 1172399263 0 # Node ID 5f47768cbda59ae7912784faeffaa6cd20850948 # Parent f96bc31f9aad527018b589b93aaf25aae199c6fb Add av_ prefix to clip functions diff -r f96bc31f9aad -r 5f47768cbda5 libswscale/swscale.c --- a/libswscale/swscale.c Sat Feb 24 20:01:08 2007 +0000 +++ b/libswscale/swscale.c Sun Feb 25 10:27:43 2007 +0000 @@ -316,7 +316,7 @@ for(j=0; j>19); + dest[i]= av_clip_uint8(val>>19); } if(uDest != NULL) @@ -331,8 +331,8 @@ v += chrSrc[j][i + 2048] * chrFilter[j]; } - uDest[i]= clip_uint8(u>>19); - vDest[i]= clip_uint8(v>>19); + uDest[i]= av_clip_uint8(u>>19); + vDest[i]= av_clip_uint8(v>>19); } } @@ -349,7 +349,7 @@ for(j=0; j>19); + dest[i]= av_clip_uint8(val>>19); } if(uDest == NULL) @@ -367,8 +367,8 @@ v += chrSrc[j][i + 2048] * chrFilter[j]; } - uDest[2*i]= clip_uint8(u>>19); - uDest[2*i+1]= clip_uint8(v>>19); + uDest[2*i]= av_clip_uint8(u>>19); + uDest[2*i+1]= av_clip_uint8(v>>19); } else for(i=0; i>19); - uDest[2*i+1]= clip_uint8(u>>19); + uDest[2*i]= av_clip_uint8(v>>19); + uDest[2*i+1]= av_clip_uint8(u>>19); } } @@ -1465,7 +1465,7 @@ // generating tables: int i; for(i=0; i<768; i++){ - int c= clip_uint8(i-256); + int c= av_clip_uint8(i-256); clip_table[i]=c; } } diff -r f96bc31f9aad -r 5f47768cbda5 libswscale/swscale_altivec_template.c --- a/libswscale/swscale_altivec_template.c Sat Feb 24 20:01:08 2007 +0000 +++ b/libswscale/swscale_altivec_template.c Sun Feb 25 10:27:43 2007 +0000 @@ -226,7 +226,7 @@ for(j=0; j>7, 0, (1<<15)-1); + dst[i] = av_clip(val>>7, 0, (1<<15)-1); } } else @@ -265,7 +265,7 @@ val_vEven = vec_mule(src_v, filter_v); val_s = vec_sums(val_vEven, vzero); vec_st(val_s, 0, tempo); - dst[i] = clip(tempo[3]>>7, 0, (1<<15)-1); + dst[i] = av_clip(tempo[3]>>7, 0, (1<<15)-1); } } break; @@ -292,7 +292,7 @@ val_v = vec_msums(src_v, filter_v, (vector signed int)vzero); val_s = vec_sums(val_v, vzero); vec_st(val_s, 0, tempo); - dst[i] = clip(tempo[3]>>7, 0, (1<<15)-1); + dst[i] = av_clip(tempo[3]>>7, 0, (1<<15)-1); } } break; @@ -321,7 +321,7 @@ vector signed int val_s = vec_sums(val_v, vzero); vec_st(val_s, 0, tempo); - dst[i] = clip(tempo[3]>>7, 0, (1<<15)-1); + dst[i] = av_clip(tempo[3]>>7, 0, (1<<15)-1); } } break; @@ -383,7 +383,7 @@ val_s = vec_sums(val_v, vzero); vec_st(val_s, 0, tempo); - dst[i] = clip(tempo[3]>>7, 0, (1<<15)-1); + dst[i] = av_clip(tempo[3]>>7, 0, (1<<15)-1); } } diff -r f96bc31f9aad -r 5f47768cbda5 libswscale/swscale_template.c --- a/libswscale/swscale_template.c Sat Feb 24 20:01:08 2007 +0000 +++ b/libswscale/swscale_template.c Sun Feb 25 10:27:43 2007 +0000 @@ -2488,7 +2488,7 @@ val += ((int)src[srcPos + j])*filter[filterSize*i + j]; } // filter += hFilterSize; - dst[i] = clip(val>>7, 0, (1<<15)-1); // the cubic equation does overflow ... + dst[i] = av_clip(val>>7, 0, (1<<15)-1); // the cubic equation does overflow ... // dst[i] = val>>7; } #endif diff -r f96bc31f9aad -r 5f47768cbda5 libswscale/yuv2rgb_init.c --- a/libswscale/yuv2rgb_init.c Sat Feb 24 20:01:08 2007 +0000 +++ b/libswscale/yuv2rgb_init.c Sun Feb 25 10:27:43 2007 +0000 @@ -277,7 +277,7 @@ for (i = 0; i < 1024; i++) { value = (cy*(((i - YTABLE_MIN)<<16) - oy) + (1<<31))>>32; - ytable[i] = clip_uint8(value); + ytable[i] = av_clip_uint8(value); } entry_size = get_entry_size(fmt_depth(c->dstFormat));