summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2db2cdf)
raw | patch | inline | side by side (parent: 2db2cdf)
author | jucablues <jucablues@users.sourceforge.net> | |
Sun, 5 Aug 2007 01:19:50 +0000 (01:19 +0000) | ||
committer | jucablues <jucablues@users.sourceforge.net> | |
Sun, 5 Aug 2007 01:19:50 +0000 (01:19 +0000) |
src/display/nr-filter-component-transfer.cpp | [new file with mode: 0644] | patch | blob |
src/display/nr-filter-component-transfer.h | [new file with mode: 0644] | patch | blob |
diff --git a/src/display/nr-filter-component-transfer.cpp b/src/display/nr-filter-component-transfer.cpp
--- /dev/null
@@ -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
--- /dev/null
@@ -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 :