@img/sharp-libvips-dev 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/cplusplus/VConnection.cpp +54 -54
- package/cplusplus/VError.cpp +20 -18
- package/cplusplus/VImage.cpp +636 -589
- package/cplusplus/VInterpolate.cpp +22 -22
- package/cplusplus/VRegion.cpp +4 -4
- package/cplusplus/vips-operators.cpp +2326 -2301
- package/include/aom/aom_codec.h +10 -6
- package/include/aom/aom_decoder.h +1 -1
- package/include/aom/aom_encoder.h +9 -2
- package/include/aom/aomcx.h +72 -3
- package/include/cairo/cairo-ft.h +1 -1
- package/include/cairo/cairo-gobject.h +8 -0
- package/include/cairo/cairo-svg.h +3 -3
- package/include/cairo/cairo-version.h +2 -2
- package/include/cairo/cairo.h +91 -24
- package/include/glib-2.0/glib/gmacros.h +1 -1
- package/include/glib-2.0/glib/gtestutils.h +1 -1
- package/include/glib-2.0/gobject/gtype.h +7 -7
- package/include/harfbuzz/hb-version.h +2 -2
- package/include/hwy/aligned_allocator.h +211 -0
- package/include/hwy/base.h +1517 -0
- package/include/hwy/cache_control.h +108 -0
- package/include/hwy/detect_compiler_arch.h +281 -0
- package/include/hwy/detect_targets.h +644 -0
- package/include/hwy/foreach_target.h +340 -0
- package/include/hwy/highway.h +435 -0
- package/include/hwy/highway_export.h +74 -0
- package/include/hwy/nanobenchmark.h +171 -0
- package/include/hwy/ops/arm_neon-inl.h +8913 -0
- package/include/hwy/ops/arm_sve-inl.h +5105 -0
- package/include/hwy/ops/emu128-inl.h +2811 -0
- package/include/hwy/ops/generic_ops-inl.h +4745 -0
- package/include/hwy/ops/ppc_vsx-inl.h +5716 -0
- package/include/hwy/ops/rvv-inl.h +5070 -0
- package/include/hwy/ops/scalar-inl.h +1995 -0
- package/include/hwy/ops/set_macros-inl.h +578 -0
- package/include/hwy/ops/shared-inl.h +539 -0
- package/include/hwy/ops/tuple-inl.h +125 -0
- package/include/hwy/ops/wasm_128-inl.h +5917 -0
- package/include/hwy/ops/x86_128-inl.h +11173 -0
- package/include/hwy/ops/x86_256-inl.h +7529 -0
- package/include/hwy/ops/x86_512-inl.h +6849 -0
- package/include/hwy/per_target.h +44 -0
- package/include/hwy/print-inl.h +62 -0
- package/include/hwy/print.h +75 -0
- package/include/hwy/robust_statistics.h +148 -0
- package/include/hwy/targets.h +338 -0
- package/include/hwy/timer-inl.h +200 -0
- package/include/hwy/timer.h +55 -0
- package/include/jconfig.h +2 -2
- package/include/jpeglib.h +3 -2
- package/include/libheif/heif.h +461 -384
- package/include/libheif/heif_cxx.h +4 -1
- package/include/libheif/heif_plugin.h +1 -1
- package/include/libheif/heif_properties.h +138 -0
- package/include/libheif/heif_regions.h +866 -0
- package/include/libheif/heif_version.h +3 -3
- package/include/libpng16/pnglibconf.h +1 -1
- package/include/pnglibconf.h +1 -1
- package/include/vips/VConnection8.h +43 -49
- package/include/vips/VError8.h +27 -24
- package/include/vips/VImage8.h +4861 -4597
- package/include/vips/VInterpolate8.h +24 -27
- package/include/vips/VRegion8.h +32 -33
- package/include/vips/arithmetic.h +169 -169
- package/include/vips/basic.h +33 -33
- package/include/vips/buf.h +56 -54
- package/include/vips/colour.h +95 -95
- package/include/vips/connection.h +190 -193
- package/include/vips/conversion.h +91 -91
- package/include/vips/convolution.h +36 -30
- package/include/vips/create.h +63 -63
- package/include/vips/dbuf.h +35 -37
- package/include/vips/debug.h +65 -33
- package/include/vips/draw.h +41 -41
- package/include/vips/enumtypes.h +54 -51
- package/include/vips/error.h +63 -63
- package/include/vips/foreign.h +263 -223
- package/include/vips/format.h +48 -48
- package/include/vips/freqfilt.h +22 -22
- package/include/vips/gate.h +55 -47
- package/include/vips/generate.h +34 -34
- package/include/vips/header.h +111 -101
- package/include/vips/histogram.h +28 -28
- package/include/vips/image.h +213 -213
- package/include/vips/interpolate.h +40 -41
- package/include/vips/memory.h +61 -52
- package/include/vips/morphology.h +24 -24
- package/include/vips/mosaicing.h +32 -33
- package/include/vips/object.h +371 -357
- package/include/vips/operation.h +68 -67
- package/include/vips/private.h +76 -76
- package/include/vips/rect.h +26 -26
- package/include/vips/region.h +92 -92
- package/include/vips/resample.h +38 -38
- package/include/vips/sbuf.h +53 -54
- package/include/vips/semaphore.h +24 -24
- package/include/vips/thread.h +30 -27
- package/include/vips/threadpool.h +48 -49
- package/include/vips/transform.h +39 -39
- package/include/vips/type.h +90 -85
- package/include/vips/util.h +274 -229
- package/include/vips/vector.h +24 -144
- package/include/vips/version.h +9 -9
- package/include/vips/vips.h +41 -40
- package/include/zlib.h +23 -19
- package/package.json +1 -1
- package/versions.json +9 -9
package/README.md
CHANGED
|
@@ -19,22 +19,22 @@ used under the terms of the following licences:
|
|
|
19
19
|
| gdk-pixbuf | LGPLv3 |
|
|
20
20
|
| glib | LGPLv3 |
|
|
21
21
|
| harfbuzz | MIT Licence |
|
|
22
|
+
| highway | Apache-2.0 License, BSD 3-Clause |
|
|
22
23
|
| lcms | MIT Licence |
|
|
23
24
|
| libarchive | BSD 2-Clause |
|
|
24
25
|
| libexif | LGPLv3 |
|
|
25
26
|
| libffi | MIT Licence |
|
|
26
27
|
| libheif | LGPLv3 |
|
|
27
28
|
| libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) |
|
|
28
|
-
| mozjpeg | [zlib License, IJG License, BSD-3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) |
|
|
29
29
|
| libnsgif | MIT Licence |
|
|
30
30
|
| libpng | [libpng License](https://github.com/glennrp/libpng/blob/master/LICENSE) |
|
|
31
31
|
| librsvg | LGPLv3 |
|
|
32
32
|
| libspng | [BSD 2-Clause, libpng License](https://github.com/randy408/libspng/blob/master/LICENSE) |
|
|
33
|
-
| libtiff | [libtiff License](https://
|
|
33
|
+
| libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) |
|
|
34
34
|
| libvips | LGPLv3 |
|
|
35
35
|
| libwebp | New BSD License |
|
|
36
36
|
| libxml2 | MIT Licence |
|
|
37
|
-
|
|
|
37
|
+
| mozjpeg | [zlib License, IJG License, BSD-3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) |
|
|
38
38
|
| pango | LGPLv3 |
|
|
39
39
|
| pixman | MIT Licence |
|
|
40
40
|
| proxy-libintl | LGPLv3 |
|
|
@@ -3,28 +3,28 @@
|
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Copyright (C) 1991-2001 The National Gallery
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
This program is free software; you can redistribute it and/or modify
|
|
9
|
+
it under the terms of the GNU Lesser General Public License as published by
|
|
10
|
+
the Free Software Foundation; either version 2 of the License, or
|
|
11
|
+
(at your option) any later version.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
This program is distributed in the hope that it will be useful,
|
|
14
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
GNU Lesser General Public License for more details.
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
You should have received a copy of the GNU Lesser General Public License
|
|
19
|
+
along with this program; if not, write to the Free Software
|
|
20
|
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
21
|
+
02110-1301 USA
|
|
22
22
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
/*
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
|
|
28
28
|
|
|
29
29
|
*/
|
|
30
30
|
|
|
@@ -43,109 +43,109 @@
|
|
|
43
43
|
|
|
44
44
|
VIPS_NAMESPACE_START
|
|
45
45
|
|
|
46
|
-
VSource
|
|
47
|
-
VSource::new_from_descriptor(
|
|
46
|
+
VSource
|
|
47
|
+
VSource::new_from_descriptor(int descriptor)
|
|
48
48
|
{
|
|
49
49
|
VipsSource *input;
|
|
50
50
|
|
|
51
|
-
if(
|
|
51
|
+
if (!(input = vips_source_new_from_descriptor(descriptor)))
|
|
52
52
|
throw VError();
|
|
53
53
|
|
|
54
|
-
VSource out(
|
|
54
|
+
VSource out(input);
|
|
55
55
|
|
|
56
|
-
return
|
|
56
|
+
return out;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
VSource
|
|
60
|
-
VSource::new_from_file(
|
|
59
|
+
VSource
|
|
60
|
+
VSource::new_from_file(const char *filename)
|
|
61
61
|
{
|
|
62
62
|
VipsSource *input;
|
|
63
63
|
|
|
64
|
-
if(
|
|
64
|
+
if (!(input = vips_source_new_from_file(filename)))
|
|
65
65
|
throw VError();
|
|
66
66
|
|
|
67
|
-
VSource out(
|
|
67
|
+
VSource out(input);
|
|
68
68
|
|
|
69
|
-
return
|
|
69
|
+
return out;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
VSource
|
|
73
|
-
VSource::new_from_blob(
|
|
72
|
+
VSource
|
|
73
|
+
VSource::new_from_blob(VipsBlob *blob)
|
|
74
74
|
{
|
|
75
75
|
VipsSource *input;
|
|
76
76
|
|
|
77
|
-
if(
|
|
77
|
+
if (!(input = vips_source_new_from_blob(blob)))
|
|
78
78
|
throw VError();
|
|
79
79
|
|
|
80
|
-
VSource out(
|
|
80
|
+
VSource out(input);
|
|
81
81
|
|
|
82
|
-
return
|
|
82
|
+
return out;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
VSource
|
|
86
|
-
VSource::new_from_memory(
|
|
87
|
-
size_t size
|
|
85
|
+
VSource
|
|
86
|
+
VSource::new_from_memory(const void *data,
|
|
87
|
+
size_t size)
|
|
88
88
|
{
|
|
89
89
|
VipsSource *input;
|
|
90
90
|
|
|
91
|
-
if(
|
|
91
|
+
if (!(input = vips_source_new_from_memory(data, size)))
|
|
92
92
|
throw VError();
|
|
93
93
|
|
|
94
|
-
VSource out(
|
|
94
|
+
VSource out(input);
|
|
95
95
|
|
|
96
|
-
return
|
|
96
|
+
return out;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
VSource
|
|
100
|
-
VSource::new_from_options(
|
|
99
|
+
VSource
|
|
100
|
+
VSource::new_from_options(const char *options)
|
|
101
101
|
{
|
|
102
102
|
VipsSource *input;
|
|
103
103
|
|
|
104
|
-
if(
|
|
104
|
+
if (!(input = vips_source_new_from_options(options)))
|
|
105
105
|
throw VError();
|
|
106
106
|
|
|
107
|
-
VSource out(
|
|
107
|
+
VSource out(input);
|
|
108
108
|
|
|
109
|
-
return
|
|
109
|
+
return out;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
VTarget
|
|
113
|
-
VTarget::new_to_descriptor(
|
|
112
|
+
VTarget
|
|
113
|
+
VTarget::new_to_descriptor(int descriptor)
|
|
114
114
|
{
|
|
115
115
|
VipsTarget *output;
|
|
116
116
|
|
|
117
|
-
if(
|
|
117
|
+
if (!(output = vips_target_new_to_descriptor(descriptor)))
|
|
118
118
|
throw VError();
|
|
119
119
|
|
|
120
|
-
VTarget out(
|
|
120
|
+
VTarget out(output);
|
|
121
121
|
|
|
122
|
-
return
|
|
122
|
+
return out;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
VTarget
|
|
126
|
-
VTarget::new_to_file(
|
|
125
|
+
VTarget
|
|
126
|
+
VTarget::new_to_file(const char *filename)
|
|
127
127
|
{
|
|
128
128
|
VipsTarget *output;
|
|
129
129
|
|
|
130
|
-
if(
|
|
130
|
+
if (!(output = vips_target_new_to_file(filename)))
|
|
131
131
|
throw VError();
|
|
132
132
|
|
|
133
|
-
VTarget out(
|
|
133
|
+
VTarget out(output);
|
|
134
134
|
|
|
135
|
-
return
|
|
135
|
+
return out;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
VTarget
|
|
138
|
+
VTarget
|
|
139
139
|
VTarget::new_to_memory()
|
|
140
140
|
{
|
|
141
141
|
VipsTarget *output;
|
|
142
142
|
|
|
143
|
-
if(
|
|
143
|
+
if (!(output = vips_target_new_to_memory()))
|
|
144
144
|
throw VError();
|
|
145
145
|
|
|
146
|
-
VTarget out(
|
|
146
|
+
VTarget out(output);
|
|
147
147
|
|
|
148
|
-
return
|
|
148
|
+
return out;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
VIPS_NAMESPACE_END
|
package/cplusplus/VError.cpp
CHANGED
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Copyright (C) 1991-2001 The National Gallery
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
This program is free software; you can redistribute it and/or modify
|
|
8
|
+
it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
the Free Software Foundation; either version 2 of the License, or
|
|
10
|
+
(at your option) any later version.
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
This program is distributed in the hope that it will be useful,
|
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
GNU Lesser General Public License for more details.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
along with this program; if not, write to the Free Software
|
|
19
|
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
20
|
+
02110-1301 USA
|
|
21
21
|
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
/*
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
|
|
27
27
|
|
|
28
28
|
*/
|
|
29
29
|
|
|
@@ -35,13 +35,15 @@
|
|
|
35
35
|
|
|
36
36
|
VIPS_NAMESPACE_START
|
|
37
37
|
|
|
38
|
-
std::ostream &
|
|
38
|
+
std::ostream &
|
|
39
|
+
operator<<(std::ostream &file, const VError &err)
|
|
39
40
|
{
|
|
40
|
-
err.ostream_print(
|
|
41
|
-
return
|
|
41
|
+
err.ostream_print(file);
|
|
42
|
+
return file;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
void
|
|
45
|
+
void
|
|
46
|
+
VError::ostream_print(std::ostream &file) const
|
|
45
47
|
{
|
|
46
48
|
file << _what;
|
|
47
49
|
}
|