@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.
Files changed (103) hide show
  1. package/README.md +2 -2
  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/harfbuzz/hb-version.h +2 -2
  18. package/include/hwy/aligned_allocator.h +211 -0
  19. package/include/hwy/base.h +1517 -0
  20. package/include/hwy/cache_control.h +108 -0
  21. package/include/hwy/detect_compiler_arch.h +281 -0
  22. package/include/hwy/detect_targets.h +644 -0
  23. package/include/hwy/foreach_target.h +340 -0
  24. package/include/hwy/highway.h +435 -0
  25. package/include/hwy/highway_export.h +74 -0
  26. package/include/hwy/nanobenchmark.h +171 -0
  27. package/include/hwy/ops/arm_neon-inl.h +8913 -0
  28. package/include/hwy/ops/arm_sve-inl.h +5105 -0
  29. package/include/hwy/ops/emu128-inl.h +2811 -0
  30. package/include/hwy/ops/generic_ops-inl.h +4745 -0
  31. package/include/hwy/ops/ppc_vsx-inl.h +5716 -0
  32. package/include/hwy/ops/rvv-inl.h +5070 -0
  33. package/include/hwy/ops/scalar-inl.h +1995 -0
  34. package/include/hwy/ops/set_macros-inl.h +578 -0
  35. package/include/hwy/ops/shared-inl.h +539 -0
  36. package/include/hwy/ops/tuple-inl.h +125 -0
  37. package/include/hwy/ops/wasm_128-inl.h +5917 -0
  38. package/include/hwy/ops/x86_128-inl.h +11173 -0
  39. package/include/hwy/ops/x86_256-inl.h +7529 -0
  40. package/include/hwy/ops/x86_512-inl.h +6849 -0
  41. package/include/hwy/per_target.h +44 -0
  42. package/include/hwy/print-inl.h +62 -0
  43. package/include/hwy/print.h +75 -0
  44. package/include/hwy/robust_statistics.h +148 -0
  45. package/include/hwy/targets.h +338 -0
  46. package/include/hwy/timer-inl.h +200 -0
  47. package/include/hwy/timer.h +55 -0
  48. package/include/jconfig.h +2 -2
  49. package/include/jpeglib.h +3 -2
  50. package/include/libheif/heif.h +443 -377
  51. package/include/libheif/heif_cxx.h +4 -1
  52. package/include/libheif/heif_plugin.h +1 -1
  53. package/include/libheif/heif_properties.h +138 -0
  54. package/include/libheif/heif_regions.h +866 -0
  55. package/include/libheif/heif_version.h +3 -3
  56. package/include/vips/VConnection8.h +43 -49
  57. package/include/vips/VError8.h +27 -24
  58. package/include/vips/VImage8.h +4861 -4597
  59. package/include/vips/VInterpolate8.h +24 -27
  60. package/include/vips/VRegion8.h +32 -33
  61. package/include/vips/arithmetic.h +169 -169
  62. package/include/vips/basic.h +33 -33
  63. package/include/vips/buf.h +56 -54
  64. package/include/vips/colour.h +95 -95
  65. package/include/vips/connection.h +190 -193
  66. package/include/vips/conversion.h +91 -91
  67. package/include/vips/convolution.h +36 -30
  68. package/include/vips/create.h +63 -63
  69. package/include/vips/dbuf.h +35 -37
  70. package/include/vips/debug.h +65 -33
  71. package/include/vips/draw.h +41 -41
  72. package/include/vips/enumtypes.h +54 -51
  73. package/include/vips/error.h +63 -63
  74. package/include/vips/foreign.h +263 -223
  75. package/include/vips/format.h +48 -48
  76. package/include/vips/freqfilt.h +22 -22
  77. package/include/vips/gate.h +55 -47
  78. package/include/vips/generate.h +34 -34
  79. package/include/vips/header.h +111 -101
  80. package/include/vips/histogram.h +28 -28
  81. package/include/vips/image.h +213 -213
  82. package/include/vips/interpolate.h +40 -41
  83. package/include/vips/memory.h +61 -52
  84. package/include/vips/morphology.h +24 -24
  85. package/include/vips/mosaicing.h +32 -33
  86. package/include/vips/object.h +371 -357
  87. package/include/vips/operation.h +68 -67
  88. package/include/vips/private.h +76 -76
  89. package/include/vips/rect.h +26 -26
  90. package/include/vips/region.h +92 -92
  91. package/include/vips/resample.h +38 -38
  92. package/include/vips/sbuf.h +53 -54
  93. package/include/vips/semaphore.h +24 -24
  94. package/include/vips/thread.h +30 -27
  95. package/include/vips/threadpool.h +48 -49
  96. package/include/vips/transform.h +39 -39
  97. package/include/vips/type.h +90 -85
  98. package/include/vips/util.h +274 -229
  99. package/include/vips/vector.h +24 -144
  100. package/include/vips/version.h +9 -9
  101. package/include/vips/vips.h +41 -40
  102. package/package.json +1 -1
  103. package/versions.json +7 -7
@@ -4,28 +4,28 @@
4
4
 
5
5
  /*
6
6
 
7
- This file is part of VIPS.
8
-
9
- VIPS is free software; you can redistribute it and/or modify
10
- it under the terms of the GNU Lesser General Public License as published by
11
- the Free Software Foundation; either version 2 of the License, or
12
- (at your option) any later version.
13
-
14
- This program is distributed in the hope that it will be useful,
15
- but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- GNU Lesser General Public License for more details.
18
-
19
- You should have received a copy of the GNU Lesser General Public License
20
- along with this program; if not, write to the Free Software
21
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
- 02110-1301 USA
7
+ This file is part of VIPS.
8
+
9
+ VIPS is free software; you can redistribute it and/or modify
10
+ it under the terms of the GNU Lesser General Public License as published by
11
+ the Free Software Foundation; either version 2 of the License, or
12
+ (at your option) any later version.
13
+
14
+ This program is distributed in the hope that it will be useful,
15
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ GNU Lesser General Public License for more details.
18
+
19
+ You should have received a copy of the GNU Lesser General Public License
20
+ along with this program; if not, write to the Free Software
21
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
+ 02110-1301 USA
23
23
 
24
24
  */
25
25
 
26
26
  /*
27
27
 
28
- These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
28
+ These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
29
29
 
30
30
  */
31
31
 
@@ -40,30 +40,33 @@ extern "C" {
40
40
  * glib 2.32+
41
41
  */
42
42
  VIPS_API
43
- GMutex *vips_g_mutex_new( void );
43
+ GMutex *vips_g_mutex_new(void);
44
44
  VIPS_API
45
- void vips_g_mutex_free( GMutex * );
45
+ void vips_g_mutex_free(GMutex *);
46
46
 
47
47
  /* Same for GCond.
48
48
  */
49
49
  VIPS_API
50
- GCond *vips_g_cond_new( void );
50
+ GCond *vips_g_cond_new(void);
51
51
  VIPS_API
52
- void vips_g_cond_free( GCond * );
52
+ void vips_g_cond_free(GCond *);
53
53
 
54
54
  /* ... and for GThread.
55
55
  */
56
56
  VIPS_API
57
- GThread *vips_g_thread_new( const char *, GThreadFunc, gpointer );
57
+ GThread *vips_g_thread_new(const char *, GThreadFunc, gpointer);
58
+
59
+ VIPS_API
60
+ gboolean vips_thread_isvips(void);
58
61
 
59
62
  VIPS_API
60
- gboolean vips_thread_isvips( void );
63
+ int vips_thread_execute(const char *domain, GFunc func, gpointer data);
61
64
 
62
65
  typedef struct _VipsThreadset VipsThreadset;
63
- VipsThreadset *vips_threadset_new( int max_threads );
64
- int vips_threadset_run( VipsThreadset *set,
65
- const char *domain, GFunc func, gpointer data );
66
- void vips_threadset_free( VipsThreadset *set );
66
+ VipsThreadset *vips_threadset_new(int max_threads);
67
+ int vips_threadset_run(VipsThreadset *set,
68
+ const char *domain, GFunc func, gpointer data);
69
+ void vips_threadset_free(VipsThreadset *set);
67
70
 
68
71
  #ifdef __cplusplus
69
72
  }
@@ -11,28 +11,28 @@
11
11
 
12
12
  /*
13
13
 
14
- This file is part of VIPS.
15
-
16
- VIPS is free software; you can redistribute it and/or modify
17
- it under the terms of the GNU Lesser General Public License as published by
18
- the Free Software Foundation; either version 2 of the License, or
19
- (at your option) any later version.
20
-
21
- This program is distributed in the hope that it will be useful,
22
- but WITHOUT ANY WARRANTY; without even the implied warranty of
23
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
- GNU Lesser General Public License for more details.
25
-
26
- You should have received a copy of the GNU Lesser General Public License
27
- along with this program; if not, write to the Free Software
28
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
29
- 02110-1301 USA
14
+ This file is part of VIPS.
15
+
16
+ VIPS is free software; you can redistribute it and/or modify
17
+ it under the terms of the GNU Lesser General Public License as published by
18
+ the Free Software Foundation; either version 2 of the License, or
19
+ (at your option) any later version.
20
+
21
+ This program is distributed in the hope that it will be useful,
22
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
23
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
+ GNU Lesser General Public License for more details.
25
+
26
+ You should have received a copy of the GNU Lesser General Public License
27
+ along with this program; if not, write to the Free Software
28
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
29
+ 02110-1301 USA
30
30
 
31
31
  */
32
32
 
33
33
  /*
34
34
 
35
- These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
35
+ These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
36
36
 
37
37
  */
38
38
 
@@ -51,25 +51,24 @@
51
51
  extern "C" {
52
52
  #endif /*__cplusplus*/
53
53
 
54
-
55
54
  /* Per-thread state. Allocate functions can use these members to
56
55
  * communicate with work functions.
57
56
  */
58
57
 
59
58
  #define VIPS_TYPE_THREAD_STATE (vips_thread_state_get_type())
60
- #define VIPS_THREAD_STATE( obj ) \
61
- (G_TYPE_CHECK_INSTANCE_CAST( (obj), \
62
- VIPS_TYPE_THREAD_STATE, VipsThreadState ))
63
- #define VIPS_THREAD_STATE_CLASS( klass ) \
64
- (G_TYPE_CHECK_CLASS_CAST( (klass), \
65
- VIPS_TYPE_THREAD_STATE, VipsThreadStateClass))
66
- #define VIPS_IS_THREAD_STATE( obj ) \
67
- (G_TYPE_CHECK_INSTANCE_TYPE( (obj), VIPS_TYPE_THREAD_STATE ))
68
- #define VIPS_IS_THREAD_STATE_CLASS( klass ) \
69
- (G_TYPE_CHECK_CLASS_TYPE( (klass), VIPS_TYPE_THREAD_STATE ))
70
- #define VIPS_THREAD_STATE_GET_CLASS( obj ) \
71
- (G_TYPE_INSTANCE_GET_CLASS( (obj), \
72
- VIPS_TYPE_THREAD_STATE, VipsThreadStateClass ))
59
+ #define VIPS_THREAD_STATE(obj) \
60
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), \
61
+ VIPS_TYPE_THREAD_STATE, VipsThreadState))
62
+ #define VIPS_THREAD_STATE_CLASS(klass) \
63
+ (G_TYPE_CHECK_CLASS_CAST((klass), \
64
+ VIPS_TYPE_THREAD_STATE, VipsThreadStateClass))
65
+ #define VIPS_IS_THREAD_STATE(obj) \
66
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), VIPS_TYPE_THREAD_STATE))
67
+ #define VIPS_IS_THREAD_STATE_CLASS(klass) \
68
+ (G_TYPE_CHECK_CLASS_TYPE((klass), VIPS_TYPE_THREAD_STATE))
69
+ #define VIPS_THREAD_STATE_GET_CLASS(obj) \
70
+ (G_TYPE_INSTANCE_GET_CLASS((obj), \
71
+ VIPS_TYPE_THREAD_STATE, VipsThreadStateClass))
73
72
 
74
73
  typedef struct _VipsThreadState {
75
74
  VipsObject parent_object;
@@ -80,9 +79,9 @@ typedef struct _VipsThreadState {
80
79
  VipsImage *im;
81
80
 
82
81
  /* This region is created and destroyed by the threadpool for the
83
- * use of the worker.
82
+ * use of the worker.
84
83
  */
85
- VipsRegion *reg;
84
+ VipsRegion *reg;
86
85
 
87
86
  /* Neither used nor set, do what you like with them.
88
87
  */
@@ -95,7 +94,7 @@ typedef struct _VipsThreadState {
95
94
 
96
95
  /* The client data passed to the enclosing vips_threadpool_run().
97
96
  */
98
- void *a;
97
+ void *a;
99
98
 
100
99
  /* Set in allocate to stall this thread for a moment. Handy for
101
100
  * debugging race conditions.
@@ -111,7 +110,7 @@ typedef struct _VipsThreadStateClass {
111
110
  } VipsThreadStateClass;
112
111
 
113
112
  VIPS_API
114
- void *vips_thread_state_set( VipsObject *object, void *a, void *b );
113
+ void *vips_thread_state_set(VipsObject *object, void *a, void *b);
115
114
 
116
115
  /* Don't put spaces around void here, it breaks gtk-doc.
117
116
  */
@@ -119,39 +118,39 @@ VIPS_API
119
118
  GType vips_thread_state_get_type(void);
120
119
 
121
120
  VIPS_API
122
- VipsThreadState *vips_thread_state_new( VipsImage *im, void *a );
121
+ VipsThreadState *vips_thread_state_new(VipsImage *im, void *a);
123
122
 
124
123
  /* Constructor for per-thread state.
125
124
  */
126
- typedef VipsThreadState *(*VipsThreadStartFn)( VipsImage *im, void *a );
125
+ typedef VipsThreadState *(*VipsThreadStartFn)(VipsImage *im, void *a);
127
126
 
128
127
  /* A work allocate function. This is run single-threaded by a worker to
129
- * set up a new work unit.
128
+ * set up a new work unit.
130
129
  * Return non-zero for errors. Set *stop for "no more work to do"
131
130
  */
132
- typedef int (*VipsThreadpoolAllocateFn)( VipsThreadState *state,
133
- void *a, gboolean *stop );
131
+ typedef int (*VipsThreadpoolAllocateFn)(VipsThreadState *state,
132
+ void *a, gboolean *stop);
134
133
 
135
134
  /* A work function. This does a unit of work (eg. processing a tile or
136
- * whatever). Return non-zero for errors.
135
+ * whatever). Return non-zero for errors.
137
136
  */
138
- typedef int (*VipsThreadpoolWorkFn)( VipsThreadState *state, void *a );
137
+ typedef int (*VipsThreadpoolWorkFn)(VipsThreadState *state, void *a);
139
138
 
140
139
  /* A progress function. This is run by the main thread once for every
141
140
  * allocation. Return an error to kill computation early.
142
141
  */
143
- typedef int (*VipsThreadpoolProgressFn)( void *a );
142
+ typedef int (*VipsThreadpoolProgressFn)(void *a);
144
143
 
145
144
  VIPS_API
146
- int vips_threadpool_run( VipsImage *im,
147
- VipsThreadStartFn start,
148
- VipsThreadpoolAllocateFn allocate,
145
+ int vips_threadpool_run(VipsImage *im,
146
+ VipsThreadStartFn start,
147
+ VipsThreadpoolAllocateFn allocate,
149
148
  VipsThreadpoolWorkFn work,
150
149
  VipsThreadpoolProgressFn progress,
151
- void *a );
150
+ void *a);
152
151
  VIPS_API
153
- void vips_get_tile_size( VipsImage *im,
154
- int *tile_width, int *tile_height, int *n_lines );
152
+ void vips_get_tile_size(VipsImage *im,
153
+ int *tile_width, int *tile_height, int *n_lines);
155
154
 
156
155
  #ifdef __cplusplus
157
156
  }
@@ -3,28 +3,28 @@
3
3
 
4
4
  /*
5
5
 
6
- Copyright (C) 1991-2003 The National Gallery
6
+ Copyright (C) 1991-2003 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
 
@@ -42,10 +42,10 @@ extern "C" {
42
42
  /* Params for an affine transformation.
43
43
  */
44
44
  typedef struct {
45
- /* Area of input we can use. This can be smaller than the real input
46
- * image: we expand the input to add extra pixels for interpolation.
45
+ /* Area of input we can use. This can be smaller than the real input
46
+ * image: we expand the input to add extra pixels for interpolation.
47
47
  */
48
- VipsRect iarea;
48
+ VipsRect iarea;
49
49
 
50
50
  /* The area of the output we've been asked to generate. left/top can
51
51
  * be negative.
@@ -54,33 +54,33 @@ typedef struct {
54
54
 
55
55
  /* The transform.
56
56
  */
57
- double a, b, c, d;
57
+ double a, b, c, d;
58
58
  double idx, idy;
59
59
  double odx, ody;
60
60
 
61
- double ia, ib, ic, id; /* Inverse of matrix abcd */
61
+ double ia, ib, ic, id; /* Inverse of matrix abcd */
62
62
  } VipsTransformation;
63
63
 
64
- void vips__transform_init( VipsTransformation *trn );
65
- int vips__transform_calc_inverse( VipsTransformation *trn );
66
- int vips__transform_isidentity( const VipsTransformation *trn );
67
- int vips__transform_add( const VipsTransformation *in1,
68
- const VipsTransformation *in2,
69
- VipsTransformation *out );
70
- void vips__transform_print( const VipsTransformation *trn );
71
-
72
- void vips__transform_forward_point( const VipsTransformation *trn,
73
- const double x, const double y, double *ox, double *oy );
74
- void vips__transform_invert_point( const VipsTransformation *trn,
75
- const double x, const double y, double *ox, double *oy );
76
- void vips__transform_forward_rect( const VipsTransformation *trn,
77
- const VipsRect *in, VipsRect *out );
78
- void vips__transform_invert_rect( const VipsTransformation *trn,
79
- const VipsRect *in, VipsRect *out );
80
-
81
- void vips__transform_set_area( VipsTransformation * );
82
-
83
- int vips__affine( VipsImage *in, VipsImage *out, VipsTransformation *trn );
64
+ void vips__transform_init(VipsTransformation *trn);
65
+ int vips__transform_calc_inverse(VipsTransformation *trn);
66
+ int vips__transform_isidentity(const VipsTransformation *trn);
67
+ int vips__transform_add(const VipsTransformation *in1,
68
+ const VipsTransformation *in2,
69
+ VipsTransformation *out);
70
+ void vips__transform_print(const VipsTransformation *trn);
71
+
72
+ void vips__transform_forward_point(const VipsTransformation *trn,
73
+ const double x, const double y, double *ox, double *oy);
74
+ void vips__transform_invert_point(const VipsTransformation *trn,
75
+ const double x, const double y, double *ox, double *oy);
76
+ void vips__transform_forward_rect(const VipsTransformation *trn,
77
+ const VipsRect *in, VipsRect *out);
78
+ void vips__transform_invert_rect(const VipsTransformation *trn,
79
+ const VipsRect *in, VipsRect *out);
80
+
81
+ void vips__transform_set_area(VipsTransformation *);
82
+
83
+ int vips__affine(VipsImage *in, VipsImage *out, VipsTransformation *trn);
84
84
 
85
85
  #ifdef __cplusplus
86
86
  }