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
af8b43b16d
fix to make check in non-C locales
...
"make check" uses bc, which needs '.' as a decimal sep.
https://github.com/jcupitt/libvips/issues/367
2016-01-17 09:29:25 +00:00
John Cupitt
4512400a3c
better rounding in new bilinear interp
...
was off by 0.5
2016-01-14 13:13:08 +00:00
John Cupitt
6ca9a907b8
reorder load tests
...
and a slight memory saving on ifthenelse
2016-01-13 20:32:23 +00:00
John Cupitt
52384606dd
bump version for new C++ patch
2016-01-12 17:12:46 +00:00
John Cupitt
eeb0ef7ae4
Merge pull request #363 from lovell/vips-cpp-win
...
Enable compilation of vips8 C++ bindings with MSVC
2016-01-11 18:44:52 +00:00
Lovell Fuller
20ae80397d
Enable compilation of vips8 C++ bindings with MSVC
...
Add VIPS_CPLUSPLUS_API macro to allow DLL creation
2016-01-11 17:56:02 +00:00
John Cupitt
50db131865
VImage::get_typeof() returns GType
...
it was int, causing some compiler warnings on some platforms.
see https://github.com/jcupitt/libvips/issues/362
2016-01-09 20:27:14 +00:00
John Cupitt
bf64fde872
regen C++ interface
2016-01-09 15:08:17 +00:00
John Cupitt
66373e9b41
remove exception specs from vips8 C++ interface
...
We had exception specs on the C++ interface, but C++11 does not support
them and some compilers have never honoured them. Remove all specs.
Thanks Lovell.
See https://github.com/jcupitt/libvips/issues/362
2016-01-09 14:52:05 +00:00
John Cupitt
3be5af9779
silence a clang warning
2016-01-09 14:51:35 +00:00
John Cupitt
9419e07a6b
remove a lock from VImage.cc
...
it wasn't really needed, and windows will barf with pointers across
DLLs
2016-01-08 13:40:58 +00:00
John Cupitt
b85231baba
small doc improvements
2016-01-07 11:16:12 +00:00
John Cupitt
98f4a64a86
better Vips.py class names builder
2016-01-05 08:00:40 +00:00
John Cupitt
e27aa4488a
clearer changelog entry
2016-01-04 17:24:00 +00:00
John Cupitt
e81900b187
bandjoin is just an instance function
...
we had both a class member bandjoin, and an instance member
Vips.Image.bandjoin([i1, i2, i3..])
i1.ibandjoin([i2, i3..])
this was confusing and annoying ... get rid of the class one and just
use bandjoin everywhere, so this is now the way to do it:
i1.bandjoin([i2, i3..])
2016-01-04 14:18:10 +00:00
John Cupitt
e6cbdbb516
add a stub for compat
...
see https://github.com/jcupitt/libvips/issues/361
2016-01-01 10:58:53 +00:00
John Cupitt
69d10ea4b2
add C decls for bandjoin_const
...
oops, forgot them
2015-12-30 16:30:56 +00:00
John Cupitt
8ce10058eb
oop, missed a vips-8.1
2015-12-30 11:49:32 +00:00
John Cupitt
813e91c682
rename vips wrapper script
2015-12-30 11:31:59 +00:00
John Cupitt
dbf9a5ed1c
fix dzsave tile-width default
...
was wrong for google / zoomify layouts
revise tests too
2015-12-30 11:23:33 +00:00
John Cupitt
aa635f7816
Merge pull request #360 from ericcorriel/master
...
fixing typo, should be Ifdef
2015-12-28 11:03:35 +00:00
Eric Corriel
630f8bb02b
fixing typo, should be IFDEF
2015-12-27 20:39:55 -05:00
John Cupitt
8302e2ffcd
notes on dzsave change
...
see https://github.com/jcupitt/libvips/pull/359
2015-12-23 09:16:58 +00:00
John Cupitt
2efb5c1718
Merge pull request #359 from gasi/patch-1
...
Use 254 pixels as default tile size
2015-12-22 21:15:48 +00:00
John Cupitt
58183088ed
another try at no-gsf
2015-12-21 15:21:46 +00:00
John Cupitt
bb545542d7
oop, fix build without libgsf
2015-12-21 15:05:46 +00:00
John Cupitt
73436ddfc2
add @properties flag to tiffsave
...
writes all vips metadata to imagedescription tag
2015-12-21 14:43:59 +00:00
John Cupitt
0deb640bc4
load and save TIFFTAG_IMAGEDESCRIPTION
...
this often has useful metadata in, for example the OME spec has all the
metadata in there as an XML document
see https://github.com/jcupitt/libvips/issues/358
2015-12-21 13:53:33 +00:00
Daniel Gasienica
09a30b602b
Use 254 pixels as default tile size
...
I remember @benvanik, a friend and colleague, who worked on our DZI renderer (Seadragon) told us that, I believe, it’s better for GPUs to have power of two sized tiles, so 254px + 2 x 1px tile overlap will give you 256 pixel.s
> To keep my tiles nicely sized, I shrink in instead of expand out – that means my tiles are really 254×254 with a 1px border, so the images are 256x256px with 254×254 of useful imagery. If you wanted larger tiles, you’d go 510×510 with 1px border making 512×512 tiles.
> — Source: http://www.noxa.org/blog/2009/11/29/megatextures-in-webgl-2/
2015-12-20 21:43:41 -08:00
John Cupitt
7267ca4a28
lower max threads in make check
...
seems to annoy travis
2015-12-18 09:11:15 +00:00
John Cupitt
e40a3d166e
oops
2015-12-17 13:49:39 +00:00
John Cupitt
efed79f298
Merge branch 'new-bilinear'
2015-12-17 13:43:51 +00:00
John Cupitt
fb084ef6a6
working
2015-12-17 13:43:34 +00:00
John Cupitt
c74f7457a6
Merge branch 'master' of github.com:jcupitt/libvips
2015-12-17 12:58:04 +00:00
John Cupitt
253cb8e2e3
fix up dzsave overlap handling
...
There was a mixup with the previous fix to dzsave overlap handling,
correct it and update the test suite.
In the previous revision, dzsave overlapped tiles by overlap and sized
them by tile_size. In fact, tiles should be sized as (tile_size + overlap
* 2), ie. tile_size refers to the number of unique pixels per tile.
See https://github.com/jcupitt/libvips/issues/357
2015-12-17 11:54:38 +00:00
John Cupitt
bf7bca1851
correct default overlap value
...
should be 1 for default layouot mode
see https://github.com/jcupitt/libvips/issues/357
2015-12-16 16:26:30 +00:00
John Cupitt
7068fbb20b
new bilinear interpolator
2015-12-16 14:48:00 +00:00
John Cupitt
42f5403cfa
notes
2015-12-15 10:49:02 +00:00
John Cupitt
af6e00e10f
Merge branch 'master' of github.com:jcupitt/libvips
2015-12-15 10:45:23 +00:00
John Cupitt
70cf12d034
notes
2015-12-15 10:44:30 +00:00
John Cupitt
7c506b4351
stupid gtk-doc
2015-12-14 14:08:45 +00:00
John Cupitt
d093b6447b
make sure tiff load is THINSTRIP
...
it was always SMALLTILE before, since it was the result of _header which
set downstream behaviour, not the actual load
2015-12-14 14:07:48 +00:00
John Cupitt
26ae034389
speeling
2015-12-14 14:07:32 +00:00
John Cupitt
3d163bb4e5
oops, DEBUG was left on in buffer.c
...
argh, this was burning a lot of CPU for no reason
added a thing to warn if this is left on again
2015-12-14 14:06:16 +00:00
John Cupitt
66a6a96c61
why not
2015-12-13 18:12:17 +00:00
John Cupitt
1593b23fc4
allow smaller rowsperstrip
...
and some other tiny things
2015-12-13 14:55:56 +00:00
John Cupitt
ff1dd39432
more tests for arrayjoin
2015-12-12 12:38:29 +00:00
John Cupitt
5916e25c31
rename python bandjoin as ibandjoin
...
oh argh class and instance methods are in the same namespace, so we have
to rename the instance one as ibandjoin
also, start adding a test for arrayjoin
2015-12-12 12:29:20 +00:00
John Cupitt
6e9834e623
add vips_arrayjoin()
2015-12-11 15:14:08 +00:00