Mercurial > libavutil.hg
diff common.h @ 251:0b9b9d10fa1c libavutil
Add av_ prefix to clip functions
| author | reimar |
|---|---|
| date | Sun, 25 Feb 2007 10:27:12 +0000 |
| parents | 60748db91fb3 |
| children | 3c7dd1a3cfe8 |
line wrap: on
line diff
--- a/common.h Sat Feb 24 19:46:54 2007 +0000 +++ b/common.h Sun Feb 25 10:27:12 2007 +0000 @@ -163,7 +163,7 @@ * @param amax maximum value of the clip range * @return clipped value */ -static inline int clip(int a, int amin, int amax) +static inline int av_clip(int a, int amin, int amax) { if (a < amin) return amin; else if (a > amax) return amax; @@ -175,7 +175,7 @@ * @param a value to clip * @return clipped value */ -static inline uint8_t clip_uint8(int a) +static inline uint8_t av_clip_uint8(int a) { if (a&(~255)) return (-a)>>31; else return a;
