X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fblur.cpp;h=4fff029639e95bd7949532ee0d44c8a48c2340d3;hb=ee0fd97e97433501befb38b88478ab4eb7487ff5;hp=5a673cd170bb3738a9eeece63212e7d62217976f;hpb=5ddcf36f04cfbd10fabda4e3c5633cb27cdd4c0a;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/blur.cpp b/synfig-core/trunk/src/synfig/blur.cpp index 5a673cd..4fff029 100644 --- a/synfig-core/trunk/src/synfig/blur.cpp +++ b/synfig-core/trunk/src/synfig/blur.cpp @@ -1,8 +1,8 @@ /* === S Y N F I G ========================================================= */ -/*! \file blur.cpp +/*! \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 @@ -128,7 +128,7 @@ static inline T zero() } template <> -static inline Color zero() +inline Color zero() { return Color::alpha(); } @@ -170,7 +170,7 @@ static void GuassianBlur_3x3(etl::surface &surface) T *SC0=new T[w+1]; T *SC1=new T[w+1]; - // Setup the row bufers + // Setup the row buffers for(x=0;x &surface,T *SC0,T *SC w=surface.get_w(); h=surface.get_h(); - // Setup the row bufers + // Setup the row buffers for(x=0;x &surface, - const Vector &resolution, - surface &out) const +bool Blur::operator ()(const etl::surface &surface, + const synfig::Vector &resolution, + etl::surface &out) const { int w = surface.get_w(), h = surface.get_h(); @@ -1088,10 +1088,10 @@ bool Blur::operator ()(const surface &surface, }*/ /* 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... */