@revizly/sharp-libvips-dev 1.0.31 → 1.0.33

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 (67) hide show
  1. package/README.md +15 -15
  2. package/include/aom/aom_codec.h +1 -1
  3. package/include/aom/aom_decoder.h +4 -0
  4. package/include/aom/aom_encoder.h +19 -8
  5. package/include/aom/aom_ext_ratectrl.h +664 -0
  6. package/include/aom/aom_image.h +93 -30
  7. package/include/aom/aom_tpl.h +99 -0
  8. package/include/aom/aomcx.h +89 -16
  9. package/include/aom/aomdx.h +12 -0
  10. package/include/expat.h +14 -2
  11. package/include/expat_config.h +6 -3
  12. package/include/expat_external.h +3 -2
  13. package/include/glib-2.0/glib/gvarianttype.h +16 -16
  14. package/include/glib-2.0/glib/gversionmacros.h +13 -0
  15. package/include/harfbuzz/hb-cplusplus.hh +9 -1
  16. package/include/harfbuzz/hb-draw.h +52 -0
  17. package/include/harfbuzz/hb-paint.h +209 -2
  18. package/include/harfbuzz/hb-version.h +2 -2
  19. package/include/hwy/aligned_allocator.h +44 -2
  20. package/include/hwy/auto_tune.h +22 -6
  21. package/include/hwy/base.h +60 -90
  22. package/include/hwy/bit_set.h +410 -0
  23. package/include/hwy/cache_control.h +3 -2
  24. package/include/hwy/detect_compiler_arch.h +134 -14
  25. package/include/hwy/detect_targets.h +82 -36
  26. package/include/hwy/highway.h +15 -0
  27. package/include/hwy/nanobenchmark.h +12 -3
  28. package/include/hwy/ops/arm_neon-inl.h +96 -25
  29. package/include/hwy/ops/arm_sve-inl.h +250 -95
  30. package/include/hwy/ops/emu128-inl.h +12 -7
  31. package/include/hwy/ops/generic_ops-inl.h +271 -131
  32. package/include/hwy/ops/loongarch_lasx-inl.h +31 -9
  33. package/include/hwy/ops/loongarch_lsx-inl.h +33 -12
  34. package/include/hwy/ops/ppc_vsx-inl.h +99 -19
  35. package/include/hwy/ops/rvv-inl.h +239 -130
  36. package/include/hwy/ops/scalar-inl.h +22 -7
  37. package/include/hwy/ops/set_macros-inl.h +158 -107
  38. package/include/hwy/ops/wasm_128-inl.h +13 -22
  39. package/include/hwy/ops/x86_128-inl.h +223 -120
  40. package/include/hwy/ops/x86_256-inl.h +70 -134
  41. package/include/hwy/ops/x86_512-inl.h +130 -134
  42. package/include/hwy/print-inl.h +2 -0
  43. package/include/hwy/profiler.h +355 -264
  44. package/include/hwy/robust_statistics.h +3 -1
  45. package/include/hwy/timer.h +44 -0
  46. package/include/lcms2.h +34 -4
  47. package/include/libexif/exif-utils.h +1 -1
  48. package/include/libheif/heif_context.h +13 -0
  49. package/include/libheif/heif_decoding.h +7 -0
  50. package/include/libheif/heif_sequences.h +12 -2
  51. package/include/libheif/heif_uncompressed.h +22 -10
  52. package/include/libheif/heif_uncompressed_types.h +27 -27
  53. package/include/libpng16/png.h +7 -7
  54. package/include/libpng16/pngconf.h +1 -1
  55. package/include/libpng16/pnglibconf.h +1 -1
  56. package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
  57. package/include/libxml2/libxml/xmlversion.h +4 -4
  58. package/include/png.h +7 -7
  59. package/include/pngconf.h +1 -1
  60. package/include/pnglibconf.h +1 -1
  61. package/include/tiffconf.h +9 -10
  62. package/include/tiffio.h +10 -9
  63. package/include/tiffvers.h +1 -1
  64. package/include/ultrahdr_api.h +5 -11
  65. package/package.json +1 -1
  66. package/versions.json +13 -13
  67. package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +0 -235
package/include/tiffio.h CHANGED
@@ -125,13 +125,13 @@ typedef void *thandle_t; /* client data handle */
125
125
  */
126
126
 
127
127
  /* reference white */
128
- #define D65_X0 (95.0470F)
129
- #define D65_Y0 (100.0F)
130
- #define D65_Z0 (108.8827F)
128
+ #define D65_X0 (95.0470f)
129
+ #define D65_Y0 (100.0f)
130
+ #define D65_Z0 (108.8827f)
131
131
 
132
- #define D50_X0 (96.4250F)
133
- #define D50_Y0 (100.0F)
134
- #define D50_Z0 (82.4680F)
132
+ #define D50_X0 (96.4250f)
133
+ #define D50_Y0 (100.0f)
134
+ #define D50_Z0 (82.4680f)
135
135
 
136
136
  /* Structure for holding information about a display device. */
137
137
 
@@ -254,7 +254,7 @@ struct _TIFFRGBAImage
254
254
  * Macros for extracting components from the
255
255
  * packed ABGR form returned by TIFFReadRGBAImage.
256
256
  */
257
- #define TIFFGetR(abgr) ((abgr)&0xff)
257
+ #define TIFFGetR(abgr) ((abgr) & 0xff)
258
258
  #define TIFFGetG(abgr) (((abgr) >> 8) & 0xff)
259
259
  #define TIFFGetB(abgr) (((abgr) >> 16) & 0xff)
260
260
  #define TIFFGetA(abgr) (((abgr) >> 24) & 0xff)
@@ -269,7 +269,7 @@ struct _TIFFRGBAImage
269
269
  typedef int (*TIFFInitMethod)(TIFF *, int);
270
270
  typedef struct
271
271
  {
272
- char *name;
272
+ const char *name;
273
273
  uint16_t scheme;
274
274
  TIFFInitMethod init;
275
275
  } TIFFCodec;
@@ -584,6 +584,7 @@ extern int TIFFReadRGBAImageOriented(TIFF *, uint32_t, uint32_t, uint32_t *,
584
584
  tmsize_t cc);
585
585
  extern tmsize_t TIFFWriteRawTile(TIFF *tif, uint32_t tile, void *data,
586
586
  tmsize_t cc);
587
+ extern uint64_t TIFFGetMaxCompressionRatio(TIFF *tif);
587
588
  extern int TIFFDataWidth(
588
589
  TIFFDataType); /* table of tag datatype widths within TIFF file. */
589
590
  extern void TIFFSetWriteOffset(TIFF *tif, toff_t off);
@@ -659,7 +660,7 @@ extern int TIFFReadRGBAImageOriented(TIFF *, uint32_t, uint32_t, uint32_t *,
659
660
  unsigned short field_bit; /* bit in fieldsset bit vector */
660
661
  unsigned char field_oktochange; /* if true, can change while writing */
661
662
  unsigned char field_passcount; /* if true, pass dir count on set */
662
- char *field_name; /* ASCII name */
663
+ const char *field_name; /* ASCII name */
663
664
  } TIFFFieldInfo;
664
665
 
665
666
  extern int TIFFMergeFieldInfo(TIFF *, const TIFFFieldInfo[], uint32_t);
@@ -5,7 +5,7 @@
5
5
 
6
6
  /* clang-format disabled because FindTIFF.cmake is very sensitive to the
7
7
  * formatting of below line being a single line.
8
- * Furthermore, configure_file variables of type "@VAR@" are
8
+ * Furthermore, configure_file variables of type "" are
9
9
  * modified by clang-format and won't be substituted by CMake.
10
10
  */
11
11
  #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.7.1\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
@@ -1,17 +1,11 @@
1
1
  /*
2
2
  * Copyright 2024 The Android Open Source Project
3
3
  *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
4
+ * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5
+ * https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6
+ * <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7
+ * option. This file may not be copied, modified, or distributed
8
+ * except according to those terms.
15
9
  */
16
10
 
17
11
  /** \file ultrahdr_api.h
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revizly/sharp-libvips-dev",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "Header files and C++ sources for libvips and dependencies required when compiling sharp from source",
5
5
  "author": "Lovell Fuller <npm@lovell.info>",
6
6
  "homepage": "https://sharp.pixelplumbing.com",
package/versions.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
- "aom": "3.13.3",
2
+ "aom": "3.14.0",
3
3
  "archive": "3.8.7",
4
4
  "cairo": "1.18.4",
5
5
  "cgif": "0.5.3",
6
6
  "de265": "1.0.18",
7
- "exif": "0.6.25",
8
- "expat": "2.7.5",
7
+ "exif": "0.6.26",
8
+ "expat": "2.8.1",
9
9
  "ffi": "3.5.2",
10
10
  "fontconfig": "2.17.1",
11
11
  "freetype": "2.14.3",
12
12
  "fribidi": "1.0.16",
13
- "glib": "2.88.0",
14
- "harfbuzz": "14.1.0",
15
- "heif": "1806fd5",
16
- "highway": "1.3.0",
13
+ "glib": "2.88.1",
14
+ "harfbuzz": "14.2.0",
15
+ "heif": "580ca12",
16
+ "highway": "1.4.0",
17
17
  "imagequant": "2.4.1",
18
- "lcms": "2.18",
18
+ "lcms": "2.19.1",
19
19
  "mozjpeg": "0826579",
20
20
  "pango": "1.57.1",
21
21
  "pixman": "0.46.4",
22
- "png": "1.6.57",
22
+ "png": "1.6.58",
23
23
  "proxy-libintl": "0.5",
24
- "rsvg": "2.62.1",
25
- "tiff": "4.7.1",
26
- "uhdr": "8cbc983",
24
+ "rsvg": "2.62.2",
25
+ "tiff": "97ae1f6",
26
+ "uhdr": "82b4f6d",
27
27
  "vips": "8.18.2",
28
28
  "webp": "1.6.0",
29
- "xml2": "2.15.2",
29
+ "xml2": "2.15.3",
30
30
  "zlib-ng": "2.3.3"
31
31
  }
@@ -1,235 +0,0 @@
1
- /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
- /* vim: set sw=4 sts=4 expandtab: */
3
- /*
4
- rsvg-pixbuf.h: SAX-based renderer for SVG files using GDK-Pixbuf.
5
-
6
- Copyright (C) 2000 Eazel, Inc.
7
-
8
- This library is free software; you can redistribute it and/or
9
- modify it under the terms of the GNU Lesser General Public
10
- License as published by the Free Software Foundation; either
11
- version 2.1 of the License, or (at your option) any later version.
12
-
13
- This library 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 GNU
16
- Lesser General Public License for more details.
17
-
18
- You should have received a copy of the GNU Lesser General Public
19
- License along with this library; if not, write to the Free Software
20
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
-
22
- Author: Raph Levien <raph@artofcode.com>
23
- */
24
-
25
- #if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)
26
- #warning "Including <librsvg/rsvg-pixbuf.h> directly is deprecated."
27
- #endif
28
-
29
- #ifndef RSVG_PIXBUF_H
30
- #define RSVG_PIXBUF_H
31
-
32
- #include <gdk-pixbuf/gdk-pixbuf.h>
33
-
34
- G_BEGIN_DECLS
35
-
36
- /**
37
- * rsvg_handle_get_pixbuf:
38
- * @handle: An [class@Rsvg.Handle]
39
- *
40
- * Returns the pixbuf loaded by @handle. The pixbuf returned will be reffed, so
41
- * the caller of this function must assume that ref.
42
- *
43
- * API ordering: This function must be called on a fully-loaded @handle. See
44
- * the section "[API ordering](class.Handle.html#api-ordering)" for details.
45
- *
46
- * This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
47
- * "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
48
- * beforehand.
49
- *
50
- * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error
51
- * during rendering.
52
- * Deprecated: 2.58. Use [method@Rsvg.Handle.get_pixbuf_and_error].
53
- **/
54
- RSVG_DEPRECATED_FOR(rsvg_handle_get_pixbuf_and_error)
55
- GdkPixbuf *rsvg_handle_get_pixbuf (RsvgHandle *handle);
56
-
57
- /**
58
- * rsvg_handle_get_pixbuf_and_error:
59
- * @handle: An [class@Rsvg.Handle]
60
- * @error: return location for a `GError`
61
- *
62
- * Returns the pixbuf loaded by @handle. The pixbuf returned will be reffed, so
63
- * the caller of this function must assume that ref.
64
- *
65
- * API ordering: This function must be called on a fully-loaded @handle. See
66
- * the section "[API ordering](class.Handle.html#api-ordering)" for details.
67
- *
68
- * This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
69
- * "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
70
- * beforehand.
71
- *
72
- * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error
73
- * during rendering.
74
- *
75
- * Since: 2.59
76
- **/
77
- RSVG_API
78
- GdkPixbuf *rsvg_handle_get_pixbuf_and_error (RsvgHandle *handle, GError **error);
79
-
80
- /**
81
- * rsvg_handle_get_pixbuf_sub:
82
- * @handle: An #RsvgHandle
83
- * @id: (nullable): An element's id within the SVG, starting with "#" (a single
84
- * hash character), for example, `#layer1`. This notation corresponds to a
85
- * URL's fragment ID. Alternatively, pass `NULL` to use the whole SVG.
86
- *
87
- * Creates a `GdkPixbuf` the same size as the entire SVG loaded into @handle, but
88
- * only renders the sub-element that has the specified @id (and all its
89
- * sub-sub-elements recursively). If @id is `NULL`, this function renders the
90
- * whole SVG.
91
- *
92
- * This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
93
- * "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
94
- * beforehand.
95
- *
96
- * If you need to render an image which is only big enough to fit a particular
97
- * sub-element of the SVG, consider using [method@Rsvg.Handle.render_element].
98
- *
99
- * Element IDs should look like an URL fragment identifier; for example, pass
100
- * `#foo` (hash `foo`) to get the geometry of the element that
101
- * has an `id="foo"` attribute.
102
- *
103
- * API ordering: This function must be called on a fully-loaded @handle. See
104
- * the section "[API ordering](class.Handle.html#api-ordering)" for details.
105
- *
106
- * Returns: (transfer full) (nullable): a pixbuf, or `NULL` if an error occurs
107
- * during rendering.
108
- *
109
- * Since: 2.14
110
- **/
111
- RSVG_API
112
- GdkPixbuf *rsvg_handle_get_pixbuf_sub (RsvgHandle *handle, const char *id);
113
-
114
- /* BEGIN deprecated APIs. Do not use! */
115
-
116
- /**
117
- * rsvg-pixbuf:
118
- *
119
- * Years ago, GNOME and GTK used the gdk-pixbuf library as a general mechanism to load
120
- * raster images into memory (PNG, JPEG, etc.) and pass them around. The general idiom
121
- * was, "load this image file and give me a `GdkPixbuf` object", which is basically a pixel
122
- * buffer. Librsvg supports this kind of interface to load and render SVG documents, but
123
- * it is deprecated in favor of rendering to Cairo contexts.
124
- */
125
-
126
- /**
127
- * rsvg_pixbuf_from_file:
128
- * @filename: A file name
129
- * @error: return location for a `GError`
130
- *
131
- * Loads a new `GdkPixbuf` from @filename and returns it. The caller must
132
- * assume the reference to the reurned pixbuf. If an error occurred, @error is
133
- * set and `NULL` is returned.
134
- *
135
- * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
136
- * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
137
- **/
138
- RSVG_DEPRECATED
139
- GdkPixbuf *rsvg_pixbuf_from_file (const gchar *filename,
140
- GError **error);
141
-
142
- /**
143
- * rsvg_pixbuf_from_file_at_zoom:
144
- * @filename: A file name
145
- * @x_zoom: The horizontal zoom factor
146
- * @y_zoom: The vertical zoom factor
147
- * @error: return location for a `GError`
148
- *
149
- * Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
150
- * from the size indicated by the file by a factor of @x_zoom and @y_zoom. The
151
- * caller must assume the reference to the returned pixbuf. If an error
152
- * occurred, @error is set and `NULL` is returned.
153
- *
154
- * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
155
- * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
156
- **/
157
- RSVG_DEPRECATED
158
- GdkPixbuf *rsvg_pixbuf_from_file_at_zoom (const gchar *filename,
159
- double x_zoom,
160
- double y_zoom,
161
- GError **error);
162
-
163
- /**
164
- * rsvg_pixbuf_from_file_at_size:
165
- * @filename: A file name
166
- * @width: The new width, or -1
167
- * @height: The new height, or -1
168
- * @error: return location for a `GError`
169
- *
170
- * Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
171
- * from the size indicated to the new size indicated by @width and @height. If
172
- * both of these are -1, then the default size of the image being loaded is
173
- * used. The caller must assume the reference to the returned pixbuf. If an
174
- * error occurred, @error is set and `NULL` is returned.
175
- *
176
- * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
177
- * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
178
- **/
179
- RSVG_DEPRECATED
180
- GdkPixbuf *rsvg_pixbuf_from_file_at_size (const gchar *filename,
181
- gint width,
182
- gint height,
183
- GError **error);
184
-
185
- /**
186
- * rsvg_pixbuf_from_file_at_max_size:
187
- * @filename: A file name
188
- * @max_width: The requested max width
189
- * @max_height: The requested max height
190
- * @error: return location for a `GError`
191
- *
192
- * Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is uniformly
193
- * scaled so that the it fits into a rectangle of size `max_width * max_height`. The
194
- * caller must assume the reference to the returned pixbuf. If an error occurred,
195
- * @error is set and `NULL` is returned.
196
- *
197
- * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
198
- * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
199
- **/
200
- RSVG_DEPRECATED
201
- GdkPixbuf *rsvg_pixbuf_from_file_at_max_size (const gchar *filename,
202
- gint max_width,
203
- gint max_height,
204
- GError **error);
205
- /**
206
- * rsvg_pixbuf_from_file_at_zoom_with_max:
207
- * @filename: A file name
208
- * @x_zoom: The horizontal zoom factor
209
- * @y_zoom: The vertical zoom factor
210
- * @max_width: The requested max width
211
- * @max_height: The requested max height
212
- * @error: return location for a `GError`
213
- *
214
- * Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
215
- * from the size indicated by the file by a factor of @x_zoom and @y_zoom. If the
216
- * resulting pixbuf would be larger than max_width/max_heigh it is uniformly scaled
217
- * down to fit in that rectangle. The caller must assume the reference to the
218
- * returned pixbuf. If an error occurred, @error is set and `NULL` is returned.
219
- *
220
- * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
221
- * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
222
- **/
223
- RSVG_DEPRECATED
224
- GdkPixbuf *rsvg_pixbuf_from_file_at_zoom_with_max (const gchar *filename,
225
- double x_zoom,
226
- double y_zoom,
227
- gint max_width,
228
- gint max_height,
229
- GError **error);
230
-
231
- /* END deprecated APIs. */
232
-
233
- G_END_DECLS
234
-
235
- #endif