1 /*
2 * Filter primitive renderer skeleton class
3 * You can create your new filter primitive renderer by replacing
4 * all occurences of Skeleton, skeleton and SKELETON with your filter
5 * type, like gaussian or blend in respective case.
6 *
7 * This can be accomplished with the following sed command:
8 * sed -e "s/Skeleton/Name/g" -e "s/skeleton/name" -e "s/SKELETON/NAME"
9 * nr-filter-skeleton.cpp >nr-filter-name.cpp
10 *
11 * (on one line, replace occurences of 'name' with your filter name)
12 *
13 * Remember to convert the .h file too. The sed command is same for both
14 * files.
15 *
16 * Authors:
17 * Niko Kiirala <niko@kiirala.com>
18 *
19 * Copyright (C) 2007 authors
20 *
21 * Released under GNU GPL, read the file 'COPYING' for more information
22 */
24 #include "display/nr-filter-skeleton.h"
25 #include "display/nr-filter-slot.h"
26 #include "libnr/nr-pixblock.h"
27 #include "libnr/nr-matrix.h"
29 namespace NR {
31 FilterSkeleton::FilterSkeleton()
32 {}
34 FilterPrimitive * FilterSkeleton::create() {
35 return new FilterSkeleton();
36 }
38 FilterSkeleton::~FilterSkeleton()
39 {}
41 int FilterSkeleton::render(FilterSlot &slot, Matrix const &trans) {
42 NRPixBlock *in = slot.get(_input);
43 NRPixBlock *out;
45 /* Insert rendering code here */
47 out->empty = FALSE;
48 slot.set(_output, out);
50 return 0;
51 }
53 } /* namespace NR */
55 /*
56 Local Variables:
57 mode:c++
58 c-file-style:"stroustrup"
59 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
60 indent-tabs-mode:nil
61 fill-column:99
62 End:
63 */
64 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :