index 01453da39447111376981bd7b615fe57d85a0297..898db9f5352b15c65bec088472efee326033a241 100644 (file)
* feTile filter primitive renderer
*
* Authors:
- * Felipe CorrĂȘa da Silva Sanches <felipe.sanches@gmail.com>
+ * Felipe CorrĂȘa da Silva Sanches <juca@members.fsf.org>
*
* Copyright (C) 2007 authors
*
#include "display/nr-filter-tile.h"
#include "display/nr-filter-units.h"
-namespace NR {
+namespace Inkscape {
+namespace Filters {
FilterTile::FilterTile()
{
FilterTile::~FilterTile()
{}
-int FilterTile::render(FilterSlot &slot, FilterUnits const &units) {
+int FilterTile::render(FilterSlot &slot, FilterUnits const &/*units*/) {
NRPixBlock *in = slot.get(_input);
+ if (!in) {
+ g_warning("Missing source image for feTile (in=%d)", _input);
+ return 1;
+ }
+
NRPixBlock *out = new NRPixBlock;
nr_pixblock_setup_fast(out, in->mode,
unsigned char *out_data = NR_PIXBLOCK_PX(out);
//IMPLEMENT ME!
-
+ g_warning("Renderer for feTile is not implemented.");
+ (void)in_data;
+ (void)out_data;
+
out->empty = FALSE;
slot.set(_output, out);
return 0;
}
-void FilterTile::area_enlarge(NRRectL &area, Matrix const &trans)
+void FilterTile::area_enlarge(NRRectL &/*area*/, Geom::Matrix const &/*trans*/)
{
}
return TRAIT_PARALLER;
}
-} /* namespace NR */
+} /* namespace Filters */
+} /* namespace Inkscape */
/*
Local Variables: