using namespace HDK_Sample;
{
};
{
&addRange),
};
{
"Image to Add to",
"Mask Input",
0
};
{
}
{
}
COP2_PixelAdd::~COP2_PixelAdd() { }
namespace HDK_Sample {
{
public:
{ myAddend[0] =
r; myAddend[1] =
g; myAddend[2] =
b; myAddend[3] =
a; }
protected:
{ return true; }
const bool *scope)
{
if(vals[0] && scope[0]) *vals[0] = *vals[0] + pf->
myAddend[0];
if(vals[1] && scope[1]) *vals[1] = *vals[1] + pf->myAddend[1];
if(vals[2] && scope[2]) *vals[2] = *vals[2] + pf->myAddend[2];
if(vals[3] && scope[3]) *vals[3] = *vals[3] + pf->myAddend[3];
}
private:
float myAddend[4];
};
}
{
{
r = g = b = a = ADD(3, t) * effect;
}
else
{
r = ADD(0,t) * effect;
g = ADD(1,t) * effect;
b = ADD(2,t) * effect;
a = ADD(3,t) * effect;
}
}
const char *
COP2_PixelAdd::getOperationInfo()
{
info.
sprintf(
"Add (%g, %g, %g, %g)",
ADD(0,t)*effect, ADD(1,t)*effect,
ADD(2,t)*effect, ADD(3,t)*effect);
}
void
{
"HDK Sample Pixel Add",
1,
2,
}