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
Alistair Thomas 9303ee2511 Update GObject introspection annotations for /libvips/arithmetic directory 2017-09-20 10:36:21 +01:00
John Cupitt 34970d0cf2 remove some casts
and use VIPS_AREA instead
2017-07-26 14:57:27 +01:00
John Cupitt 7136053451 sort max/min results by y and x coordinate
previously the list of maxima or minima found by max/min were in found
order, so essentially random

they now sort equal values by y then x coordinate, so the results are
consistent between runs, provided there are fewer maxima / minima than
are being tracked
2017-01-24 14:25:15 +00:00
John Cupitt fb544e3f25 add note about non-determinism in stats
added a note to the docs for max/min/stats about non-determinism in the
results if there are many maxima/minima

thanks Mark
2017-01-24 12:14:55 +00:00
John Cupitt 1ae92bb15f make optional args into bullets
make docs easier to read
2016-05-02 10:12:37 +01:00
John Cupitt 07a1903390 use g_assert_not_reached()
we were using g_assert(0) ... g_assert_not_reached() makes the
intention clearer
2016-01-24 13:21:53 +00:00
Lovell Fuller 90c1fb9a94 Use gcc/clang isnan and isinf builtin functions where available.
These are used heavily in the building of look-up tables at
start-up time and therefore improve vipsthumbnail perf by ~4%.
2016-01-20 19:02:14 +00:00
John Cupitt 1504ca7cdc have a more formal max image dimension
we now have VIPS_MAX_COORD for maximum image dimension, set to 10m
pixels ... we could go up to 2bn, but 10m seems a reasonable max, at
least for now

see https://github.com/jcupitt/libvips/issues/355
2015-12-03 12:14:39 +00:00
John Cupitt d8018e8126 improve min/max docs
thanks Paul, see

https://github.com/jcupitt/libvips/issues/252
2015-04-12 11:25:46 +01:00
John Cupitt 32a8fe117e start working on --disable-deprecated
need to move im_conv() etc to classes to finish this
2014-07-25 18:06:52 +01:00
John Cupitt 84d65c1727 Merge branch '7.38'
Conflicts:
	libvips/resample/affine.c
2014-06-18 13:48:08 +01:00
John Cupitt 1772588eb6 small fixes
help cleanup and debug if operations fail
2014-05-16 08:28:44 +01:00
John Cupitt c3def93361 ban size == 0 for max/min 2014-02-19 17:13:12 +00:00
John Cupitt a2d06e640e small cppcheck-suggested polishes 2013-05-07 17:22:29 +01: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 a4433f1b9f vips_min() done too 2012-12-05 14:40:01 +00:00
John Cupitt 1e332d2f29 vips_max() returns arrays for position and value
int array type too for x/y position arrays
2012-12-05 13:11:29 +00:00
John Cupitt 713ecf8252 compiles 2012-12-04 14:57:41 +00:00
John Cupitt 1aee7b73d5 start new max hacking 2012-12-03 14:53:10 +00:00
John Cupitt 862cac1e4f avoid NaN in max/min, better double ranges 2012-02-24 13:57:50 +00:00
John Cupitt d0ec401a12 hackery to get goi working 2011-12-31 18:22:42 +00:00
John Cupitt d401db768d more docs hacking 2011-11-18 10:42:41 +00:00
John Cupitt 4256563332 small fixes 2011-11-17 14:43:08 +00:00
John Cupitt 15f7568423 min/max error initing x/y 2011-11-14 12:10:54 +00:00
John Cupitt 90849a44c5 sync 2011-11-08 14:46:50 +00:00
John Cupitt c80a19747f im_multiply() redone, fixes to max/min 2011-11-07 09:42:44 +00:00
John Cupitt 77d386cdaf redo im_max()/im_maxpos() as classes 2011-11-06 17:00:44 +00:00