diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2007-08-05 01:19:50 +0000 |
|---|---|---|
| committer | jucablues <jucablues@users.sourceforge.net> | 2007-08-05 01:19:50 +0000 |
| commit | ab04c9b74dc22d931af3f6199e12673c68a5b660 (patch) | |
| tree | 57275b93623c2a69a6e0c696445fb268d497ed50 /src | |
| parent | Use Dia's new homepage address. (diff) | |
| download | inkscape-ab04c9b74dc22d931af3f6199e12673c68a5b660.tar.gz inkscape-ab04c9b74dc22d931af3f6199e12673c68a5b660.zip | |
adding files that were missing on my previous commit
(bzr r3372)
Diffstat (limited to 'src')
| -rw-r--r-- | src/display/nr-filter-component-transfer.cpp | 60 | ||||
| -rw-r--r-- | src/display/nr-filter-component-transfer.h | 42 |
2 files changed, 102 insertions, 0 deletions
diff --git a/src/display/nr-filter-component-transfer.cpp b/src/display/nr-filter-component-transfer.cpp new file mode 100644 index 000000000..1f519335d --- /dev/null +++ b/src/display/nr-filter-component-transfer.cpp @@ -0,0 +1,60 @@ +/* + * feComponentTransfer filter primitive renderer + * + * Authors: + * Felipe CorrĂȘa da Silva Sanches <felipe.sanches@gmail.com> + * + * Copyright (C) 2007 authors + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#include "display/nr-filter-component-transfer.h" +namespace NR { + +FilterComponentTransfer::FilterComponentTransfer() +{ + g_warning("FilterComponentTransfer::render not implemented."); +} + +FilterPrimitive * FilterComponentTransfer::create() { + return new FilterComponentTransfer(); +} + +FilterComponentTransfer::~FilterComponentTransfer() +{} + +int FilterComponentTransfer::render(FilterSlot &slot, Matrix const &trans) { + NRPixBlock *in = slot.get(_input); + NRPixBlock *out = new NRPixBlock; + + nr_pixblock_setup_fast(out, in->mode, + in->area.x0, in->area.y0, in->area.x1, in->area.y1, + true); + + unsigned char *in_data = NR_PIXBLOCK_PX(in); + unsigned char *out_data = NR_PIXBLOCK_PX(out); + +//IMPLEMENT ME! + + out->empty = FALSE; + slot.set(_output, out); + return 0; +} + +void FilterComponentTransfer::area_enlarge(NRRectL &area, Matrix const &trans) +{ +} + +} /* namespace NR */ + +/* + Local Variables: + mode:c++ + c-file-style:"stroustrup" + c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) + indent-tabs-mode:nil + fill-column:99 + End: +*/ +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : diff --git a/src/display/nr-filter-component-transfer.h b/src/display/nr-filter-component-transfer.h new file mode 100644 index 000000000..b30457809 --- /dev/null +++ b/src/display/nr-filter-component-transfer.h @@ -0,0 +1,42 @@ +#ifndef __NR_FILTER_COMPONENT_TRANSFER_H__ +#define __NR_FILTER_COMPONENT_TRANSFER_H__ + +/* + * feComponentTransfer filter primitive renderer + * + * Authors: + * Felipe CorrĂȘa da Silva Sanches <felipe.sanches@gmail.com> + * + * Copyright (C) 2007 authors + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#include "display/nr-filter-primitive.h" +#include "display/nr-filter-slot.h" + +namespace NR { + +class FilterComponentTransfer : public FilterPrimitive { +public: + FilterComponentTransfer(); + static FilterPrimitive *create(); + virtual ~FilterComponentTransfer(); + + virtual int render(FilterSlot &slot, Matrix const &trans); + virtual void area_enlarge(NRRectL &area, Matrix const &trans); +}; + +} /* namespace NR */ + +#endif /* __NR_FILTER_COMPONENT_TRANSFER_H__ */ +/* + Local Variables: + mode:c++ + c-file-style:"stroustrup" + c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) + indent-tabs-mode:nil + fill-column:99 + End: +*/ +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : |
