X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fblur.cpp;h=392ef7113f1d6063004be3877ec032743a21512d;hb=d15c4522466bedfbe61620c401becae0931854f5;hp=85ce275faacf8280a1ea4c313cd5065eab673b93;hpb=47a6485b6c2602a8bce63cbf09ded0952566a70a;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/blur.cpp b/synfig-core/trunk/src/synfig/blur.cpp index 85ce275..392ef71 100644 --- a/synfig-core/trunk/src/synfig/blur.cpp +++ b/synfig-core/trunk/src/synfig/blur.cpp @@ -56,7 +56,7 @@ using namespace synfig; /* === P R O C E D U R E S ================================================= */ /* === M E T H O D S ======================================================= */ -Point Blur::operator ()(const Point &pos) const +Point Blur::operator()(const Point &pos) const { Point blurpos(pos); @@ -114,7 +114,7 @@ Point Blur::operator ()(const Point &pos) const return blurpos; } -Point Blur::operator ()(synfig::Real x, synfig::Real y) const +Point Blur::operator()(synfig::Real x, synfig::Real y) const { return (*this)(Point(x,y)); } @@ -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) } //THE GOOD ONE!!!!!!!!! -bool Blur::operator ()(const Surface &surface, - const Vector &resolution, - Surface &out) const +bool Blur::operator()(const Surface &surface, + const Vector &resolution, + Surface &out) const { int w = surface.get_w(), h = surface.get_h(); @@ -714,7 +714,7 @@ 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 automatically @@ -846,9 +846,9 @@ bool Blur::operator ()(const Surface &surface, return true; } -bool Blur::operator ()(const surface &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,7 +1088,7 @@ 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 automatically