@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
@@ -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
 
@@ -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( VipsInterpolate *interpolate, VSteal steal = STEAL ) :
54
- VObject( (VipsObject *) interpolate, steal )
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( (VipsInterpolate *) VObject::get_object() );
68
+ return (VipsInterpolate *) VObject::get_object();
71
69
  }
72
-
73
70
  };
74
71
 
75
72
  VIPS_NAMESPACE_END
@@ -2,28 +2,28 @@
2
2
 
3
3
  /*
4
4
 
5
- This file is part of VIPS.
5
+ This file is part of VIPS.
6
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.
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
- 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
 
@@ -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( VipsRegion *region, VSteal steal = STEAL ) :
49
- VObject( (VipsObject *) region, steal )
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( VImage 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( const VipsRect *rect ) const
71
+ prepare(const VipsRect *rect) const
73
72
  {
74
- if ( vips_region_prepare( get_region(), rect ) )
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( int left, int top, int width, int height ) const
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( &rect );
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( 0 );
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( size_t i ) const
110
+ addr(size_t i) const
112
111
  {
113
- return &VIPS_REGION_ADDR_TOPLEFT( get_region() )[i];
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( int x, int y ) const
119
+ addr(int x, int y) const
121
120
  {
122
- return VIPS_REGION_ADDR( get_region(), x, y );
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( get_region() );
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[]( size_t i ) const
137
+ operator[](size_t i) const
139
138
  {
140
- return *addr( i );
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()( int x, int y ) const
146
+ operator()(int x, int y) const
148
147
  {
149
- return *addr( x, y );
148
+ return *addr(x, y);
150
149
  }
151
150
  };
152
151