Commit Graph

7086 Commits

Author SHA1 Message Date
John Cupitt 888b5654a0 fix heifload with libheif 1.6
heif_avif wasn't added until libheif 1.7
2020-10-11 19:54:36 +01:00
John Cupitt 8d4852f217
Merge pull request #1852 from kleisauke/vips-argument-collect-set
Speed up VIPS_ARGUMENT_COLLECT_SET
2020-10-11 19:34:23 +01:00
Kleis Auke Wolthuizen e0b3e53c0e Speed up VIPS_ARGUMENT_COLLECT_SET
By using G_VALUE_COLLECT_INIT, see:
https://bugzilla.gnome.org/show_bug.cgi?id=603590
2020-10-10 19:48:52 +02:00
John Cupitt 302f1f70d9
Merge pull request #1850 from lovell/heif-compression-metadata
heifload: expose heif-compression metadata
2020-10-10 06:07:02 +01:00
Lovell Fuller 1177bd1dae heifload: expose heif-compression metadata 2020-10-09 15:54:17 +01:00
John Cupitt f1d2d4030e fix build with libheif save buit not load
We had some definitions inside the #ifdef HEIFLOAD.

Thanks estepnv

https://github.com/libvips/libvips/issues/1844
2020-10-09 14:02:53 +01:00
John Cupitt 29b6ba1294 Merge branch '8.10' 2020-10-07 15:27:27 +01:00
John Cupitt 678b6d5c95 fix a regression in the C path for dilate/erode
A ++ had been dropped in the recent refactoring. Credit to kleisauke.

See https://github.com/libvips/libvips/issues/1846
2020-10-07 15:23:40 +01:00
John Cupitt 9fbf49cf60 Merge branch '8.10' 2020-10-06 11:43:13 +01:00
John Cupitt 80b73af225 note new "speed" param in heifsave
To help support the rapid move to AVIF.

see https://github.com/libvips/libvips/pull/1819#issuecomment-704145244
2020-10-06 10:50:06 +01:00
Lovell Fuller fc1e609f44 libheif: expose speed parameter (currently AV1 compression only)
Supports both aom and rav1e encoders by limiting to a 0-8 range.

(The rav1e encoder accepts speed values of 9 and 10 but these
use 64x64 blocks more suited to video than images.)
2020-10-06 10:48:54 +01:00
John Cupitt f1c8959e66 add a test for vipsthumbnail of stdin/stdout 2020-10-04 16:14:13 +01:00
John Cupitt 74d399088a Merge branch '8.10' 2020-10-04 14:26:40 +01:00
John Cupitt 5b119e183f pdfload was missing a rewind on source 2020-10-04 14:26:13 +01:00
John Cupitt edbe9bf8ef revise pipe sources (again)
Simplify and cleanup.
2020-10-04 14:05:53 +01:00
John Cupitt 727eb2ee39 Merge branch '8.10' 2020-10-03 18:29:23 +01:00
John Cupitt 0ee8b1e844 improve seek on pipes
There were a few issues in VipsSource around seeking on pipes. With this
patch, EOF detection is better, and pipe sources automatically turn into memory
sources when EOF is hit.

see https://github.com/libvips/libvips/issues/1829
2020-10-03 18:25:24 +01:00
John Cupitt a1505c6f72 add stdin, stdout to vipsthumbnail
eg.

	vipsthumbnail stdin[page=2] -o .jpg[Q=90]

mirror of syntax in new_from_file etc.
2020-10-02 16:46:03 +01:00
John Cupitt fbaa3c6dff update vipsthumbnail docs for --export-profile
and --input-profile
2020-10-02 11:42:04 +01:00
John Cupitt f2956ac069 note improvements to iprofile
The docs had fallen behind a bit ... iprofile is no longer usually necessary.

see https://github.com/libvips/libvips/issues/1843
2020-10-02 11:20:35 +01:00
John Cupitt c27c471e28 Merge branch '8.10' 2020-09-28 12:33:32 +01:00
John Cupitt e3181e0579 get docs building with goi 1.66+
It builds now, but some doc sections are missing. Fix this properly in
8.11.

See https://github.com/libvips/libvips/issues/1836
2020-09-28 12:32:06 +01:00
John Cupitt b3f77634df Merge branch '8.10' of github.com:libvips/libvips into 8.10 2020-09-27 10:03:29 +01:00
John Cupitt b078c3c164 Merge branch '8.10' 2020-09-26 13:15:45 +01:00
John Cupitt 237604bb07 revise heifload EOF detection
VipsSource used a unix-style model where read() returns 0 to mean EOF.
libheif uses a model where a separate call to wait_for_file_size()
beforehand is used to check thaht the read will be OK, and then the
read() is expected to never fail.

We were trying to put EOF detection into libheif read(), but that's not
the right way to do it. Instead, test for EOF in wait_for_file_size().

see https://github.com/libvips/libvips/pull/1833
2020-09-26 13:00:52 +01:00
Lovell Fuller 7829518847 heifload: prevent reading beyond end of source buffer 2020-09-26 12:03:06 +01:00
Lovell Fuller c714a2b315 heifload: prevent reading beyond end of source buffer 2020-09-26 04:02:29 +01:00
John Cupitt 119bc7357d
Merge pull request #1833 from lovell/libheif-check-source-buffer-length
heifload: prevent read beyond end of source buffer
2020-09-26 04:01:19 +01:00
Lovell Fuller cee4061c73 heifload: prevent reading beyond end of source buffer 2020-09-25 18:53:29 +01:00
John Cupitt d967f2bf65 Merge branch '8.10' 2020-09-25 12:43:24 +01:00
John Cupitt cdae2c1995 note fractsurf fix in changelog 2020-09-25 12:43:04 +01:00
Kleis Auke Wolthuizen 01765df53c Fix test failure on ARM-based Windows
The optional parameters of vips_gaussnoise were incorrectly
passed within vips_fractsurf. This was discovered when running
the libvips testsuite on Windows 10 IoT (ARM32).
2020-09-25 12:41:22 +01:00
John Cupitt 08cd0a93f7
Merge pull request #1832 from kleisauke/gaussnoise-params
Fix test failure on ARM-based Windows
2020-09-25 12:40:35 +01:00
Kleis Auke Wolthuizen 6155b6d093 Fix test failure on ARM-based Windows
The optional parameters of vips_gaussnoise were incorrectly
passed within vips_fractsurf. This was discovered when running
the libvips testsuite on Windows 10 IoT (ARM32).
2020-09-25 12:52:31 +02:00
John Cupitt fd0a0905ff note VImage::new_from_memory_steal() in ChangeLog
plus doxy commnets etc., see https://github.com/libvips/libvips/pull/1758/
2020-09-24 10:44:49 +01:00
John Cupitt 62e1cb4862
Merge pull request #1758 from Zeranoe/master
Add C++ bindings for new_from_memory_steal()
2020-09-24 10:31:53 +01:00
John Cupitt 25bd6cce6f
Merge branch 'master' into master 2020-09-24 10:31:01 +01:00
John Cupitt 1826dd082a
Merge pull request #1770 from libvips/pdfload-minimise
put minimise support back into pdfload
2020-09-24 09:57:26 +01:00
John Cupitt 1388aef361 Merge branch '8.10' 2020-09-23 21:04:57 +01:00
John Cupitt 8d52c8b761 revise heif sniffing again 2020-09-23 21:03:22 +01:00
Lovell Fuller b6276dd44d heifload: simplify is_a check of first 4 bytes
Allow multiples of 4, up to 32, as chunk length
2020-09-23 20:49:48 +01:00
John Cupitt 1ae4110458
Merge pull request #1831 from lovell/libheif-is-a-sig-chunk-len
libheif: simplify is_a check of first 4 bytes
2020-09-23 20:48:52 +01:00
Lovell Fuller aa052da22d heifload: simplify is_a check of first 4 bytes
Allow multiples of 4, up to 32, as chunk length
2020-09-23 18:31:20 +01:00
John Cupitt 01bbef36d5 Merge branch '8.10' 2020-09-23 08:14:47 +01:00
John Cupitt e4b711a358 better heif signature detection 2020-09-23 08:13:52 +01:00
Lovell Fuller 553eb73965 Verify ISO/3GPP2 signature in heifload is_a check 2020-09-23 08:12:14 +01:00
John Cupitt 73ef7dbf2a
Merge pull request #1828 from lovell/heif-verify-iso-container
heifload: verify ISO BMFF/3GPP2 signature in is_a check
2020-09-23 07:50:12 +01:00
Lovell Fuller 1922a97a85 Verify ISO/3GPP2 signature in heifload is_a check 2020-09-22 22:09:35 +01:00
John Cupitt 58a327b7f9 Merge branch '8.10' 2020-09-21 10:07:39 +01:00
John Cupitt ffe574399e oop typo 2020-09-21 10:07:25 +01:00