On the second thought, no need to go between straight and premul when doing AA for plane warp node

This commit is contained in:
Sergey Sharybin
2013-09-06 09:56:04 +00:00
parent 63ade11564
commit 567e3b47cc

View File

@@ -143,13 +143,11 @@ void PlaneTrackWarpImageOperation::executePixel(float output[4], float x, float
v *= this->m_pixelReader->getHeight();
this->m_pixelReader->read(current_color, u, v, dx, dy, COM_PS_NEAREST);
premul_to_straight_v4(current_color);
add_v4_v4(color_accum, current_color);
}
}
mul_v4_v4fl(output, color_accum, 1.0f / this->m_osa);
straight_to_premul_v4(output);
}
bool PlaneTrackWarpImageOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)