]> git.sesse.net Git - mlt/commitdiff
Fix typo, credits and make functions static, (patch from stephane fillod - thanks)
authorj-b-m <j-b-m@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 19 Feb 2007 08:34:51 +0000 (08:34 +0000)
committerj-b-m <j-b-m@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 19 Feb 2007 08:34:51 +0000 (08:34 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@951 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/core/filter_boxblur.c
src/modules/core/filter_boxblur.h
src/modules/core/filter_wave.c
src/modules/core/filter_wave.h

index 543a657801a66fa615bbaa0b19b64ca313fca435..43ae223989ffd4ccfcf45cc46fe2728398803660 100644 (file)
@@ -26,7 +26,7 @@
 #include <math.h>
 
 
-void PreCompute(uint8_t *yuv, int32_t *rgb, unsigned int width, unsigned int height)
+static void PreCompute(uint8_t *yuv, int32_t *rgb, unsigned int width, unsigned int height)
 {
        register int x, y, z;
        register int uneven = width % 2;
@@ -94,7 +94,7 @@ void PreCompute(uint8_t *yuv, int32_t *rgb, unsigned int width, unsigned int hei
        }
 }
 
-int32_t GetRGB(int32_t *rgb, unsigned int w, unsigned int h, unsigned int x, int offsetx, unsigned int y, int offsety, unsigned int z)
+static int32_t GetRGB(int32_t *rgb, unsigned int w, unsigned int h, unsigned int x, int offsetx, unsigned int y, int offsety, unsigned int z)
 {
        int xtheo = x * 2 + offsetx;
        int ytheo = y + offsety;
@@ -103,7 +103,7 @@ int32_t GetRGB(int32_t *rgb, unsigned int w, unsigned int h, unsigned int x, int
        return rgb[3*(xtheo+ytheo*w)+z];
 }
 
-int32_t GetRGB2(int32_t *rgb, unsigned int w, unsigned int h, unsigned int x, int offsetx, unsigned int y, int offsety, unsigned int z)
+static int32_t GetRGB2(int32_t *rgb, unsigned int w, unsigned int h, unsigned int x, int offsetx, unsigned int y, int offsety, unsigned int z)
 {
        int xtheo = x * 2 + 1 + offsetx;
        int ytheo = y + offsety;
@@ -112,7 +112,7 @@ int32_t GetRGB2(int32_t *rgb, unsigned int w, unsigned int h, unsigned int x, in
        return rgb[3*(xtheo+ytheo*w)+z];
 }
 
-void DoBoxBlur(uint8_t *yuv, int32_t *rgb, unsigned int width, unsigned int height, unsigned int boxw, unsigned int boxh)
+static void DoBoxBlur(uint8_t *yuv, int32_t *rgb, unsigned int width, unsigned int height, unsigned int boxw, unsigned int boxh)
 {
        register int x, y;
        int32_t r, g, b;
index ad8e2161d022a44ee9d0e40c9a7ba7db64085f99..f942e85e9c88d52500b09762960f5f452946289c 100644 (file)
@@ -1,7 +1,6 @@
 /*
- * filter_luma.h -- luma filter
- * Copyright (C) 2003-2004 Ushodaya Enterprises Limited
- * Author: Charles Yates <charles.yates@pandora.be>
+ * filter_boxblur.h -- box blur filter
+ * Author: Leny Grisel <leny.grisel@laposte.net>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -18,8 +17,8 @@
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-#ifndef _FILTER_BLUR_H_
-#define _FILTER_BLUR_H_
+#ifndef _FILTER_BOXBLUR_H_
+#define _FILTER_BOXBLUR_H_
 
 #include <framework/mlt_filter.h>
 
index f3c14e149ab66ebc03c817a64e2b81911c851540..add9327f224763eaeedeb94b0c58db42cf21289c 100644 (file)
@@ -26,7 +26,7 @@
 #include <math.h>
 
 // this is a utility function used by DoWave below
-uint8_t getPoint(uint8_t *src, int w, int h, int x, int y, int z)
+static uint8_t getPoint(uint8_t *src, int w, int h, int x, int y, int z)
 {
        if (x<0) x+=-((-x)%w)+w; else if (x>=w) x=x%w;
        if (y<0) y+=-((-y)%h)+h; else if (y>=h) y=y%h;
@@ -34,7 +34,7 @@ uint8_t getPoint(uint8_t *src, int w, int h, int x, int y, int z)
 }
 
 // the main meat of the algorithm lies here
-void DoWave(uint8_t *src, int src_w, int src_h, uint8_t *dst, mlt_position position, int speed, int factor, int deformX, int deformY)
+static void DoWave(uint8_t *src, int src_w, int src_h, uint8_t *dst, mlt_position position, int speed, int factor, int deformX, int deformY)
 {
        register int x, y;
        int decalY, decalX, z;
index cd9b9ebc3350f67700417020c34d7e19863c5788..e45a1e2660d541730588a078fdd5766ef1214037 100644 (file)
@@ -1,7 +1,6 @@
 /*
- * filter_luma.h -- luma filter
- * Copyright (C) 2003-2004 Ushodaya Enterprises Limited
- * Author: Charles Yates <charles.yates@pandora.be>
+ * filter_wave.h -- wave filter
+ * Author: Leny Grisel <leny.grisel@laposte.net>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -18,8 +17,8 @@
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-#ifndef _FILTER_BLUR_H_
-#define _FILTER_BLUR_H_
+#ifndef _FILTER_WAVE_H_
+#define _FILTER_WAVE_H_
 
 #include <framework/mlt_filter.h>