yse BLI_math for the compositor in more places.

This commit is contained in:
2012-06-12 20:04:55 +00:00
parent 7fec7070d7
commit e1241030db
26 changed files with 157 additions and 272 deletions

View File

@@ -329,9 +329,7 @@ void MemoryBuffer::readEWA(float result[4], float fx, float fy, float dx, float
float tc[4];
const float wt = EWA_WTS[(Q < 0.f) ? 0 : (unsigned int)Q];
read(tc, clipuv(u, width), clipuv(v, height));
result[0] += tc[0]*wt;
result[1] += tc[1]*wt;
result[2] += tc[2]*wt;
madd_v3_v3fl(result, tc, wt);
result[3] += result[3] ? tc[3]*wt : 0.f;
d += wt;
}