Commit Graph

28 Commits

Author SHA1 Message Date
Kleis Auke Wolthuizen 0337c09700
Cleanup gettext handling (#2695)
Use GLib's i18n support instead of copying and pasting that
logic into its own header. This deprecates the vips/intl.h
header in favour of glib/gi18n.h.
2022-02-27 15:27:28 +00:00
Fabrice Fontaine 1b002cc32b drop last remnant of dmalloc
Drop last remnant of dmalloc which was removed in version 7.28.0 with
ae8faf6597

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2021-03-22 23:49:54 +01:00
Kleis Auke Wolthuizen 49d8051e22 Revert "Remove round-to-nearest behaviour"
This reverts commit ac30bad6
2020-11-02 13:51:27 +01:00
Kleis Auke Wolthuizen ac30bad695 Remove round-to-nearest behaviour
It seems that it generates the same image, with or without this change.

Tested with https://github.com/kleisauke/vips-issue-703.
2020-06-06 14:29:57 +02:00
John Cupitt 44afdbc314 more accurate bicubic of int16 images
use float path for int16 -- the fixed-point path can miss by a small
amount

see https://github.com/libvips/libvips/issues/1309
2019-05-13 22:05:41 +01:00
John Cupitt db4fe60405 fix mapim offsets
pixels were not being offset by the stencil origin, so interpolators
like bicubic could fail

thanks @erdmann

https://github.com/libvips/libvips/issues/1180
2018-12-17 12:42:34 +00:00
Lovell Fuller f0949fbfcb Allow -DDEBUG build to compile 2017-12-06 22:04:11 +00:00
John Cupitt 65b9ced6e9 improve arg order
more consistent
2016-04-11 13:23:25 +01:00
John Cupitt 8cffd136e9 finish reduce
and fix up bicubic a bit, it works better on int32 images now
2016-02-07 17:41:39 +00:00
John Cupitt 31e4168718 clip bicubic output range from int
The output range of the bicubic interpolator is outside the input range,
we must clip from a larger type.

See https://github.com/jcupitt/libvips/pull/372
2016-01-23 10:09:11 +00:00
Lovell Fuller 25eeb82de6 Consolidate FAST_PSEUDO_FLOOR macros, prefer __builtin_floor if available
Use of vips_interpolate_get_method avoids need to pass interpolate instance
Remove an unnecessary temp variable to help prevent register starvation

5% less time in vips_interpolate_bicubic_interpolate
10% less time in vips_affine_gen
2016-01-22 22:26:29 +00:00
John Cupitt 18baf40b1a fix mapim typo
oops! typo ... also an off-by-one issue for larger stencils

more error checking in interpolators

fix rounding in nohalo/lbb ... they were rounding to nearest in the
interpolator, rather than using floor. This broke assumptions about
stencil position elsewhere. The right way to do centre convention is to offset
the whole input by 0.5 pixels.
2015-11-22 10:29:45 +00:00
John Cupitt 2b086cfe6e add signed int bicubic path
better rounding for 8- and 16-bit signed int bicubic
2014-08-07 10:13:08 +01:00
John Cupitt e4996d8dce don't set shrink too low 2014-08-04 21:25:19 +01:00
John Cupitt 4167bdf0e6 small operation description fixes
more consistency, fix a couple of missing ones
2014-02-03 09:25:09 +00:00
Benjamin Gilbert 8cc76a6ba3 Update address for Free Software Foundation
Also update LGPLv2.1 license text from the copy currently on the GNU
website.
2013-03-07 00:40:19 -05:00
John Cupitt 43d69e74e7 use corner convention everywhere
all interpolators use corner convention
2012-12-13 14:10:52 +00:00
John Cupitt f69168fc04 gobject-introspection compiles
we now mostly compile cleanly, woo
2011-06-22 12:17:43 +01:00
John Cupitt f27ab2fa3f fix window_offset stuff, fix a performance problem 2010-08-12 15:56:07 +00:00
John Cupitt 7fd672f595 faster, more accurate bilinear/bicubic 2010-05-30 17:26:23 +00:00
John Cupitt d0573100b3 interpolation precision hacking 2010-05-28 21:16:28 +00:00
Nicolas Robidoux 51fdf73344 added grant numbers 2010-05-18 22:11:54 +00:00
Nicolas Robidoux 4f9e33aaf4 1D Catmull-Rom cubic interpolation performed one direction at a time IS the same as 2D Catmull-Rom bicubic 2010-05-18 17:01:12 +00:00
Nicolas Robidoux ea7ee9b770 return window_offset values for bicubic and lbb to the nonintuitive values -> no artifact for lbb, possibly method-based artifacts for bicubic 2010-05-16 19:25:19 +00:00
Nicolas Robidoux 504221925f typo in one interpolate_class->window_offset value and cosmetic 2010-05-16 14:56:18 +00:00
Nicolas Robidoux bc1d19b7ed added explicit interpolate_class->window_offset values to every resampler 2010-05-16 14:42:58 +00:00
Nicolas Robidoux 7de848e644 removed all traces of yafrsmooth (obsolete prototype) 2010-05-15 22:24:27 +00:00
John Cupitt 4e76695e19 merge gtkdoc branch 2009-08-16 15:00:08 +00:00