[FFmpeg-cvslog] vsrc_mandelbrot: detect edges in interpol()

Michael Niedermayer git at videolan.org
Sun Nov 20 00:07:22 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 19 22:22:21 2011 +0100| [a5dfedd3814f742a0e7f0bf3112f664f3c5649bd] | committer: Michael Niedermayer

vsrc_mandelbrot: detect edges in interpol()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a5dfedd3814f742a0e7f0bf3112f664f3c5649bd
---

 libavfilter/vsrc_mandelbrot.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c
index 10e010f..629fae1 100644
--- a/libavfilter/vsrc_mandelbrot.c
+++ b/libavfilter/vsrc_mandelbrot.c
@@ -252,6 +252,8 @@ static int interpol(MBContext *mb, uint32_t *color, int x, int y, int linesize)
         int ipolcd= (cc + dc);
         if(FFABS(ipolab - ipolcd) > 5)
             return 0;
+        if(FFABS(ac-bc)+FFABS(cc-dc) > 20)
+            return 0;
         ipol |= ((ipolab + ipolcd + 2)/4)<<s;
     }
     color[x + y*linesize]= ipol;



More information about the ffmpeg-cvslog mailing list