Commit Graph

6178 Commits

Author SHA1 Message Date
John Cupitt
ed6b26fcb1 paste in various fixes from Kleis 2019-10-28 08:51:47 +00:00
John Cupitt
552043c2c8 oop name mixup 2019-10-28 08:05:15 +00:00
John Cupitt
70a83a273d fix with older glib 2019-10-28 07:36:19 +00:00
John Cupitt
8eeb415b09 Merge branch 'master' into add-stream-object 2019-10-28 05:10:11 +00:00
John Cupitt
ba0100eb13 revise decode/unminimise use 2019-10-28 05:04:04 +00:00
John Cupitt
cbbd4ae6dd seems to work!
just a bit more cleaning up needed ...
2019-10-27 18:19:43 +00:00
John Cupitt
b7ad0da20c more reworking 2019-10-24 14:14:52 +01:00
John Cupitt
0e29e1c41e start reworking again 2019-10-24 10:57:52 +01:00
John Cupitt
c7582c79d2 remove lib wrapper from repo 2019-10-24 04:33:04 +01:00
John Cupitt
d9ab536a52 tiny formatting fix 2019-10-24 04:07:28 +01:00
John Cupitt
af8a3bfee7 fix stream buffer load 2019-10-23 18:47:57 +01:00
John Cupitt
bdb5e39efa just the test suite now 2019-10-23 14:51:29 +01:00
John Cupitt
a9a0dfee0f mostly works now
but

	cat k2.jpg | vips copy stdin x.jpg

still fails
2019-10-23 13:01:09 +01:00
John Cupitt
e27d6448b1 fix debug build 2019-10-22 23:07:17 +01:00
John Cupitt
60ce52512c builds
now needs testing
2019-10-22 17:37:05 +01:00
John Cupitt
ee3270f8e9 more refactoring 2019-10-22 11:08:54 +01:00
John Cupitt
2eed3ea45f add more types to optional args
thanks augustocdias

see https://github.com/libvips/libvips/issues/1449#issue-509081179
2019-10-21 20:58:59 +01:00
John Cupitt
8337e17428 add no_strip option to dzsave
it's sometimes useful to have pyramid tiles with ICC profiles

see https://github.com/libvips/libvips/issues/1451
2019-10-21 16:46:20 +01:00
John Cupitt
72cbaa9ea3 more revision 2019-10-21 15:04:30 +01:00
John Cupitt
d49e816641 start cleaning up 2019-10-21 10:57:20 +01:00
John Cupitt
4a311a5cdd Revert "start splitting up stream class"
This reverts commit 7756b8da71.
2019-10-18 18:00:23 +01:00
John Cupitt
7756b8da71 start splitting up stream class 2019-10-18 15:33:26 +01:00
John Cupitt
f99f3d3f57 revise seek() behaviour
fuzz tests fail though ... we need to split StreamInput up
2019-10-17 17:18:45 +01:00
John Cupitt
696ff2b24a fix up jpeg load
and revise descriptor test
2019-10-17 13:16:12 +01:00
John Cupitt
226819b8a8 move tiffload to streams
test_descriptors seems to fail now though, odd
2019-10-17 10:58:56 +01:00
John Cupitt
fb2ab23e26 start adding TIFF stream load
streams now have a seek() vfunc
2019-10-16 18:28:46 +01:00
John Cupitt
430fd97397 oop dropped webp free on load 2019-10-15 17:22:25 +01:00
John Cupitt
ad7d2b796f webp write is stream-based 2019-10-15 16:56:03 +01:00
John Cupitt
98410042ac add webpload stream
webp uses the new VipsStreamInput mmap interface
2019-10-15 15:46:37 +01:00
John Cupitt
5a788b89cf add mmap input sources
falls back to read() if no mmap
2019-10-15 14:04:47 +01:00
John Cupitt
28daeb1a8a start adding mmap input to stream 2019-10-15 10:09:24 +01:00
John Cupitt
88aa1bca86 polish png read 2019-10-15 08:33:48 +01:00
John Cupitt
c3e1dd47bf fix test suite
passes now
2019-10-14 21:01:25 +01:00
John Cupitt
55d2ba8a4d start adding png stream save
doesn't pass the test suite yet
2019-10-14 18:32:41 +01:00
John Cupitt
1bdadeed61 add png stream load 2019-10-14 18:03:45 +01:00
John Cupitt
f6d247627f incorporate revision comments from @kleisauke
Thanks!
2019-10-14 12:18:40 +01:00
John Cupitt
9ea5e902b6 test descriptor properties 2019-10-14 12:02:59 +01:00
John Cupitt
c01c3b9100 add minimise support to VipsStreamInput 2019-10-14 10:46:17 +01:00
John Cupitt
6f0002c023 add plumbing for stream minimise
and ::finish becomes a vfunc
2019-10-13 20:59:02 +01:00
John Cupitt
a8fd5602ea disable jpg descriptor test
since we don't have minimise support in stream yet
2019-10-12 17:39:10 +01:00
John Cupitt
5f6911d516 add thumbnail_stream
this works:

	$ cat k2.jpg | vips thumbnail_stream [descriptor=0] x.jpg 200
	$ vipsheader x.jpg
	temp-0: 141x200 uchar, 3 bands, srgb, jpegload
2019-10-12 17:37:31 +01:00
John Cupitt
4d3f66fe33 add stdout write
this now works:

	$ vips invert k2.jpg .jpg | vips invert stdin x.jpg

"stdin" means read from stdin, ".jpg" means write to stdout in JPG
format
2019-10-12 14:12:01 +01:00
John Cupitt
a2d57180b1 jpg stream output passes tests 2019-10-12 13:11:22 +01:00
John Cupitt
d991b73ac5 jpegsave_stream mostly done
$ vips jpegsave_buffer x.jpg

doesn't work though -- need to rethink how output blobs are made
2019-10-11 18:17:42 +01:00
John Cupitt
20cb0da247 test suite passes
with all jpegload coming via VipsStreamInput
2019-10-11 14:03:10 +01:00
John Cupitt
6c1d7db31b remove old jpeg load stuff
it's just stream now

works on buffer, but seems to fail on

	vipsheader йцук.jpg

curiously
2019-10-11 09:43:12 +01:00
John Cupitt
ad822109d4 input works
this works now:

	cat k2.jpg | vips invert - x.jpg

output next
2019-10-11 07:51:43 +01:00
John Cupitt
442720a0a1 add magic "-" stdin filename
this almost works!

$ vips invert - x.jpg < k2.jpg
2019-10-11 05:38:58 +01:00
John Cupitt
3a2bebdffb jpegload_stream registers 2019-10-10 22:02:39 +01:00
John Cupitt
387cafa738 add jpegload_stream 2019-10-10 20:42:39 +01:00