From 6031d690af474127e4339bef3df3d4a31a1e782e Mon Sep 17 00:00:00 2001 From: Nicolas Robidoux Date: Thu, 20 May 2010 15:56:32 +0000 Subject: [PATCH] nohalo with one less multiply per channel --- libvips/resample/nohalo.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libvips/resample/nohalo.cpp b/libvips/resample/nohalo.cpp index bcbfed1c..3a874c25 100644 --- a/libvips/resample/nohalo.cpp +++ b/libvips/resample/nohalo.cpp @@ -608,9 +608,12 @@ nohalo_subdivision (const double uno_two, const double val_uno_one_1 = .25 * ( dos_two + dos_thr + tre_two + tre_thr ) + - .125 * ( dos_two_x - dos_thr_x + tre_two_x - tre_thr_x ) - + - .125 * ( dos_two_y + dos_thr_y - tre_two_y - tre_thr_y ); + .125 + * + ( dos_two_x - dos_thr_x + tre_two_x - tre_thr_x + + + dos_two_y + dos_thr_y - tre_two_y - tre_thr_y + ); /* * Return the sixteen LBB stencil values: