X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Ffilter_boxblur.c;h=23474268351a6d590e5e8bf02d43746f24185dfd;hb=f5166fd9533abe00f46dc8742cc23ecae9fb19fb;hp=543a657801a66fa615bbaa0b19b64ca313fca435;hpb=141759f8441d680a2eb8cea282acf3aeb3aec440;p=melted diff --git a/src/modules/core/filter_boxblur.c b/src/modules/core/filter_boxblur.c index 543a657..2347426 100644 --- a/src/modules/core/filter_boxblur.c +++ b/src/modules/core/filter_boxblur.c @@ -1,5 +1,6 @@ /* * filter_boxblur.c -- blur filter + * Copyright (C) 2003-2004 Ushodaya Enterprises Limited * Author: Leny Grisel * * This program is free software; you can redistribute it and/or modify @@ -26,7 +27,7 @@ #include -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 +95,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 +104,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 +113,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;