@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
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
5
|
+
This file is part of VIPS.
|
|
6
|
+
|
|
7
|
+
VIPS 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
|
+
|
|
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
|
+
|
|
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
|
|
|
@@ -34,32 +34,30 @@
|
|
|
34
34
|
|
|
35
35
|
VIPS_NAMESPACE_START
|
|
36
36
|
|
|
37
|
-
/**
|
|
37
|
+
/**
|
|
38
38
|
* An interpolation. You can pass one of these to something like
|
|
39
39
|
* VImage::affine for it to use to interpolate pixels.
|
|
40
40
|
*
|
|
41
41
|
* The available interpolators vary a bit with your libvips version and how it
|
|
42
|
-
* was built, but will include `nearest`, `bilinear` and `bicubic`. Run
|
|
42
|
+
* was built, but will include `nearest`, `bilinear` and `bicubic`. Run
|
|
43
43
|
* vips -l interpolate` to see them all.
|
|
44
44
|
*/
|
|
45
|
-
class VInterpolate : public VObject
|
|
46
|
-
{
|
|
45
|
+
class VInterpolate : public VObject {
|
|
47
46
|
public:
|
|
48
47
|
/**
|
|
49
48
|
* Create a VInterpolate that wraps a VipsInterpolate object. If steal
|
|
50
49
|
* is STEAL, then this VInterpolate takes over ownership of the libvips
|
|
51
50
|
* object and will automatically unref it.
|
|
52
51
|
*/
|
|
53
|
-
VInterpolate(
|
|
54
|
-
VObject(
|
|
52
|
+
explicit VInterpolate(VipsInterpolate *interpolate, VSteal steal = STEAL)
|
|
53
|
+
: VObject((VipsObject *) interpolate, steal)
|
|
55
54
|
{
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
/**
|
|
59
58
|
* Create a VInterpolate from a name, for example `"bicubic"`.
|
|
60
59
|
*/
|
|
61
|
-
static
|
|
62
|
-
VInterpolate new_from_name( const char *name, VOption *options = 0 );
|
|
60
|
+
static VInterpolate new_from_name(const char *name, VOption *options = nullptr);
|
|
63
61
|
|
|
64
62
|
/**
|
|
65
63
|
* Get a pointer to the underlying VipsInterpolate object.
|
|
@@ -67,9 +65,8 @@ public:
|
|
|
67
65
|
VipsInterpolate *
|
|
68
66
|
get_interpolate() const
|
|
69
67
|
{
|
|
70
|
-
return
|
|
68
|
+
return (VipsInterpolate *) VObject::get_object();
|
|
71
69
|
}
|
|
72
|
-
|
|
73
70
|
};
|
|
74
71
|
|
|
75
72
|
VIPS_NAMESPACE_END
|
package/include/vips/VRegion8.h
CHANGED
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This file is part of VIPS.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
VIPS 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
|
|
|
@@ -37,16 +37,15 @@ VIPS_NAMESPACE_START
|
|
|
37
37
|
/**
|
|
38
38
|
* A region of an image. Can be used to access raw pixel data.
|
|
39
39
|
* */
|
|
40
|
-
class VRegion : public VObject
|
|
41
|
-
{
|
|
40
|
+
class VRegion : public VObject {
|
|
42
41
|
public:
|
|
43
42
|
/**
|
|
44
43
|
* Create a VRegion that wraps a VipsRegion object. If steal
|
|
45
44
|
* is STEAL, then this VRegion takes over ownership of the libvips
|
|
46
45
|
* object and will automatically unref it.
|
|
47
46
|
*/
|
|
48
|
-
VRegion(
|
|
49
|
-
VObject(
|
|
47
|
+
explicit VRegion(VipsRegion *region, VSteal steal = STEAL)
|
|
48
|
+
: VObject((VipsObject *) region, steal)
|
|
50
49
|
{
|
|
51
50
|
}
|
|
52
51
|
|
|
@@ -54,7 +53,7 @@ public:
|
|
|
54
53
|
* Create a VRegion from an image.
|
|
55
54
|
*/
|
|
56
55
|
static VRegion
|
|
57
|
-
new_from_image(
|
|
56
|
+
new_from_image(VImage image);
|
|
58
57
|
|
|
59
58
|
/**
|
|
60
59
|
* Get a pointer to the underlying VipsRegion object.
|
|
@@ -69,9 +68,9 @@ public:
|
|
|
69
68
|
* Prepare the region from VipsRect.
|
|
70
69
|
*/
|
|
71
70
|
void
|
|
72
|
-
prepare(
|
|
71
|
+
prepare(const VipsRect *rect) const
|
|
73
72
|
{
|
|
74
|
-
if (
|
|
73
|
+
if (vips_region_prepare(get_region(), rect))
|
|
75
74
|
throw VError();
|
|
76
75
|
}
|
|
77
76
|
|
|
@@ -79,11 +78,11 @@ public:
|
|
|
79
78
|
* Prepare the region from rectangle coordinates.
|
|
80
79
|
*/
|
|
81
80
|
void
|
|
82
|
-
prepare(
|
|
81
|
+
prepare(int left, int top, int width, int height) const
|
|
83
82
|
{
|
|
84
83
|
VipsRect rect = { left, top, width, height };
|
|
85
84
|
|
|
86
|
-
prepare(
|
|
85
|
+
prepare(&rect);
|
|
87
86
|
}
|
|
88
87
|
|
|
89
88
|
/**
|
|
@@ -101,25 +100,25 @@ public:
|
|
|
101
100
|
VipsPel *
|
|
102
101
|
addr() const
|
|
103
102
|
{
|
|
104
|
-
return addr(
|
|
103
|
+
return addr(0);
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
/**
|
|
108
107
|
* Get pointer at the given index of the region.
|
|
109
108
|
*/
|
|
110
109
|
VipsPel *
|
|
111
|
-
addr(
|
|
110
|
+
addr(size_t i) const
|
|
112
111
|
{
|
|
113
|
-
return &VIPS_REGION_ADDR_TOPLEFT(
|
|
112
|
+
return &VIPS_REGION_ADDR_TOPLEFT(get_region())[i];
|
|
114
113
|
}
|
|
115
114
|
|
|
116
115
|
/**
|
|
117
116
|
* Get pointer at the given coordinates of the region.
|
|
118
117
|
*/
|
|
119
118
|
VipsPel *
|
|
120
|
-
addr(
|
|
119
|
+
addr(int x, int y) const
|
|
121
120
|
{
|
|
122
|
-
return VIPS_REGION_ADDR(
|
|
121
|
+
return VIPS_REGION_ADDR(get_region(), x, y);
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
/**
|
|
@@ -128,25 +127,25 @@ public:
|
|
|
128
127
|
size_t
|
|
129
128
|
stride() const
|
|
130
129
|
{
|
|
131
|
-
return VIPS_REGION_LSKIP(
|
|
130
|
+
return VIPS_REGION_LSKIP(get_region());
|
|
132
131
|
}
|
|
133
132
|
|
|
134
133
|
/**
|
|
135
134
|
* Get VipsPel at the given index of the region.
|
|
136
135
|
*/
|
|
137
136
|
VipsPel
|
|
138
|
-
operator[](
|
|
137
|
+
operator[](size_t i) const
|
|
139
138
|
{
|
|
140
|
-
return *addr(
|
|
139
|
+
return *addr(i);
|
|
141
140
|
}
|
|
142
141
|
|
|
143
142
|
/**
|
|
144
143
|
* Get VipsPel at the given coordinates of the region.
|
|
145
144
|
*/
|
|
146
145
|
VipsPel
|
|
147
|
-
operator()(
|
|
146
|
+
operator()(int x, int y) const
|
|
148
147
|
{
|
|
149
|
-
return *addr(
|
|
148
|
+
return *addr(x, y);
|
|
150
149
|
}
|
|
151
150
|
};
|
|
152
151
|
|