[SCM] libav/experimental: mod()

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:52:19 UTC 2013


The following commit has been merged in the experimental branch:
commit 212d84881a438e64ddf367f649cd359cfaec4198
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Mon Oct 16 15:01:12 2006 +0000

    mod()
    
    Originally committed as revision 6710 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/eval.c b/libavcodec/eval.c
index 93318ce..35147a7 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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list