@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.
Files changed (109) hide show
  1. package/README.md +3 -3
  2. package/cplusplus/VConnection.cpp +54 -54
  3. package/cplusplus/VError.cpp +20 -18
  4. package/cplusplus/VImage.cpp +636 -589
  5. package/cplusplus/VInterpolate.cpp +22 -22
  6. package/cplusplus/VRegion.cpp +4 -4
  7. package/cplusplus/vips-operators.cpp +2326 -2301
  8. package/include/aom/aom_codec.h +10 -6
  9. package/include/aom/aom_decoder.h +1 -1
  10. package/include/aom/aom_encoder.h +9 -2
  11. package/include/aom/aomcx.h +72 -3
  12. package/include/cairo/cairo-ft.h +1 -1
  13. package/include/cairo/cairo-gobject.h +8 -0
  14. package/include/cairo/cairo-svg.h +3 -3
  15. package/include/cairo/cairo-version.h +2 -2
  16. package/include/cairo/cairo.h +91 -24
  17. package/include/glib-2.0/glib/gmacros.h +1 -1
  18. package/include/glib-2.0/glib/gtestutils.h +1 -1
  19. package/include/glib-2.0/gobject/gtype.h +7 -7
  20. package/include/harfbuzz/hb-version.h +2 -2
  21. package/include/hwy/aligned_allocator.h +211 -0
  22. package/include/hwy/base.h +1517 -0
  23. package/include/hwy/cache_control.h +108 -0
  24. package/include/hwy/detect_compiler_arch.h +281 -0
  25. package/include/hwy/detect_targets.h +644 -0
  26. package/include/hwy/foreach_target.h +340 -0
  27. package/include/hwy/highway.h +435 -0
  28. package/include/hwy/highway_export.h +74 -0
  29. package/include/hwy/nanobenchmark.h +171 -0
  30. package/include/hwy/ops/arm_neon-inl.h +8913 -0
  31. package/include/hwy/ops/arm_sve-inl.h +5105 -0
  32. package/include/hwy/ops/emu128-inl.h +2811 -0
  33. package/include/hwy/ops/generic_ops-inl.h +4745 -0
  34. package/include/hwy/ops/ppc_vsx-inl.h +5716 -0
  35. package/include/hwy/ops/rvv-inl.h +5070 -0
  36. package/include/hwy/ops/scalar-inl.h +1995 -0
  37. package/include/hwy/ops/set_macros-inl.h +578 -0
  38. package/include/hwy/ops/shared-inl.h +539 -0
  39. package/include/hwy/ops/tuple-inl.h +125 -0
  40. package/include/hwy/ops/wasm_128-inl.h +5917 -0
  41. package/include/hwy/ops/x86_128-inl.h +11173 -0
  42. package/include/hwy/ops/x86_256-inl.h +7529 -0
  43. package/include/hwy/ops/x86_512-inl.h +6849 -0
  44. package/include/hwy/per_target.h +44 -0
  45. package/include/hwy/print-inl.h +62 -0
  46. package/include/hwy/print.h +75 -0
  47. package/include/hwy/robust_statistics.h +148 -0
  48. package/include/hwy/targets.h +338 -0
  49. package/include/hwy/timer-inl.h +200 -0
  50. package/include/hwy/timer.h +55 -0
  51. package/include/jconfig.h +2 -2
  52. package/include/jpeglib.h +3 -2
  53. package/include/libheif/heif.h +461 -384
  54. package/include/libheif/heif_cxx.h +4 -1
  55. package/include/libheif/heif_plugin.h +1 -1
  56. package/include/libheif/heif_properties.h +138 -0
  57. package/include/libheif/heif_regions.h +866 -0
  58. package/include/libheif/heif_version.h +3 -3
  59. package/include/libpng16/pnglibconf.h +1 -1
  60. package/include/pnglibconf.h +1 -1
  61. package/include/vips/VConnection8.h +43 -49
  62. package/include/vips/VError8.h +27 -24
  63. package/include/vips/VImage8.h +4861 -4597
  64. package/include/vips/VInterpolate8.h +24 -27
  65. package/include/vips/VRegion8.h +32 -33
  66. package/include/vips/arithmetic.h +169 -169
  67. package/include/vips/basic.h +33 -33
  68. package/include/vips/buf.h +56 -54
  69. package/include/vips/colour.h +95 -95
  70. package/include/vips/connection.h +190 -193
  71. package/include/vips/conversion.h +91 -91
  72. package/include/vips/convolution.h +36 -30
  73. package/include/vips/create.h +63 -63
  74. package/include/vips/dbuf.h +35 -37
  75. package/include/vips/debug.h +65 -33
  76. package/include/vips/draw.h +41 -41
  77. package/include/vips/enumtypes.h +54 -51
  78. package/include/vips/error.h +63 -63
  79. package/include/vips/foreign.h +263 -223
  80. package/include/vips/format.h +48 -48
  81. package/include/vips/freqfilt.h +22 -22
  82. package/include/vips/gate.h +55 -47
  83. package/include/vips/generate.h +34 -34
  84. package/include/vips/header.h +111 -101
  85. package/include/vips/histogram.h +28 -28
  86. package/include/vips/image.h +213 -213
  87. package/include/vips/interpolate.h +40 -41
  88. package/include/vips/memory.h +61 -52
  89. package/include/vips/morphology.h +24 -24
  90. package/include/vips/mosaicing.h +32 -33
  91. package/include/vips/object.h +371 -357
  92. package/include/vips/operation.h +68 -67
  93. package/include/vips/private.h +76 -76
  94. package/include/vips/rect.h +26 -26
  95. package/include/vips/region.h +92 -92
  96. package/include/vips/resample.h +38 -38
  97. package/include/vips/sbuf.h +53 -54
  98. package/include/vips/semaphore.h +24 -24
  99. package/include/vips/thread.h +30 -27
  100. package/include/vips/threadpool.h +48 -49
  101. package/include/vips/transform.h +39 -39
  102. package/include/vips/type.h +90 -85
  103. package/include/vips/util.h +274 -229
  104. package/include/vips/vector.h +24 -144
  105. package/include/vips/version.h +9 -9
  106. package/include/vips/vips.h +41 -40
  107. package/include/zlib.h +23 -19
  108. package/package.json +1 -1
  109. package/versions.json +9 -9
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * HEIF codec.
3
- * Copyright (c) 2017 struktur AG, Dirk Farin <farin@struktur.de>
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) | (16<<16) | (2<<8) | 0)
31
+ #define LIBHEIF_NUMERIC_VERSION ((1<<24) | (17<<16) | (3<<8) | 0)
32
32
 
33
33
  /* Version string */
34
- #define LIBHEIF_VERSION "1.16.2"
34
+ #define LIBHEIF_VERSION "1.17.3"
35
35
 
36
36
  #define LIBHEIF_PLUGIN_DIRECTORY "/target/lib/libheif"
37
37
 
@@ -209,7 +209,7 @@
209
209
  #define PNG_USER_HEIGHT_MAX 1000000
210
210
  #define PNG_USER_WIDTH_MAX 1000000
211
211
  #define PNG_ZBUF_SIZE 8192
212
- #define PNG_ZLIB_VERNUM 0x12df
212
+ #define PNG_ZLIB_VERNUM 0x130f
213
213
  #define PNG_Z_DEFAULT_COMPRESSION (-1)
214
214
  #define PNG_Z_DEFAULT_NOFILTER_STRATEGY 0
215
215
  #define PNG_Z_DEFAULT_STRATEGY 1
@@ -209,7 +209,7 @@
209
209
  #define PNG_USER_HEIGHT_MAX 1000000
210
210
  #define PNG_USER_WIDTH_MAX 1000000
211
211
  #define PNG_ZBUF_SIZE 8192
212
- #define PNG_ZLIB_VERNUM 0x12df
212
+ #define PNG_ZLIB_VERNUM 0x130f
213
213
  #define PNG_Z_DEFAULT_COMPRESSION (-1)
214
214
  #define PNG_Z_DEFAULT_NOFILTER_STRATEGY 0
215
215
  #define PNG_Z_DEFAULT_STRATEGY 1
@@ -2,28 +2,28 @@
2
2
 
3
3
  /*
4
4
 
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
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
- These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
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( VipsSource *input, VSteal steal = STEAL ) :
52
- VObject( (VipsObject *) input, steal )
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( int 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( const char *filename );
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( VipsBlob *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( const void *data, size_t size );
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( const char *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( (VipsSource *) VObject::get_object() );
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( VipsTarget *output, VSteal steal = STEAL ) :
113
- VObject( (VipsObject *) output, steal )
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( int 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( (VipsTarget *) VObject::get_object() );
138
+ return (VipsTarget *) VObject::get_object();
144
139
  }
145
-
146
140
  };
147
141
 
148
142
  VIPS_NAMESPACE_END
@@ -2,32 +2,31 @@
2
2
 
3
3
  /*
4
4
 
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
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
- These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
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( const std::string &what ) : _what( what ) {}
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( vips_error_buffer() ) {}
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 *what() const throw() { return _what.c_str(); }
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( std::ostream & ) const;
74
+ void ostream_print(std::ostream &) const;
72
75
  };
73
76
 
74
77
  VIPS_NAMESPACE_END