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
50a74ceeec
Mark some functions and variables as static ( #2691 )
...
These are only used in the same file, and not exported.
2022-02-27 13:41:39 +00:00
Corentin Noël
69bf2be12b
Enhance the introspection support by fixing annotations ( #2657 )
...
Also refine the .metadata file
2022-02-15 10:54:40 +00:00
John Cupitt
362adae8c6
Revert "Enhance the introspection support by fixing annotations ( #2655 )" ( #2656 )
...
This reverts commit 47796dcda0
.
2022-02-15 10:08:07 +00:00
Corentin Noël
47796dcda0
Enhance the introspection support by fixing annotations ( #2655 )
...
* Ensure that double asterisk characters are only used for gtk-doc comments
This triggers warnings when parsing the files with the introspection scanner
and gtk-doc
* Enhance the introspection support by fixing annotations
Also refine the .metadata file
Co-authored-by: John Cupitt <jcupitt@gmail.com>
2022-02-15 09:54:32 +00:00
John Cupitt
d203a3fb89
small comment improvements
2020-07-21 18:03:45 +01:00
Lovell Fuller
e508ea6511
Performance: improve scRGB to sRGB conversion by ~8%
...
- Remove unnecessary isinf checks as values are clipped
- Remove any ignored out-of-gamut tracking
2020-07-21 14:36:57 +01:00
Lovell Fuller
768ab7fa8f
Improve greyscale perf by using isinf/isnan after calc
2018-01-02 20:36:14 +00:00
John Cupitt
955a5a97cc
sRGB2scRGB uses the colour luts directly
...
rather than going via a function that clips ... about 2x faster
2017-11-26 16:47:24 +00:00
John Cupitt
f9f717a843
add VIPS_ONCE and use it everywhere
...
Lovell's idea: save the function call in the most common case
2017-11-23 08:43:08 +00:00
Lovell Fuller
cef897ece8
~20% speedup for sRGB to scRGB pixel conversion
...
by checking GOnce status with branch expectation
2017-11-23 07:36:19 +00:00
Alistair Thomas
2917c73404
Update GObject introspection annotations for libvips/colour directory
2017-09-30 19:29:17 +01:00
John Cupitt
bc0bde85cb
remove a couple of statics
...
g_once() is fast enough
2016-10-11 14:12:45 +01:00
John Cupitt
61d2aa6586
formatting
2016-03-10 08:53:54 +00:00
Lovell Fuller
a40397c438
Build LAB to sRGB tables only when first needed
...
Reduces libvips start-up time by ~20ms
2016-03-09 19:20:57 +00:00
Lovell Fuller
90c1fb9a94
Use gcc/clang isnan and isinf builtin functions where available.
...
These are used heavily in the building of look-up tables at
start-up time and therefore improve vipsthumbnail perf by ~4%.
2016-01-20 19:02:14 +00:00
John Cupitt
46259f934f
fix description on LabQ2sRGB
...
thanks dg1727
see https://github.com/jcupitt/libvips/issues/272
2015-04-20 13:03:15 +01:00
John Cupitt
a0aacad871
much better convert to greyscale
...
mix RGB channels as .2, .7, .1 in linear light
see https://github.com/jcupitt/libvips/issues/266
2015-04-17 11:33:27 +01:00
John Cupitt
0c466b9495
don't use isnormal() to test for crazy FP numbers
...
it fails for 0.0 and for subnormal numbers, thanks Murat Korkmazov
2015-02-04 15:13:11 +00:00
John Cupitt
be4ffa6d8a
more pyvips8 docs
...
and cleanups of various small doc markup errors
2014-11-07 14:49:18 +00:00
John Cupitt
2fd2fd58f7
fix up gtk-doc
...
fix various problems:
- out of date IGNORE in doc/reference/Makefile.am
- name clashes between private .h and public
2013-06-17 20:16:20 +01: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
c341f0d134
add scRGB functions
2012-12-11 15:25:28 +00:00
John Cupitt
1bddb78f6a
split sRGB <-> XYZ up
...
split sRGB <-> XYZ into sRGB <-> scRGB <-> XYZ so we can support
scRGB as a colourspace
2012-12-11 13:50:58 +00:00
John Cupitt
77ec00b495
check for NaN etc. in XYZ2sRGB
...
we were not checking for Inf, NaN etc. and this could cause array
indexes to go out of range
2012-12-11 12:28:25 +00:00
John Cupitt
6a1753577d
better rounding behaviour for sRGB <-> XYZ
2012-11-06 21:32:13 +00:00
John Cupitt
2ffbcb709c
16-bit sRGB -> XYZ works
2012-11-06 13:30:30 +00:00
John Cupitt
cb4965536d
added 16-bit sRGB/XYZ conversion
...
need to get it working on images though
2012-11-06 09:35:34 +00:00
John Cupitt
e0b3b4157f
get ready for a 16-bit path in srgb/xyz
2012-11-05 22:11:15 +00:00
John Cupitt
9b197dbd17
much more accurate sRGB <-> XYZ conversion
2012-11-05 14:13:40 +00:00
John Cupitt
63a06e5f81
faster and more accurate sRGB <-> XYZ
...
just use one table, since all colour channels are the same now
have more points in the float -> int direction, fewer in int -> float
faster out of range detection
2012-11-01 08:53:54 +00:00
John Cupitt
6e1e3d4be1
better cache trace, small fixes
2012-10-29 17:19:15 +00:00
John Cupitt
52a188c3c5
new icc stuff now works
2012-09-26 14:53:14 +01:00
John Cupitt
f8dddf23a9
remove disp stuff, just sRGB now
...
all the old monitor calibration stuff is gone, we only support sRGB now
im_Lab2disp() etc. have become vips_Lab2sRGB() etc.
compatibility macros keep old code compiling
2012-09-24 11:23:32 +01:00
John Cupitt
2ce7bc9618
started moving disp funcs
2012-09-21 14:47:50 +01:00