From: jucablues Date: Sun, 5 Aug 2007 01:19:50 +0000 (+0000) Subject: adding files that were missing on my previous commit X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b3e4991faeba9d490160bb88bf142fe3f28eeefd;p=inkscape.git adding files that were missing on my previous commit --- 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 + * + * 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 + * + * 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 :