X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fblur.h;fp=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fblur.h;h=74728944c9bfab716b314f678272f61a3309a8dc;hb=5ddcf36f04cfbd10fabda4e3c5633cb27cdd4c0a;hp=43c8b614a18163adfb08fcaa68f96793537de603;hpb=cee5940bae97612105db8b7e1ffcf513f9d9150c;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/blur.h b/synfig-core/trunk/src/synfig/blur.h index 43c8b61..7472894 100644 --- a/synfig-core/trunk/src/synfig/blur.h +++ b/synfig-core/trunk/src/synfig/blur.h @@ -36,7 +36,7 @@ /* === C L A S S E S & S T R U C T S ======================================= */ class synfig::ProgressCallback; - + class Blur { public: @@ -47,7 +47,7 @@ public: CROSS =2, GAUSSIAN =3, DISC =4, - + FORCE_DWORD = 0x8fffffff }; @@ -61,24 +61,24 @@ public: synfig::Point & set_size(const synfig::Point &v) { return (size = v); } const synfig::Point & get_size() const { return size; } synfig::Point & get_size() { return size; } - + int & set_type(const int &t) { return (type = t); } const int & get_type() const { return type; } int & get_type() { return type; } - + Blur() {} Blur(const synfig::Point &s, int t, synfig::ProgressCallback *callb=0):size(s), type(t), cb(callb) {} Blur(synfig::Real sx, synfig::Real sy, int t, synfig::ProgressCallback *callb = 0): size(sx,sy), type(t), cb(callb) {} - + //Parametric Blur synfig::Point operator ()(const synfig::Point &p) const; synfig::Point operator ()(synfig::Real x, synfig::Real y) const; - + //Surface based blur // input surface can be the same as output surface, // though both have to be the same size bool operator ()(const synfig::Surface &surface, const synfig::Vector &resolution, synfig::Surface &out) const; - + bool operator ()(const etl::surface &surface, const synfig::Vector &resolution, etl::surface &out) const; //bool operator ()(const etl::surface &surface, const synfig::Vector &resolution, etl::surface &out) const; };