Commit 212d8488 authored by Michael Niedermayer's avatar Michael Niedermayer

mod()

Originally committed as revision 6710 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c45b5de0
...@@ -175,6 +175,7 @@ static double evalPrimary(Parser *p){ ...@@ -175,6 +175,7 @@ static double evalPrimary(Parser *p){
else if( strmatch(next, "squish") ) d= 1/(1+exp(4*d)); 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, "gauss" ) ) d= exp(-d*d/2)/sqrt(2*M_PI);
else if( strmatch(next, "abs" ) ) d= fabs(d); 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, "max" ) ) d= d > d2 ? d : d2;
else if( strmatch(next, "min" ) ) 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; else if( strmatch(next, "gt" ) ) d= d > d2 ? 1.0 : 0.0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment