Code

Fixed rendering glitch in bicubic scaler
[inkscape.git] / src / sp-feconvolvematrix.h
1 #ifndef SP_FECONVOLVEMATRIX_H_SEEN
2 #define SP_FECONVOLVEMATRIX_H_SEEN
4 /** \file
5  * SVG <feConvolveMatrix> implementation, see sp-feConvolveMatrix.cpp.
6  */
7 /*
8  * Authors:
9  *   Felipe CorrĂȘa da Silva Sanches <felipe.sanches@gmail.com>
10  *   Hugo Rodrigues <haa.rodrigues@gmail.com>
11  *
12  * Copyright (C) 2006 Hugo Rodrigues
13  *
14  * Released under GNU GPL, read the file 'COPYING' for more information
15  */
17 #include "sp-filter.h"
18 #include "sp-feconvolvematrix-fns.h"
19 #include "number-opt-number.h"
20 #include <vector>
21 //#include <glib.h>
24 /* FeConvolveMatrix base class */
25 class SPFeConvolveMatrixClass;
27 struct SPFeConvolveMatrix : public SPFilterPrimitive {
28     /* CONVOLVEMATRIX ATTRIBUTES */
29     NumberOptNumber order;
30     std::vector<gdouble> kernelMatrix;
31     double divisor, bias;
32     int targetX, targetY;
33     unsigned short edgeMode;
34     NumberOptNumber kernelUnitLength;
35     bool preserveAlpha;
36 };
38 struct SPFeConvolveMatrixClass {
39     SPFilterPrimitiveClass parent_class;
40 };
42 GType sp_feConvolveMatrix_get_type();
45 #endif /* !SP_FECONVOLVEMATRIX_H_SEEN */
47 /*
48   Local Variables:
49   mode:c++
50   c-file-style:"stroustrup"
51   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
52   indent-tabs-mode:nil
53   fill-column:99
54   End:
55 */
56 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :