1 /*
2 * feColorMatrix filter primitive renderer
3 *
4 * Authors:
5 * Felipe CorrĂȘa da Silva Sanches <felipe.sanches@gmail.com>
6 *
7 * Copyright (C) 2007 authors
8 *
9 * Released under GNU GPL, read the file 'COPYING' for more information
10 */
12 #include "display/nr-filter-colormatrix.h"
13 namespace NR {
15 FilterColorMatrix::FilterColorMatrix()
16 {
17 g_warning("FilterColorMatrix::render not implemented.");
18 }
20 FilterPrimitive * FilterColorMatrix::create() {
21 return new FilterColorMatrix();
22 }
24 FilterColorMatrix::~FilterColorMatrix()
25 {}
27 int FilterColorMatrix::render(FilterSlot &slot, Matrix const &trans) {
28 NRPixBlock *in = slot.get(_input);
29 NRPixBlock *out = new NRPixBlock;
31 nr_pixblock_setup_fast(out, in->mode,
32 in->area.x0, in->area.y0, in->area.x1, in->area.y1,
33 true);
35 unsigned char *in_data = NR_PIXBLOCK_PX(in);
36 unsigned char *out_data = NR_PIXBLOCK_PX(out);
38 //IMPLEMENT ME!
40 out->empty = FALSE;
41 slot.set(_output, out);
42 return 0;
43 }
45 void FilterColorMatrix::area_enlarge(NRRectL &area, Matrix const &trans)
46 {
47 }
49 } /* namespace NR */
51 /*
52 Local Variables:
53 mode:c++
54 c-file-style:"stroustrup"
55 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
56 indent-tabs-mode:nil
57 fill-column:99
58 End:
59 */
60 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :