aboutsummaryrefslogtreecommitdiffhomepage
path: root/libswscale
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-25 10:27:43 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-25 10:27:43 +0000
commit0b7929b8ade2aa888ad14aabf844ffee0a30bdb5 (patch)
tree93bedca63cb4a7bc969a4985b0f47b0dc4034c02 /libswscale
parent2207e9486e006bc840781f53712c88ebbd605e74 (diff)
Add av_ prefix to clip functions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22339 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c18
-rw-r--r--libswscale/swscale_altivec_template.c10
-rw-r--r--libswscale/swscale_template.c2
-rw-r--r--libswscale/yuv2rgb_init.c2
4 files changed, 16 insertions, 16 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 1e084b36c6..0c1f8f3f45 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -316,7 +316,7 @@ static inline void yuv2yuvXinC(int16_t *lumFilter, int16_t **lumSrc, int lumFilt
for(j=0; j<lumFilterSize; j++)
val += lumSrc[j][i] * lumFilter[j];
- dest[i]= clip_uint8(val>>19);
+ dest[i]= av_clip_uint8(val>>19);
}
if(uDest != NULL)
@@ -331,8 +331,8 @@ static inline void yuv2yuvXinC(int16_t *lumFilter, int16_t **lumSrc, int lumFilt
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 @@ static inline void yuv2nv12XinC(int16_t *lumFilter, int16_t **lumSrc, int lumFil
for(j=0; j<lumFilterSize; j++)
val += lumSrc[j][i] * lumFilter[j];
- dest[i]= clip_uint8(val>>19);
+ dest[i]= av_clip_uint8(val>>19);
}
if(uDest == NULL)
@@ -367,8 +367,8 @@ static inline void yuv2nv12XinC(int16_t *lumFilter, int16_t **lumSrc, int lumFil
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<chrDstW; i++)
@@ -382,8 +382,8 @@ static inline void yuv2nv12XinC(int16_t *lumFilter, int16_t **lumSrc, int lumFil
v += chrSrc[j][i + 2048] * chrFilter[j];
}
- uDest[2*i]= clip_uint8(v>>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 @@ static void globalInit(void){
// 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 --git a/libswscale/swscale_altivec_template.c b/libswscale/swscale_altivec_template.c
index 3b1dd7ef63..251b38ca14 100644
--- a/libswscale/swscale_altivec_template.c
+++ b/libswscale/swscale_altivec_template.c
@@ -226,7 +226,7 @@ static inline void hScale_altivec_real(int16_t *dst, int dstW, uint8_t *src, int
for(j=0; j<filterSize; j++) {
val += ((int)src[srcPos + j])*filter[filterSize*i + j];
}
- dst[i] = clip(val>>7, 0, (1<<15)-1);
+ dst[i] = av_clip(val>>7, 0, (1<<15)-1);
}
}
else
@@ -265,7 +265,7 @@ static inline void hScale_altivec_real(int16_t *dst, int dstW, uint8_t *src, int
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 @@ static inline void hScale_altivec_real(int16_t *dst, int dstW, uint8_t *src, int
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 @@ static inline void hScale_altivec_real(int16_t *dst, int dstW, uint8_t *src, int
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 @@ static inline void hScale_altivec_real(int16_t *dst, int dstW, uint8_t *src, 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);
}
}
diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c
index 86598a2860..ae16bc007a 100644
--- a/libswscale/swscale_template.c
+++ b/libswscale/swscale_template.c
@@ -2488,7 +2488,7 @@ static inline void RENAME(hScale)(int16_t *dst, int dstW, uint8_t *src, int srcW
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 --git a/libswscale/yuv2rgb_init.c b/libswscale/yuv2rgb_init.c
index 0db096f813..14c46b0e40 100644
--- a/libswscale/yuv2rgb_init.c
+++ b/libswscale/yuv2rgb_init.c
@@ -277,7 +277,7 @@ int yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4], int fullRange,
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));