1 /* === S Y N F I G ========================================================= */
3 ** \brief Blur Helper Header file
5 ** $Id: blur.h,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SYNFIG_BLUR_HELPER_H
25 #define __SYNFIG_BLUR_HELPER_H
27 /* === H E A D E R S ======================================================= */
28 #include <synfig/surface.h>
29 #include <synfig/color.h>
30 #include <synfig/vector.h>
32 /* === M A C R O S ========================================================= */
34 /* === T Y P E D E F S ===================================================== */
36 /* === C L A S S E S & S T R U C T S ======================================= */
37 class synfig::ProgressCallback;
50 FORCE_DWORD = 0x8fffffff
57 synfig::ProgressCallback *cb;
60 synfig::Point & set_size(const synfig::Point &v) { return (size = v); }
61 const synfig::Point & get_size() const { return size; }
62 synfig::Point & get_size() { return size; }
64 int & set_type(const int &t) { return (type = t); }
65 const int & get_type() const { return type; }
66 int & get_type() { return type; }
69 Blur(const synfig::Point &s, int t, synfig::ProgressCallback *callb=0):size(s), type(t), cb(callb) {}
70 Blur(synfig::Real sx, synfig::Real sy, int t, synfig::ProgressCallback *callb = 0): size(sx,sy), type(t), cb(callb) {}
73 synfig::Point operator ()(const synfig::Point &p) const;
74 synfig::Point operator ()(synfig::Real x, synfig::Real y) const;
77 // input surface can be the same as output surface,
78 // though both have to be the same size
79 bool operator ()(const synfig::Surface &surface, const synfig::Vector &resolution, synfig::Surface &out) const;
81 bool operator ()(const etl::surface<float> &surface, const synfig::Vector &resolution, etl::surface<float> &out) const;
82 //bool operator ()(const etl::surface<unsigned char> &surface, const synfig::Vector &resolution, etl::surface<unsigned char> &out) const;
85 /* === E N D =============================================================== */