Kleis Auke Wolthuizen
0629a5de7f
Ensure consistent formatting of `->format_table` ( #3199 )
2022-11-30 09:41:05 +00:00
John Cupitt
5569022dbd
use G_GNUC_* attribute system
...
Instead of our own compiler attr thing.
see https://github.com/libvips/libvips/issues/2871
2022-09-23 14:37:35 +01:00
John Cupitt
538aa2a841
remove autotools ( #2941 )
...
* remove autotools
It seems to all work. I tested with gtk-doc enabled. I probably missed a
few things argh.
* oop, forgot m4/
2022-07-24 11:14:52 +01:00
John Cupitt
d9f31be67d
configure should add meson files to make dist
...
add meson.build etc. to EXTRA_DIST
see https://github.com/libvips/libvips/issues/2876
2022-06-20 15:04:33 +01:00
Kleis Auke Wolthuizen
bae0342d95
Update C++ binding and function list ( #2851 )
...
* Update C++ binding and function list
Also, start with a capital letter in descriptions whenever possible.
* Ensure `dzsave_target` is generated
2022-06-10 14:43:44 +01:00
Kleis Auke Wolthuizen
07edfe37b1
Improve symbol visibility ( #2688 )
...
* Improve symbol visibility
* Decorate required internal symbols with VIPS_API
* Remove a couple of stray header decls
* Incorporate review comment
- Ensure symbol visibility is also set on static libraries.
- Prefer to use `cc.has_function_attribute('visibility:hidden')`.
* Don't export internal deprecated symbols
* Move deprecated symbols to vips7compat.h
* `IM_FORMAT_H` -> `VIPS_FORMAT_H`
* Move `vips_window_ref` compat stub to `vips7compat.c`
* Disable deprecation warnings internally
* `vips_image_get_kill` -> `vips_image_iskilled`
* Ensure API compatibility
* Add missing include directives
* Move `vips__init` decl to vips7compat
* Move `vips__get_sizeof_vipsobject` to vips7compat
* Fix introspection build
* Fix 2 introspection warnings
* Ensure compatibility with vipsdisp
/usr/bin/ld: tilesource.o: in function `tile_source_new_from_source':
vipsdisp/tilesource.c:1627: undefined reference to `vips__region_no_ownership'
2022-04-16 10:58:55 +01:00
John Cupitt
62fee01f3a
add notes on cast and copy to arithmetic
2022-03-23 10:24:24 +00: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
Corentin Noël
02901436d4
Add meson build system ( #2637 )
...
Allows to use the Meson build system to build the project.
2022-02-08 15:19:36 +00:00
John Cupitt
68a8bf42a7
better arg checking for hist_find_ndim
...
we were not checking the number of input bands
move checks to _build
thanks travisbell
see https://github.com/libvips/libvips/issues/2634
2022-01-28 08:47:30 +00:00
John Cupitt
296fd99925
clarify doc comments for hist_find_
...
Say when u8 or u16 are picked.
See https://github.com/libvips/libvips/issues/2519
2021-11-07 11:14:52 +00:00
John Cupitt
4b7915994f
better test for hyperbolics
2021-11-02 23:03:05 +00:00
John Cupitt
c6d863f9d3
fix inverse hyperbolics
...
oop, typo
2021-11-02 22:58:19 +00:00
Heshy Roskes
d8c04011ea
Add hyperbolic functions ( #2508 )
...
* add hyperbolic functions
* add hyperbolic function tests
* changelog
* add inverse hyperbolic functions for old compilers
2021-11-02 15:05:37 +00:00
John Cupitt
21567e12b8
note atan2 in changelog
2021-10-20 20:42:23 +01:00
John Cupitt
de6e2fef9e
add a test for atan2
...
and tiny formatting changes
2021-10-20 20:40:39 +01:00
John Cupitt
13285c7cfc
Merge branch 'master' of https://github.com/indus/libvips into indus-master
2021-10-20 18:41:39 +01:00
Kleis Auke Wolthuizen
1044dd46eb
Move vips__ink_to_vector and im__vector_to_ink to compat ( #2488 )
...
It was only used by getpoint in vips8, which is simpler to inline.
2021-10-20 13:00:01 +01:00
John Cupitt
dd4b11063a
special case for **-1
...
Since it's very common.
See https://github.com/libvips/libvips/discussions/2352
2021-07-16 13:06:15 +01:00
John Cupitt
757d031005
always check the return of vips_image_pipeline()
...
For consistency. Although I don't think it can meaningfully fail.
2021-06-29 16:12:17 +01:00
Keim, Stefan
f75f698ab4
Add atan2 to math2
2021-06-18 11:14:02 +02:00
John Cupitt
2ce79d76a0
output double histogranms for large images
...
since images with more than 2*32 pixels will overflow a uint accumulator
thanks @erdmann
see https://github.com/libvips/libvips/issues/1976
2021-02-01 15:51:31 +00:00
John Cupitt
cba371a9ba
add a note about atan2() use in complex.c
...
see https://github.com/libvips/libvips/pull/1728
2020-07-20 13:34:41 +01:00
Kleis Auke Wolthuizen
230d2acfea
Disable IM_* environment variables when --disable-deprecated
2020-06-18 14:15:37 +02:00
John Cupitt
1ff9800958
improve hough_circle docs
...
we were not actually saying what the output axes represented
see https://github.com/libvips/ruby-vips/issues/237
2020-06-15 12:40:43 +01:00
John Cupitt
7b26bd1fdf
add more "const" decls
2020-03-05 13:41:41 +00:00
John Cupitt
22a1150cb6
Merge branch 'improve-file-formats' of https://github.com/angelmixu/libvips into angelmixu-improve-file-formats
2019-12-07 17:10:03 +00:00
John Cupitt
a50405c1f7
fix some run-time errors from clang
...
Travis is now running with some amount of run-time checking enabled and
it spotted a couple of harmless things.
2019-12-05 14:14:27 +00:00
Angel Sánchez
da8ae29abe
fix build for VS2019
2019-11-13 12:37:22 +01:00
John Cupitt
0b3ece5b42
new constants code now passes all tests
2019-08-21 16:36:18 +01:00
John Cupitt
ed2054dbbc
revise arithmetic with const
...
there's a problem with out of bounds values, for example:
vips relational_const k2.jpg x.v equal 1000
actually finds pixels == 255, since 1000 is saturated converted to 255
before the test starts.
This patch reworks arithmetic against const values to fix this.
2019-08-21 10:35:48 +01:00
John Cupitt
d6c8879f3d
NOte min size for find_trim
...
See https://github.com/libvips/libvips/issues/1392
2019-08-08 14:55:19 +01:00
John Cupitt
834acad825
fix << on signed int warnings
...
<< on a negative number is undefined behaviour in C, and will trigger
fuzzer warnings.
2019-08-02 05:35:18 +01:00
John Cupitt
37a3a6322c
remove 256 band limit from arithmetic.c
...
there was a fixed-size array in vips__bandup()
see https://github.com/libvips/libvips/issues/1335
2019-06-12 09:22:30 +01:00
Crashoz
9967ed2455
Fixed vips_rect
...
Fixed typo that broke function vips_rect
2019-03-22 15:43:10 +01:00
John Cupitt
52242cd70d
move orc init out of abs class init
2019-02-22 09:48:38 +00:00
John Cupitt
870610af4e
reduce stack usage to help musl
...
don't allocate a pointer array on the stack in arithmetic.c
see f3ef6e52ea
2018-09-04 08:46:37 +01:00
John Cupitt
f3ef6e52ea
bump max input images for sum
...
was only 64
2018-08-16 15:23:24 +01:00
Dimitri Bouron
725d39e691
Fix missing area unref in getpoint()
...
Signed-off-by: Dimitri Bouron <d.bouron@criteo.com>
2018-08-14 14:19:01 +02:00
John Cupitt
e9aaedc60a
fix some compiler warnings
...
from the msvc patch
2018-06-01 19:44:43 +01:00
John Cupitt
b085908558
remove vips7 stuff from API
...
You must now include vips7 support explicitly with
#include <vips/vips7compat.h>
in your code just after including `vips.h`.
The old vips7 names, such as `Rect`, were starting to cause problems
with other packages like opencv.
2018-05-16 15:08:21 +01:00
John Cupitt
ce1f236c4d
another 2x faster on hough_line
2018-02-02 09:12:31 +00:00
John Cupitt
59afb52f7c
hough_circle 20% speedup
2018-02-02 07:39:10 +00:00
John Cupitt
78db92e60e
better hough_line
...
2x faster, better parameter space, but breaks compat :( sorry
2018-02-01 20:41:14 +00:00
John Cupitt
0363ac6ab9
fix indexed hist combine mode
...
it now tracks which bins have been inited, so min works
2017-11-25 21:23:10 +00:00
Lovell Fuller
bb58685d1c
Use ~10x faster sqrt instead of pow when y=0.5
2017-11-17 20:24:28 +00:00
John Cupitt
4ea743f5e6
add combine mode to find_indexed
2017-11-03 16:36:09 +00:00
John Cupitt
cb37089c9b
seems to work
2017-11-01 13:16:36 +00:00
John Cupitt
3a43fd4057
vectorize 3 band case
...
needs to test for gcc though
2017-10-01 19:07:02 +01:00
Alistair Thomas
9303ee2511
Update GObject introspection annotations for /libvips/arithmetic directory
2017-09-20 10:36:21 +01:00