Commit Graph

7612 Commits

Author SHA1 Message Date
John Cupitt 14acca85d6 add notes on jp2k 2021-06-03 13:02:27 +01:00
John Cupitt ac6f0ce9f2 add jpeg-xl notes 2021-06-03 12:38:03 +01:00
John Cupitt 87f57726d2 start preparing 8.11 2021-06-03 12:13:52 +01:00
John Cupitt 3870baef33 free argv0 a little later 2021-06-01 19:02:41 +01:00
John Cupitt 43efbde995
Merge pull request #2276 from okft/master
Clean up more resources in vips_shutdown
2021-06-01 19:00:06 +01:00
GOUJON Évan 3015bb4eeb Clean up more resources in vips_shutdown 2021-06-01 19:32:59 +02:00
John Cupitt eca400e953 don't set g_set_prgname()
this should be set in the app layer, not by libraries
2021-06-01 10:29:54 +01:00
GOUJON Évan 3e9da95b84 Clean up more resources in vips_shutdown 2021-05-31 19:13:57 +02:00
John Cupitt 889ca96648 allow 10,000 frame GIFs
the old limit was 1,000, which was a little low
2021-05-25 14:08:19 +01:00
John Cupitt 98d35dda28 vips_text() was missing a couple of unlocks 2021-05-25 14:07:28 +01:00
John Cupitt dca526405e revise old comment 2021-05-25 14:06:47 +01:00
John Cupitt fc8dbfdb44
Merge pull request #2257 from kleisauke/cygwin-compatibility
Ensure compatibility with Cygwin
2021-05-17 11:32:03 +01:00
John Cupitt 257e01ecef
Merge pull request #2256 from kleisauke/libjxl-module-fix
Only build libjxl as a loadable module when it can be found
2021-05-17 10:58:33 +01:00
Kleis Auke Wolthuizen 1562ba695a Ensure compatibility with Cygwin
G_PLATFORM_WIN32 is no longer defined for Cygwin.
2021-05-17 11:54:46 +02:00
Kleis Auke Wolthuizen 169c5e07eb Only build libjxl as a loadable module when it can be found 2021-05-17 11:34:44 +02:00
John Cupitt def025da3e reorganise loadable modules
- heifload operation now defined in heifload.c, etc.
- C API wrappers moved to foreign.c
2021-05-17 09:45:27 +01:00
John Cupitt f637206e8d move vips_threadpool_push to internal API
and rename as vips__thread_execute()
2021-05-17 08:42:39 +01:00
John Cupitt 77ab3d2562 fix build with non-standard libheif location 2021-05-16 20:44:50 +01:00
John Cupitt dac75219b2 fix warning on 32-bit platforms 2021-05-16 17:47:04 +01:00
John Cupitt e52a0d3912 more libjxl dbg output 2021-05-15 13:37:19 +01:00
John Cupitt 9f01132466
Merge pull request #2251 from kleisauke/cpp-function-list-3
Update C++ binding and function list
2021-05-12 11:28:38 +01:00
Kleis Auke Wolthuizen b78812f200 Update C++ binding and function list 2021-05-12 11:36:24 +02:00
John Cupitt d577b18e69 oop, dropped a comment 2021-05-11 18:10:54 +01:00
John Cupitt eef3f9568d revise threadpool comments and docs 2021-05-11 10:23:05 +01:00
John Cupitt e00ca4e6b7 make jxlload/save a loadable module 2021-05-10 16:45:28 +01:00
John Cupitt 53255419d7 fix "make check" on raspbian
unset LC_ALL in test/, thanks ewelot
2021-05-09 15:49:44 +01:00
John Cupitt 7391418d09 revise comment 2021-05-08 20:15:10 +01:00
John Cupitt 6d9308d93c fix a couple of compiler warnings 2021-05-08 19:51:01 +01:00
John Cupitt a0e0c4e45b note new threading model in changelog 2021-05-08 18:58:54 +01:00
John Cupitt 98946e5e15
Merge pull request #2235 from kleisauke/reuse-threads
Reuse threads by using the thread pool of GLib (#2038)
2021-05-08 18:52:04 +01:00
John Cupitt 0d7dd3be7c limit jxlload image size
We were not checking the reported image size against VIPS_MAX_COORD,
leading to some glib out-of-range errors downstream.
2021-05-08 15:25:53 +01:00
John Cupitt 37988cef83 stop jxl header decode earlier
Previously, jxl header decode waited for JXL_DEC_NEED_IMAGE_OUT_BUFFER status.
But libjxl will actually allocate a lot of memory for decode before this
point, and this exposes jxlload to memory bombs.

This patch stops after JXL_DEC_COLOR_ENCODING, ie. just after the last
section before pixel data. This lets us get all image metadata, but
does no pixel buffer allocation.
2021-05-08 14:39:34 +01:00
John Cupitt 41cff4e9d0 Merge branch 'master' of github.com:libvips/libvips 2021-05-05 17:32:36 +01:00
John Cupitt a2e5717e82 Merge branch '8.10' 2021-05-05 17:32:25 +01:00
John Cupitt e19acd5148 fix load of large PPM images from a pipe
large PPM images loaded over pipes could cause a crash, thanks ewelot

see https://github.com/libvips/libvips/issues/2240
2021-05-05 17:29:50 +01:00
John Cupitt 3d142f87b6
Merge pull request #2239 from akash-akya/update-doc
Minor doc correction
2021-05-05 15:37:20 +01:00
akash-akya e39142bab2 Update doc for vips_image_get_string 2021-05-05 18:23:11 +05:30
John Cupitt 0e861d7325 improve jxl eof detection
... again
2021-05-05 12:00:21 +01:00
John Cupitt e480cfbe97 jxlload was not detecting EOF correctly
it could loop in some circumstances
2021-05-05 11:47:04 +01:00
John Cupitt b87f5ba615 add a missing rewind to jxlload 2021-05-04 19:06:22 +01:00
John Cupitt 50c96a1e3b update doxyfile for new version 2021-05-03 15:13:41 +01:00
Kleis Auke Wolthuizen 83575e347a Use gatomicrefcount in sinkscreen 2021-05-03 13:21:45 +02:00
Kleis Auke Wolthuizen 060ab7c7a2 Free the calculated pixel buffer cache early
Since threads can be reused, we need to free the
calculated pixel buffer cache early (i.e. during
vips_thread_shutdown).

This (partially) reverts commit 1a915db.
2021-05-03 13:21:45 +02:00
Kleis Auke Wolthuizen 91a143e5c9 Swap g_private_set with g_private_replace where possible
There's a possibility that the old GDestroyNotify
handler is not called when threads are being reused.
2021-05-03 13:21:45 +02:00
Kleis Auke Wolthuizen 8b01104c67 Add suppressions file for ThreadSanitizer 2021-05-03 13:21:45 +02:00
Kleis Auke Wolthuizen d1b4d12388 Move sink_disc and sink_screen threads to threadpool
And deprecate the vips_g_thread_new and vips_g_thread_join
functions.
2021-05-03 13:21:45 +02:00
Kleis Auke Wolthuizen 4144049174 Remove mutex lock for VipsThreadStartFn
vips_{avg,deviate,hough,max,min,stats} are the only arithmetic functions
that do not require a mutex on the _start and/or _stop function. All
other arithmetic functions still needs this, so move it to sink instead.
2021-05-03 13:21:45 +02:00
Kleis Auke Wolthuizen 80e0cc3d12 Reuse threads by using GLib's threadpool 2021-05-03 13:21:45 +02:00
John Cupitt 1423c550cc
Merge pull request #2234 from kleisauke/fix-ci-failures
Fix CI failures
2021-05-03 12:19:21 +01:00
Kleis Auke Wolthuizen 25a268c341 Fix CI failures
- Include the rgba image in the teardown of TestForeign.
- Fix merge conflict.
2021-05-03 12:39:40 +02:00