}
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));
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();