Mercurial > libavcodec.hg
comparison resample2.c @ 4594:a96d905dcbaa libavcodec
Add av_ prefix to clip functions
author | reimar |
---|---|
date | Sun, 25 Feb 2007 10:27:12 +0000 |
parents | 34fdffe98bd0 |
children | f5fa13dfd3c8 |
comparison
equal
deleted
inserted
replaced
4593:2aea8bf268d8 | 4594:a96d905dcbaa |
---|---|
119 norm += y; | 119 norm += y; |
120 } | 120 } |
121 | 121 |
122 /* normalize so that an uniform color remains the same */ | 122 /* normalize so that an uniform color remains the same */ |
123 for(i=0;i<tap_count;i++) { | 123 for(i=0;i<tap_count;i++) { |
124 v = clip(lrintf(tab[i] * scale / norm + e), FELEM_MIN, FELEM_MAX); | 124 v = av_clip(lrintf(tab[i] * scale / norm + e), FELEM_MIN, FELEM_MAX); |
125 filter[ph * tap_count + i] = v; | 125 filter[ph * tap_count + i] = v; |
126 e += tab[i] * scale / norm - v; | 126 e += tab[i] * scale / norm - v; |
127 } | 127 } |
128 } | 128 } |
129 } | 129 } |