/*! \file synfig/blur.cpp
** \brief Blur Implementation File
**
-** $Id: blur.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $
+** $Id$
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
}
template <>
-static inline Color zero<Color>()
+inline Color zero<Color>()
{
return Color::alpha();
}
T *SC0=new T[w+1];
T *SC1=new T[w+1];
- // Setup the row bufers
+ // Setup the row buffers
for(x=0;x<w;x++)SC0[x]=surface[0][x]*4;
// memcpy(SC1,surface[0],w*sizeof(T));
w=surface.get_w();
h=surface.get_h();
- // Setup the row bufers
+ // Setup the row buffers
for(x=0;x<w;x++)SC0[x+2]=surface[0][x]*24;
// memset(SC0,0,(w+2)*sizeof(T));
memset(SC1,0,(w+2)*sizeof(T));
}*/
/* Squaring the pw and ph values
- is necessary to insure consistant
+ is necessary to insure consistent
results when rendered to different
resolutions.
- Unfortunately, this automaticly
+ Unfortunately, this automatically
squares our rendertime.
There has got to be a faster way...
*/
return true;
}
-bool Blur::operator ()(const surface<float> &surface,
- const Vector &resolution,
- surface<float> &out) const
+bool Blur::operator ()(const etl::surface<float> &surface,
+ const synfig::Vector &resolution,
+ etl::surface<float> &out) const
{
int w = surface.get_w(),
h = surface.get_h();
}*/
/* Squaring the pw and ph values
- is necessary to insure consistant
+ is necessary to insure consistent
results when rendered to different
resolutions.
- Unfortunately, this automaticly
+ Unfortunately, this automatically
squares our rendertime.
There has got to be a faster way...
*/