@img/sharp-libvips-dev 0.0.1 → 0.0.2
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 +2 -2
- 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/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 +443 -377
- 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/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/package.json +1 -1
- package/versions.json +7 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* HEIF codec.
|
|
3
|
-
* Copyright (c) 2017
|
|
3
|
+
* Copyright (c) 2017 Dirk Farin <dirk.farin@gmail.com>
|
|
4
4
|
*
|
|
5
5
|
* This file is part of libheif.
|
|
6
6
|
*
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
#define LIBHEIF_HEIF_VERSION_H
|
|
29
29
|
|
|
30
30
|
/* Numeric representation of the version */
|
|
31
|
-
#define LIBHEIF_NUMERIC_VERSION ((1<<24) | (
|
|
31
|
+
#define LIBHEIF_NUMERIC_VERSION ((1<<24) | (17<<16) | (1<<8) | 0)
|
|
32
32
|
|
|
33
33
|
/* Version string */
|
|
34
|
-
#define LIBHEIF_VERSION "1.
|
|
34
|
+
#define LIBHEIF_VERSION "1.17.1"
|
|
35
35
|
|
|
36
36
|
#define LIBHEIF_PLUGIN_DIRECTORY "/target/lib/libheif"
|
|
37
37
|
|
|
@@ -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
|
|
|
@@ -36,103 +36,98 @@ VIPS_NAMESPACE_START
|
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* A generic source object. These supply a stream of bytes that loaders can
|
|
39
|
-
* use to fetch image files, see VImage::new_from_source().
|
|
39
|
+
* use to fetch image files, see VImage::new_from_source().
|
|
40
40
|
*
|
|
41
41
|
* Methods let you can connect a source up to memory, a file or
|
|
42
42
|
* a file descriptor. Use vips::VSourceCustom to implement custom sources
|
|
43
43
|
* using GObject signals.
|
|
44
44
|
*/
|
|
45
|
-
class VSource : public VObject
|
|
46
|
-
{
|
|
45
|
+
class VSource : public VObject {
|
|
47
46
|
public:
|
|
48
47
|
/**
|
|
49
48
|
* Wrap a VSource around an underlying VipsSource object.
|
|
50
49
|
*/
|
|
51
|
-
VSource(
|
|
52
|
-
VObject(
|
|
50
|
+
explicit VSource(VipsSource *input, VSteal steal = STEAL)
|
|
51
|
+
: VObject((VipsObject *) input, steal)
|
|
53
52
|
{
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
/**
|
|
57
56
|
* Make a new VSource from a file descriptor.
|
|
58
57
|
*/
|
|
59
|
-
static VSource
|
|
60
|
-
new_from_descriptor(
|
|
58
|
+
static VSource
|
|
59
|
+
new_from_descriptor(int descriptor);
|
|
61
60
|
|
|
62
61
|
/**
|
|
63
62
|
* Make a new VSource from a file on disc.
|
|
64
63
|
*/
|
|
65
|
-
static VSource
|
|
66
|
-
new_from_file(
|
|
64
|
+
static VSource
|
|
65
|
+
new_from_file(const char *filename);
|
|
67
66
|
|
|
68
67
|
/**
|
|
69
68
|
* Make a new VSource from a binary object.
|
|
70
69
|
*/
|
|
71
|
-
static VSource
|
|
72
|
-
new_from_blob(
|
|
70
|
+
static VSource
|
|
71
|
+
new_from_blob(VipsBlob *blob);
|
|
73
72
|
|
|
74
73
|
/**
|
|
75
74
|
* Make a new VSource from an area of memory.
|
|
76
75
|
*/
|
|
77
|
-
static VSource
|
|
78
|
-
new_from_memory(
|
|
76
|
+
static VSource
|
|
77
|
+
new_from_memory(const void *data, size_t size);
|
|
79
78
|
|
|
80
79
|
/**
|
|
81
80
|
* Make a new VSource from a set of options encoded as a string. See
|
|
82
81
|
* vips_source_new().
|
|
83
82
|
*/
|
|
84
|
-
static VSource
|
|
85
|
-
new_from_options(
|
|
83
|
+
static VSource
|
|
84
|
+
new_from_options(const char *options);
|
|
86
85
|
|
|
87
86
|
/**
|
|
88
|
-
* Get a pointer to the underlying VipsSoure object.
|
|
87
|
+
* Get a pointer to the underlying VipsSoure object.
|
|
89
88
|
*/
|
|
90
89
|
VipsSource *
|
|
91
90
|
get_source() const
|
|
92
91
|
{
|
|
93
|
-
return
|
|
92
|
+
return (VipsSource *) VObject::get_object();
|
|
94
93
|
}
|
|
95
|
-
|
|
96
94
|
};
|
|
97
95
|
|
|
98
96
|
/**
|
|
99
97
|
* A generic target object. Savers can use these to write a stream of bytes
|
|
100
|
-
* somewhere, see VImage::write_to_target().
|
|
98
|
+
* somewhere, see VImage::write_to_target().
|
|
101
99
|
*
|
|
102
100
|
* Methods let you can connect a target up to memory, a file or
|
|
103
101
|
* a file descriptor. Use vips::VTargetCustom to implement custom targets
|
|
104
102
|
* using GObject signals.
|
|
105
103
|
*/
|
|
106
|
-
class VTarget : public VObject
|
|
107
|
-
{
|
|
104
|
+
class VTarget : public VObject {
|
|
108
105
|
public:
|
|
109
106
|
/**
|
|
110
107
|
* Wrap a VTarget around an underlying VipsTarget object.
|
|
111
108
|
*/
|
|
112
|
-
VTarget(
|
|
113
|
-
VObject(
|
|
109
|
+
explicit VTarget(VipsTarget *output, VSteal steal = STEAL)
|
|
110
|
+
: VObject((VipsObject *) output, steal)
|
|
114
111
|
{
|
|
115
112
|
}
|
|
116
113
|
|
|
117
114
|
/**
|
|
118
|
-
* Make a new VTarget which, when written to, will write to a file
|
|
115
|
+
* Make a new VTarget which, when written to, will write to a file
|
|
119
116
|
* descriptor.
|
|
120
117
|
*/
|
|
121
|
-
static VTarget
|
|
122
|
-
new_to_descriptor(
|
|
118
|
+
static VTarget
|
|
119
|
+
new_to_descriptor(int descriptor);
|
|
123
120
|
|
|
124
121
|
/**
|
|
125
122
|
* Make a new VTarget which, when written to, will write to a file.
|
|
126
123
|
*/
|
|
127
|
-
static
|
|
128
|
-
VTarget new_to_file( const char *filename );
|
|
124
|
+
static VTarget new_to_file(const char *filename);
|
|
129
125
|
|
|
130
126
|
/**
|
|
131
127
|
* Make a new VTarget which, when written to, will write to a file
|
|
132
128
|
* descriptor.
|
|
133
129
|
*/
|
|
134
|
-
static
|
|
135
|
-
VTarget new_to_memory();
|
|
130
|
+
static VTarget new_to_memory();
|
|
136
131
|
|
|
137
132
|
/**
|
|
138
133
|
* Get a pointer to the underlying VipsTarget object.
|
|
@@ -140,9 +135,8 @@ public:
|
|
|
140
135
|
VipsTarget *
|
|
141
136
|
get_target() const
|
|
142
137
|
{
|
|
143
|
-
return
|
|
138
|
+
return (VipsTarget *) VObject::get_object();
|
|
144
139
|
}
|
|
145
|
-
|
|
146
140
|
};
|
|
147
141
|
|
|
148
142
|
VIPS_NAMESPACE_END
|
package/include/vips/VError8.h
CHANGED
|
@@ -2,32 +2,31 @@
|
|
|
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
|
|
|
30
|
-
|
|
31
30
|
#ifndef VIPS_VERROR_H
|
|
32
31
|
#define VIPS_VERROR_H
|
|
33
32
|
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
VIPS_NAMESPACE_START
|
|
41
40
|
|
|
42
41
|
/**
|
|
43
|
-
* The libvips error class. It holds a single string containing an
|
|
42
|
+
* The libvips error class. It holds a single string containing an
|
|
44
43
|
* internationalized error message in utf-8 encoding.
|
|
45
44
|
*/
|
|
46
45
|
class VIPS_CPLUSPLUS_API VError : public std::exception {
|
|
@@ -50,25 +49,29 @@ public:
|
|
|
50
49
|
/**
|
|
51
50
|
* Construct a VError, setting the error message.
|
|
52
51
|
*/
|
|
53
|
-
VError(
|
|
52
|
+
VError(const std::string &what) : _what(what) {}
|
|
54
53
|
|
|
55
|
-
/**
|
|
54
|
+
/**
|
|
56
55
|
* Construct a VError, fetching the error message from the libvips
|
|
57
56
|
* error buffer.
|
|
58
57
|
*/
|
|
59
|
-
VError() : _what(
|
|
58
|
+
VError() : _what(vips_error_buffer()) {}
|
|
60
59
|
|
|
61
60
|
virtual ~VError() throw() {}
|
|
62
61
|
|
|
63
62
|
/**
|
|
64
63
|
* Get a reference to the underlying C string.
|
|
65
64
|
*/
|
|
66
|
-
virtual const char *
|
|
65
|
+
virtual const char *
|
|
66
|
+
what() const throw()
|
|
67
|
+
{
|
|
68
|
+
return _what.c_str();
|
|
69
|
+
}
|
|
67
70
|
|
|
68
71
|
/**
|
|
69
72
|
* Print the error message to a stream.
|
|
70
73
|
*/
|
|
71
|
-
void ostream_print(
|
|
74
|
+
void ostream_print(std::ostream &) const;
|
|
72
75
|
};
|
|
73
76
|
|
|
74
77
|
VIPS_NAMESPACE_END
|