summaryrefslogtreecommitdiff
path: root/libavcodec/eval.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-10-16 15:01:12 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-10-16 15:01:12 +0000
commit212d84881a438e64ddf367f649cd359cfaec4198 (patch)
tree7e5b3dc109bc03eb0eeb1edd8c7c6d9322862af6 /libavcodec/eval.c
parentc45b5de03a1c26fb61142fae727b3a5c731c1bf5 (diff)
mod()
Originally committed as revision 6710 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/eval.c')
-rw-r--r--libavcodec/eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/eval.c b/libavcodec/eval.c
index 93318ce63b..35147a7d0c 100644
--- a/libavcodec/eval.c
+++ b/libavcodec/eval.c
@@ -175,6 +175,7 @@ static double evalPrimary(Parser *p){
else if( strmatch(next, "squish") ) d= 1/(1+exp(4*d));
else if( strmatch(next, "gauss" ) ) d= exp(-d*d/2)/sqrt(2*M_PI);
else if( strmatch(next, "abs" ) ) d= fabs(d);
+ else if( strmatch(next, "mod" ) ) d-= floor(d/d2)*d2;
else if( strmatch(next, "max" ) ) d= d > d2 ? d : d2;
else if( strmatch(next, "min" ) ) d= d < d2 ? d : d2;
else if( strmatch(next, "gt" ) ) d= d > d2 ? 1.0 : 0.0;