#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;
}
}
-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;
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;
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;
/*
- * 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
* 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>
#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;
}
// 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;
/*
- * 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
* 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>