Commit Graph

32 Commits

Author SHA1 Message Date
John Cupitt 34c17fc3e8 don't minimise after sink_screen expose
We were minimising at the end of threadpool_run, but this was being
called for each sinkscreen render pass, so we were throwing away the
display cache.

Instead, minimise after sink, sink_memory and sink_disc.
2022-08-05 09:12:13 +01:00
Kleis Auke Wolthuizen 0337c09700
Cleanup gettext handling (#2695)
Use GLib's i18n support instead of copying and pasting that
logic into its own header. This deprecates the vips/intl.h
header in favour of glib/gi18n.h.
2022-02-27 15:27:28 +00: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 9246094033 Fix function pointer cast issues
It is undefined behavior in C and C++ to cast a function pointer
to another type and call it that way. This does work in most native
platforms, however, despite it being UB, but in WASM it can fail.

See:
https://emscripten.org/docs/porting/guidelines/function_pointer_issues.html
2020-06-30 13:35:41 +02:00
John Cupitt c0f5fcd975 rename nlines as n_lines
to improve consistency
2017-04-26 09:45:00 +01:00
John Cupitt af84b3097c more docs work 2014-08-19 16:57:37 +01:00
John Cupitt 4d85011a51 disable sequential skipahead
this was causing some problems on very-many-core systems

still need to update operation flags and disable seq mode for
insert/extract/etc.
2014-02-25 11:12:41 +00:00
Benjamin Gilbert 8cc76a6ba3 Update address for Free Software Foundation
Also update LGPLv2.1 license text from the copy currently on the GNU
website.
2013-03-07 00:40:19 -05:00
John Cupitt 4901c9f6a5 clean out debugging code 2012-10-31 09:17:21 +00:00
John Cupitt 8e0de67f65 sync 2012-10-30 17:16:55 +00:00
John Cupitt 0290eb009d more accurate progress reporting
computation progress used to be done incrementally based on the number
of tiles allocated. This did not take account of half tiles at image
edges, so you could sometimes see "110% complete"

it's now calculated based on the absolute number of pixels processed, so
it should always report 100% at the end.
2012-04-12 10:01:17 +01:00
John Cupitt d93f772f1f fix deadlock with generate failing
and better error msg from libpng
2012-02-23 12:42:21 +00:00
John Cupitt fa03bfb4cd tiff reader supports new sequential mode
good speedup for large tiffs

$ time ~/vips-7.26/bin/vips-7.26 vips im_copy wtc.tif x.v
real	0m12.728s
user	0m0.220s
sys	0m1.032s

$ time vips copy wtc.tif[sequential] x.v
real	0m4.328s
user	0m0.584s
sys	0m0.764s

new one was compiled with DEBUG, hence (partly) larger user time
2012-02-18 13:17:21 +00:00
John Cupitt 3dcd3729a0 fix interlaced png read
also remove old sinkmemory
2012-02-17 17:59:09 +00:00
John Cupitt ff7d02a979 start a new sinkmemory 2012-02-17 10:45:58 +00:00
John Cupitt f38c94ca65 more sequential improvements
always do everything on first pixel access if there's a @load() method
2012-02-16 16:04:19 +00:00
John Cupitt d0ec401a12 hackery to get goi working 2011-12-31 18:22:42 +00:00
John Cupitt b34c07a88f reorganise sink base class
the thread state made by sinkmemory was missing a member needed by the
base class ... move ->stop into vips thread state
2011-11-02 10:27:33 +00:00
John Cupitt 441ae2305e sync 2011-10-28 17:36:20 +01:00
John Cupitt ae8faf6597 remove dmalloc support
we never used it and valgrind etc. is better anyway
2011-09-23 17:12:47 +01:00
John Cupitt b13872f111 clean up sink
common up some stuff in the sinks
2011-03-28 14:08:42 +01:00
John Cupitt ac801dd1fc rename Rect as VipsRect
move Rect to the new Vips namespace, add gtkdoc comments, add back
compat stuff
2011-03-17 13:05:46 +00:00
John Cupitt cfe34cacd2 back to vipsobject again
but without properties now
2011-03-16 18:26:32 +00:00
John Cupitt 2abb0f8d99 move VipsRegion off VipsObject again
We were having various unfixable segvs with VipsRegion on top of
VipsObject. Move back to a simple struct to reestablish stability,
then try slowly moving back to GObject again.
2011-03-16 14:27:34 +00:00
John Cupitt 834630e562 removed debug.c
debug and sanity checking are now part of object
2011-03-10 14:17:02 +00:00
John Cupitt fd26b098b7 it runs!
"vips im_avg poop.png" now works, amazing. Test a few more things before
we merge back to master.
2011-03-07 15:52:53 +00:00
John Cupitt 6fa48b0e7d region done
VipsRegion now exists, up to semaphore.c
2011-03-03 14:49:12 +00:00
John Cupitt 6b9ddf6f54 up to REGION now
more hackery, we've now reached REGION
2011-03-02 14:13:05 +00:00
John Cupitt be134f4b82 remove setbuf
... and start on sink*().
2011-03-01 22:07:48 +00:00
John Cupitt f1d04ee443 stuff 2010-04-29 13:49:28 +00:00
John Cupitt fdbdba432b strip out threadgroup 2010-04-16 21:21:15 +00:00
John Cupitt f1ebc12fb1 added sinkmemory, started removing threadgroup 2010-04-16 16:09:48 +00:00