excerpts from my local tree, part 1
tree d30fce742d64
parent 65471687afd2
author Tamas TEVESZ <[email protected]> 1230236502 -3600
committer Tamas TEVESZ <[email protected]> 1230236502 -3600
revision 1620
branch ice
ansify
diff --git a/wrlib/scale.c b/wrlib/scale.c
--- a/wrlib/scale.c
+++ b/wrlib/scale.c
@@ -256,8 +256,7 @@
#define box_support (0.5)
static double
-box_filter(t)
-double t;
+box_filter(double t)
{
if((t > -0.5) && (t <= 0.5)) return(1.0);
return(0.0);
@@ -266,8 +265,7 @@
#define triangle_support (1.0)
static double
-triangle_filter(t)
-double t;
+triangle_filter(double t)
{
if(t < 0.0) t = -t;
if(t < 1.0) return(1.0 - t);
@@ -277,8 +275,7 @@
#define bell_support (1.5)
static double
-bell_filter(t) /* box (*) box (*) box */
-double t;
+bell_filter(double t) /* box (*) box (*) box */
{
if(t < 0) t = -t;
if(t < .5) return(.75 - (t * t));
@@ -292,8 +289,7 @@
#define B_spline_support (2.0)
static double
-B_spline_filter(t) /* box (*) box (*) box (*) box */
-double t;
+B_spline_filter(double t) /* box (*) box (*) box (*) box */
{
double tt;
@@ -309,8 +305,7 @@
}
static double
-sinc(x)
-double x;
+sinc(double x)
{
x *= PI;
if(x != 0) return(sin(x) / x);
@@ -320,8 +315,7 @@
#define Lanczos3_support (3.0)
static double
-Lanczos3_filter(t)
-double t;
+Lanczos3_filter(double t)
{
if(t < 0) t = -t;
if(t < 3.0) return(sinc(t) * sinc(t/3.0));
@@ -334,8 +328,7 @@
#define C (1.0 / 3.0)
static double
-Mitchell_filter(t)
-double t;
+Mitchell_filter(double t)
{
double tt;
--
[-]
mkdir /nonexistent
--
To unsubscribe, send mail to [email protected].