967 Commits

Author SHA1 Message Date
John Cupitt
adfd25a5ed byteswap popplerload
and better path absoluteization
2016-02-08 16:37:47 +00:00
John Cupitt
1f93efd65d fix more compiler warnings 2016-01-26 16:41:03 +00: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
John Cupitt
923fb43ae9 clear up tiny docs issue
not about SEQ behaviour
2016-01-22 15:02:18 +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
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
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
a57cccbf0f fix with orc-0.4.11 2015-12-08 15:33:57 +00:00
John Cupitt
06a627fc51 fix against older orcs
oops, older orcs don't have those limit constants
2015-12-08 15:16:52 +00:00
John Cupitt
a0ead35bbb possible improve orc stability
mutex around calls to the orc compiler, check more error returns, use
limits from the orc headers
2015-12-08 14:57:48 +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
8ebed8fe03 fix the bg render thread in sinkscreen
it could exit under heavy load, resulting in black everywhere ... now
let it exit when there's no work, and restart next time a dirty tile
appears
2015-12-02 15:51:25 +00:00
John Cupitt
c57a03d8a6 improve vips_sink_screen() shutdown
is now very careful not to do anything to output images after they've
been unreffed ... fixes a crash in vipsdisp
2015-12-01 13:12:07 +00:00
John Cupitt
2409767679 add vips_image_new_from_memory_copy()
takes a copy of a memory area when making an image ... this helps bindings
for languages which don't have much control over memory

see https://github.com/jcupitt/libvips/issues/346
2015-11-25 17:05:59 +00:00
John Cupitt
8e6ed3ef30 compiles 2015-11-16 14:58:51 +00:00
John Cupitt
c27fce059d Merge branch 'master' of github.com:jcupitt/libvips 2015-10-27 12:08:53 +00:00
John Cupitt
d73d7e6e18 type 2015-10-27 12:08:43 +00:00
John Cupitt
3b34308e6d only allow [] to enclose options
we could pick up ( ) too easily before

see https://github.com/jcupitt/libvips/issues/342
2015-10-26 13:59:55 +00:00
John Cupitt
5160010eda add vips_array_image_empty()/_append()
to help bindings without init from array
2015-10-25 17:15:45 +00:00
John Cupitt
36617bd2e4 added vips_blob_copy()
helps ruby-vips8
2015-10-24 11:12:08 +01:00
John Cupitt
2b46b7e889 many more const decls
ruby gobject-introspection is quite fussy about needing a lot of const
declarations ... these changes help vips_image_matrix_from_array()
appear in Ruby
2015-10-23 11:45:11 +01:00
John Cupitt
64d081e726 return default value for unset props
we used to issue a warning and return early, but this can leave garbage
in the *value pointer, I think

ruby gobject-introspection will walk object props during GC and can see
state inbetween init and build when not all objects have been given a
value ... we don't want these warnings
2015-10-16 14:50:44 +01:00
John Cupitt
b1cd4d1124 add doc note for operation.new
since language bindings use it
2015-10-13 07:28:58 +01:00
John Cupitt
d88dd1ab72 fix a few coverity issues
a couple of minor bugs, and a lot of warnings
2015-09-30 09:54:50 +01:00
John Cupitt
e62df8c573 fix more cppcheck warnings
cppcheck now passes, with a few false positives

see https://github.com/jcupitt/libvips/issues/331
2015-09-29 09:23:01 +01:00
John Cupitt
01025328da fix some cppcheck warnings
try:

$ cppcheck -f --enable=warning,performance,portability -j4 . 2> err.txt

there are still some left, see:

see https://github.com/jcupitt/libvips/issues/331
2015-09-28 22:01:15 +01:00
John Cupitt
96ed5eb684 get rid of a big stack allocation
we were allocating 100kb in the C stack for a temporary string, instead
format directly to the destination area

some libc have very limited space on the C stack and can't afford this

see https://github.com/lovell/sharp/issues/242
2015-07-24 05:14:40 +01:00
John Cupitt
180e5efe6f store all string metadata as refstr
various things break if you attach a G_TYPE_STRING as metadata, so make
sure it's always VIPS_TYPE_REF_STRING

also, type convert on read
2015-07-16 14:46:20 +01:00
John Cupitt
69fc2c1b7c getting closer ...
fix RefString handling, add a test case
2015-07-16 11:14:33 +01:00
John Cupitt
2a6dd4e3d2 oops in ref_string_get
duh typo
2015-07-15 14:52:07 +01:00
John Cupitt
ee0f082059 test ->time in progress trigger 2015-07-14 13:13:08 +01:00
John Cupitt
9487efc5c3 small doc fix 2015-07-10 14:57:45 +01:00
John Cupitt
e4c53e59dd fix a compile error 2015-06-20 10:54:24 +01:00
JonDeen
67d0ef0769 Merge remote-tracking branch 'owner/add-hsv' into add-hsv
Conflicts:
	libvips/colour/sRGB2HSV.c
2015-06-20 00:25:55 +02:00
JonDeen
38c44abc6d Merge branch 'master' into add-hsv 2015-06-20 00:14:51 +02:00
John Cupitt
6fc3ec028c better progress feedback 2015-06-19 15:00:48 +01:00
John Cupitt
be2537938e on second thoughts, put the assert back 2015-06-09 16:17:12 +01:00
JonDeen
6e004961ef interpret include 2015-06-09 16:50:23 +02:00
John Cupitt
c3ff482ed7 update guess_interp for HSV
remove the assert as well, safer
2015-06-09 12:42:16 +01:00
John Cupitt
a42232a9a1 boilerplate for hsv colourspace 2015-06-09 10:18:30 +01:00
John Cupitt
dbd852211e move bytw swapping out to vips_byteswap()
it was an option to vips_copy(), ugly!
2015-06-05 13:56:26 +01:00
John Cupitt
5cb2239d7d try to support DOS ppm/csv files on linux
swap \r\n for \n in vips__fgetc()
2015-06-04 12:58:30 +01:00
John Cupitt
c35e2e5427 add RefString getter
to python now unpacks VipsRefString on get_value()
2015-06-02 13:32:48 +01:00
John Cupitt
baf78fc04a oops, fix base64 encode/decode padding
we were adding up to two bytes of null to the end of base64-encoded
binary data due to a signed/unsigned mixup

add a test for this, plus a test for vips file format
2015-05-31 18:17:26 +01:00
John Cupitt
98e80903e0 metadata was not being saved to vips files
broken by the rewind changes a few weeks ago

added a test too
2015-05-28 16:19:32 +01:00
John Cupitt
bfeeb3eb27 better leak reporting
Vips::print_all now shows VipsArea leaks as well
2015-05-01 16:42:23 +01:00
John Cupitt
f5a77dd80d start some notes on threading 2015-04-27 10:57:27 +01:00
John Cupitt
ffdd9ff851 init glib langs on startup
works around a crash under heavy load, see

https://github.com/openslide/openslide/issues/161
2015-04-26 10:30:39 +01:00
John Cupitt
a00db6c8f1 doc cleanups 2015-04-24 12:49:50 +01:00
John Cupitt
42efce5c66 fix various typos
thanks dg1727

see https://github.com/jcupitt/libvips/issues/277
2015-04-21 18:39:02 +01:00