added explicit interpolate_class->window_offset values to every resampler

This commit is contained in:
Nicolas Robidoux 2010-05-16 14:42:58 +00:00
parent 7de848e644
commit bc1d19b7ed
5 changed files with 15 additions and 10 deletions

View File

@ -434,6 +434,7 @@ vips_interpolate_bicubic_class_init( VipsInterpolateBicubicClass *iclass )
interpolate_class->interpolate = vips_interpolate_bicubic_interpolate; interpolate_class->interpolate = vips_interpolate_bicubic_interpolate;
interpolate_class->window_size = 4; interpolate_class->window_size = 4;
interpolate_class->window_offset = 1;
/* Build the tables of pre-computed coefficients. /* Build the tables of pre-computed coefficients.
*/ */

View File

@ -796,6 +796,7 @@ vips_interpolate_lbb_class_init( VipsInterpolateLbbClass *klass )
interpolate_class->interpolate = vips_interpolate_lbb_interpolate; interpolate_class->interpolate = vips_interpolate_lbb_interpolate;
interpolate_class->window_size = 4; interpolate_class->window_size = 4;
interpolate_class->window_offset = 1;
} }
static void static void

View File

@ -657,6 +657,7 @@ vips_interpolate_nohalo1_class_init( VipsInterpolateNohalo1Class *klass )
interpolate_class->interpolate = vips_interpolate_nohalo1_interpolate; interpolate_class->interpolate = vips_interpolate_nohalo1_interpolate;
interpolate_class->window_size = 4; interpolate_class->window_size = 4;
interpolate_class->window_offset = 1;
} }
static void static void

View File

@ -1083,6 +1083,7 @@ vips_interpolate_nohalo2_class_init( VipsInterpolateNohalo2Class *klass )
interpolate_class->interpolate = vips_interpolate_nohalo2_interpolate; interpolate_class->interpolate = vips_interpolate_nohalo2_interpolate;
interpolate_class->window_size = 6; interpolate_class->window_size = 6;
interpolate_class->window_offset = 2;
} }
static void static void

View File

@ -1096,6 +1096,7 @@ vips_interpolate_snohalo1_class_init( VipsInterpolateSnohalo1Class *klass )
interpolate_class->interpolate = interpolate_class->interpolate =
vips_interpolate_snohalo1_interpolate; vips_interpolate_snohalo1_interpolate;
interpolate_class->window_size = 7; interpolate_class->window_size = 7;
interpolate_class->window_size = 3;
/* /*
* Create properties: * Create properties: