more precision for interpolation

This commit is contained in:
John Cupitt 2008-12-15 15:11:54 +00:00
parent c936389bfc
commit 2b1adda96c
2 changed files with 5 additions and 3 deletions

View File

@ -20,6 +20,8 @@
- interpolators use type introspection
- added vips --list classes, does formats too
- include sys/param.h to get PATH_MAX in more places
- VIPS_INTERPOLATE_SHIFT bumped to 12, we need the extra precision for u16 gel
data
11/9/08 started 7.16.3
- oop typo in manpage for im_project()

View File

@ -94,10 +94,10 @@ int vips_interpolate_get_window_size( VipsInterpolate *interpolate );
/* How many bits of precision we keep for interpolation, ie. where the decimal
* is in the fixed-point tables. For 16-bit pixels, we need 16 bits for the
* data, 4 bits to add 16 values together, another bit for the sign and some
* other stuff, so say 24 total. That leaves 8 bits for the fractional part.
* data and 4 bits to add 16 values together. That leaves 12 bits for the
* fractional part.
*/
#define VIPS_INTERPOLATE_SHIFT (8)
#define VIPS_INTERPOLATE_SHIFT (12)
#define VIPS_INTERPOLATE_SCALE (1 << VIPS_INTERPOLATE_SHIFT)
/* Convenience: return static interpolators, no need to unref.