Code de-duplication in imageprocess.c -- made it use interpolation functions from blenlib

This commit is contained in:
2012-11-11 08:48:35 +00:00
parent a9eb610473
commit 92c8c2ed69
4 changed files with 196 additions and 250 deletions

View File

@@ -91,11 +91,11 @@ void RenderLayersBaseProg::doInterpolation(float output[4], float x, float y, Pi
break;
case COM_PS_BILINEAR:
BLI_bilinear_interpolation(this->m_inputBuffer, output, width, height, this->m_elementsize, x, y);
BLI_bilinear_interpolation_fl(this->m_inputBuffer, output, width, height, this->m_elementsize, x, y);
break;
case COM_PS_BICUBIC:
BLI_bicubic_interpolation(this->m_inputBuffer, output, width, height, this->m_elementsize, x, y);
BLI_bicubic_interpolation_fl(this->m_inputBuffer, output, width, height, this->m_elementsize, x, y);
break;
}