nr-filter-tile.cpp revision 723b4d8bde8ce8503d1d01ee0f2e3548ec0dc88c
3f4f0d494ca026eab6c7bba188b98c8a74fc4a02Krzysztof Kosiński/*
3f4f0d494ca026eab6c7bba188b98c8a74fc4a02Krzysztof Kosiński * feTile filter primitive renderer
3f4f0d494ca026eab6c7bba188b98c8a74fc4a02Krzysztof Kosiński *
3f4f0d494ca026eab6c7bba188b98c8a74fc4a02Krzysztof Kosiński * Authors:
3f4f0d494ca026eab6c7bba188b98c8a74fc4a02Krzysztof Kosiński * Felipe Corrêa da Silva Sanches <felipe.sanches@gmail.com>
3f4f0d494ca026eab6c7bba188b98c8a74fc4a02Krzysztof Kosiński *
3f4f0d494ca026eab6c7bba188b98c8a74fc4a02Krzysztof Kosiński * Copyright (C) 2007 authors
9f23cdd7a5ae710b8ba3a3f023386b65c98e6f61Jabiertxof *
8e7816e2594857eb4a5456120b0cf24344fa9a99Jabiertxof * Released under GNU GPL, read the file 'COPYING' for more information
3f4f0d494ca026eab6c7bba188b98c8a74fc4a02Krzysztof Kosiński */
8e7816e2594857eb4a5456120b0cf24344fa9a99Jabiertxof
8e7816e2594857eb4a5456120b0cf24344fa9a99Jabiertxof#include "display/nr-filter-tile.h"
8e7816e2594857eb4a5456120b0cf24344fa9a99Jabiertxof#include "display/nr-filter-units.h"
3f4f0d494ca026eab6c7bba188b98c8a74fc4a02Krzysztof Kosiński
3f4f0d494ca026eab6c7bba188b98c8a74fc4a02Krzysztof Kosińskinamespace NR {
3f4f0d494ca026eab6c7bba188b98c8a74fc4a02Krzysztof Kosiński
3f4f0d494ca026eab6c7bba188b98c8a74fc4a02Krzysztof KosińskiFilterTile::FilterTile()
3f4f0d494ca026eab6c7bba188b98c8a74fc4a02Krzysztof Kosiński{
g_warning("FilterTile::render not implemented.");
}
FilterPrimitive * FilterTile::create() {
return new FilterTile();
}
FilterTile::~FilterTile()
{}
int FilterTile::render(FilterSlot &slot, FilterUnits const &/*units*/) {
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!
(void)in_data;
(void)out_data;
out->empty = FALSE;
slot.set(_output, out);
return 0;
}
void FilterTile::area_enlarge(NRRectL &/*area*/, Matrix const &/*trans*/)
{
}
FilterTraits FilterTile::get_input_traits() {
return TRAIT_PARALLER;
}
} /* 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 :