more vsqbs sampler tweaks

This commit is contained in:
Nicolas Robidoux 2010-05-30 03:17:47 +00:00
parent 9ad185b8ce
commit 32f481d524
1 changed files with 30 additions and 11 deletions

View File

@ -205,17 +205,36 @@ typedef struct _VipsInterpolateVsqbsClass {
\
do \
{ \
const double double_result = \
( \
four_c_uno_two * in[uno_two_shift] + \
four_c_uno_thr * in[uno_thr_shift] + \
four_c_dos_one * in[dos_one_shift] + \
four_c_dos_two * in[dos_two_shift] + \
four_c_dos_thr * in[dos_thr_shift] + \
four_c_tre_one * in[tre_one_shift] + \
four_c_tre_two * in[tre_two_shift] + \
four_c_tre_thr * in[tre_thr_shift] \
) * 0.25; \
const double double_result = \
( \
( \
( \
four_c_uno_two * in[uno_two_shift] \
+ \
four_c_dos_one * in[dos_one_shift] \
) \
+ \
( \
four_c_tre_two * in[tre_two_shift] \
+ \
four_c_dos_thr * in[dos_thr_shift] \
) \
) \
+ \
( \
( \
four_c_dos_two * in[dos_two_shift] \
+ \
four_c_tre_thr * in[tre_thr_shift] \
) \
+ \
( \
four_c_uno_thr * in[uno_thr_shift] \
+ \
four_c_tre_one * in[tre_one_shift] \
) \
) \
) * 0.25; \
\
{ \
const T result = to_ ## conversion<T>( double_result ); \