@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
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://libtiff.gitlab.io/libtiff/misc.html) (BSD-like) |
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
- | orc | [orc License](https://gitlab.freedesktop.org/gstreamer/orc/blob/master/COPYING) (BSD-like) |
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
- Copyright (C) 1991-2001 The National Gallery
6
+ Copyright (C) 1991-2001 The National Gallery
7
7
 
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.
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
- 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.
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
- 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
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
- These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
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( int descriptor )
46
+ VSource
47
+ VSource::new_from_descriptor(int descriptor)
48
48
  {
49
49
  VipsSource *input;
50
50
 
51
- if( !(input = vips_source_new_from_descriptor( descriptor )) )
51
+ if (!(input = vips_source_new_from_descriptor(descriptor)))
52
52
  throw VError();
53
53
 
54
- VSource out( input );
54
+ VSource out(input);
55
55
 
56
- return( out );
56
+ return out;
57
57
  }
58
58
 
59
- VSource
60
- VSource::new_from_file( const char *filename )
59
+ VSource
60
+ VSource::new_from_file(const char *filename)
61
61
  {
62
62
  VipsSource *input;
63
63
 
64
- if( !(input = vips_source_new_from_file( filename )) )
64
+ if (!(input = vips_source_new_from_file(filename)))
65
65
  throw VError();
66
66
 
67
- VSource out( input );
67
+ VSource out(input);
68
68
 
69
- return( out );
69
+ return out;
70
70
  }
71
71
 
72
- VSource
73
- VSource::new_from_blob( VipsBlob *blob )
72
+ VSource
73
+ VSource::new_from_blob(VipsBlob *blob)
74
74
  {
75
75
  VipsSource *input;
76
76
 
77
- if( !(input = vips_source_new_from_blob( blob )) )
77
+ if (!(input = vips_source_new_from_blob(blob)))
78
78
  throw VError();
79
79
 
80
- VSource out( input );
80
+ VSource out(input);
81
81
 
82
- return( out );
82
+ return out;
83
83
  }
84
84
 
85
- VSource
86
- VSource::new_from_memory( const void *data,
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( !(input = vips_source_new_from_memory( data, size )) )
91
+ if (!(input = vips_source_new_from_memory(data, size)))
92
92
  throw VError();
93
93
 
94
- VSource out( input );
94
+ VSource out(input);
95
95
 
96
- return( out );
96
+ return out;
97
97
  }
98
98
 
99
- VSource
100
- VSource::new_from_options( const char *options )
99
+ VSource
100
+ VSource::new_from_options(const char *options)
101
101
  {
102
102
  VipsSource *input;
103
103
 
104
- if( !(input = vips_source_new_from_options( options )) )
104
+ if (!(input = vips_source_new_from_options(options)))
105
105
  throw VError();
106
106
 
107
- VSource out( input );
107
+ VSource out(input);
108
108
 
109
- return( out );
109
+ return out;
110
110
  }
111
111
 
112
- VTarget
113
- VTarget::new_to_descriptor( int descriptor )
112
+ VTarget
113
+ VTarget::new_to_descriptor(int descriptor)
114
114
  {
115
115
  VipsTarget *output;
116
116
 
117
- if( !(output = vips_target_new_to_descriptor( descriptor )) )
117
+ if (!(output = vips_target_new_to_descriptor(descriptor)))
118
118
  throw VError();
119
119
 
120
- VTarget out( output );
120
+ VTarget out(output);
121
121
 
122
- return( out );
122
+ return out;
123
123
  }
124
124
 
125
- VTarget
126
- VTarget::new_to_file( const char *filename )
125
+ VTarget
126
+ VTarget::new_to_file(const char *filename)
127
127
  {
128
128
  VipsTarget *output;
129
129
 
130
- if( !(output = vips_target_new_to_file( filename )) )
130
+ if (!(output = vips_target_new_to_file(filename)))
131
131
  throw VError();
132
132
 
133
- VTarget out( output );
133
+ VTarget out(output);
134
134
 
135
- return( out );
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( !(output = vips_target_new_to_memory()) )
143
+ if (!(output = vips_target_new_to_memory()))
144
144
  throw VError();
145
145
 
146
- VTarget out( output );
146
+ VTarget out(output);
147
147
 
148
- return( out );
148
+ return out;
149
149
  }
150
150
 
151
151
  VIPS_NAMESPACE_END
@@ -2,28 +2,28 @@
2
2
 
3
3
  /*
4
4
 
5
- Copyright (C) 1991-2001 The National Gallery
5
+ Copyright (C) 1991-2001 The National Gallery
6
6
 
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.
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
- 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.
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
- 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
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
 
@@ -35,13 +35,15 @@
35
35
 
36
36
  VIPS_NAMESPACE_START
37
37
 
38
- std::ostream &operator<<( std::ostream &file, const VError &err )
38
+ std::ostream &
39
+ operator<<(std::ostream &file, const VError &err)
39
40
  {
40
- err.ostream_print( file );
41
- return( file );
41
+ err.ostream_print(file);
42
+ return file;
42
43
  }
43
44
 
44
- void VError::ostream_print( std::ostream &file ) const
45
+ void
46
+ VError::ostream_print(std::ostream &file) const
45
47
  {
46
48
  file << _what;
47
49
  }