Revision f66e4f5f libavutil/common.h

View differences:

libavutil/common.h
163 163
 * @param amax maximum value of the clip range
164 164
 * @return clipped value
165 165
 */
166
static inline int clip(int a, int amin, int amax)
166
static inline int av_clip(int a, int amin, int amax)
167 167
{
168 168
    if (a < amin)      return amin;
169 169
    else if (a > amax) return amax;
......
175 175
 * @param a value to clip
176 176
 * @return clipped value
177 177
 */
178
static inline uint8_t clip_uint8(int a)
178
static inline uint8_t av_clip_uint8(int a)
179 179
{
180 180
    if (a&(~255)) return (-a)>>31;
181 181
    else          return a;

Also available in: Unified diff