nr-filter-component-transfer.cpp revision c6843f4373787d9ec7987e26edaaea04a0996cbf
/*
* 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"
#include "display/nr-filter-units.h"
#include "display/nr-filter-utils.h"
#include "libnr/nr-pixblock.h"
#include <math.h>
namespace NR {
{
}
return new FilterComponentTransfer();
}
{}
if (!in) {
return 1;
}
// this primitive is defined for non-premultiplied RGBA values,
// thus convert them to that format before blending
bool free_in_on_exit = false;
in = new NRPixBlock;
false);
free_in_on_exit = true;
}
(void)in_data;
(void)out_data;
int i;
}
break;
if (_vsize==0){
}
} else {
}
}
break;
if (_vsize==0){
}
} else {
}
}
break;
}
break;
}
break;
}
}
if (free_in_on_exit) {
delete in;
}
return 0;
}
{
}
} /* 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 :