@img/sharp-libvips-dev 1.2.0 → 1.2.1

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.
@@ -287,7 +287,7 @@ typedef void (*hb_font_get_glyph_shape_func_t) (hb_font_t *font, void *font_data
287
287
  * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
288
288
  *
289
289
  * Since: 7.0.0
290
- * XDeprecated: REPLACEME: Use hb_font_draw_glyph_func_or_fail_t instead.
290
+ * Deprecated: 11.2.0: Use hb_font_draw_glyph_func_or_fail_t instead.
291
291
  **/
292
292
  typedef void (*hb_font_draw_glyph_func_t) (hb_font_t *font, void *font_data,
293
293
  hb_codepoint_t glyph,
@@ -308,7 +308,7 @@ typedef void (*hb_font_draw_glyph_func_t) (hb_font_t *font, void *font_data,
308
308
  * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
309
309
  *
310
310
  * Since: 7.0.0
311
- * XDeprecated: REPLACEME: Use hb_font_paint_glyph_or_fail_func_t instead.
311
+ * Deprecated: 11.2.0: Use hb_font_paint_glyph_or_fail_func_t instead.
312
312
  */
313
313
  typedef hb_bool_t (*hb_font_paint_glyph_func_t) (hb_font_t *font, void *font_data,
314
314
  hb_codepoint_t glyph,
@@ -346,7 +346,7 @@ hb_font_funcs_set_glyph_shape_func (hb_font_funcs_t *ffuncs,
346
346
  * Sets the implementation function for #hb_font_draw_glyph_func_t.
347
347
  *
348
348
  * Since: 7.0.0
349
- * XDeprecated: REPLACEME: Use hb_font_funcs_set_draw_glyph_or_fail_func instead.
349
+ * Deprecated: 11.2.0: Use hb_font_funcs_set_draw_glyph_or_fail_func instead.
350
350
  **/
351
351
  HB_DEPRECATED_FOR (hb_font_funcs_set_draw_glyph_or_fail_func)
352
352
  HB_EXTERN void
@@ -364,7 +364,7 @@ hb_font_funcs_set_draw_glyph_func (hb_font_funcs_t *ffuncs,
364
364
  * Sets the implementation function for #hb_font_paint_glyph_func_t.
365
365
  *
366
366
  * Since: 7.0.0
367
- * XDeprecated: REPLACEME: Use hb_font_funcs_set_paint_glyph_or_fail_func() instead.
367
+ * Deprecated: 11.2.0: Use hb_font_funcs_set_paint_glyph_or_fail_func() instead.
368
368
  */
369
369
  HB_DEPRECATED_FOR (hb_font_funcs_set_paint_glyph_or_fail_func)
370
370
  HB_EXTERN void
@@ -97,7 +97,7 @@ hb_font_funcs_is_immutable (hb_font_funcs_t *ffuncs);
97
97
  * @descender: The depth of typographic descenders.
98
98
  * @line_gap: The suggested line-spacing gap.
99
99
  *
100
- * Font-wide extent values, measured in font units.
100
+ * Font-wide extent values, measured in scaled units.
101
101
  *
102
102
  * Note that typically @ascender is positive and @descender
103
103
  * negative, in coordinate systems that grow up.
@@ -332,7 +332,7 @@ typedef hb_font_get_glyph_advances_func_t hb_font_get_glyph_v_advances_func_t;
332
332
  *
333
333
  * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
334
334
  *
335
- * This method should retrieve the (X,Y) coordinates (in font units) of the
335
+ * This method should retrieve the (X,Y) coordinates (in scaled units) of the
336
336
  * origin for a glyph. Each coordinate must be returned in an #hb_position_t
337
337
  * output parameter.
338
338
  *
@@ -349,7 +349,7 @@ typedef hb_bool_t (*hb_font_get_glyph_origin_func_t) (hb_font_t *font, void *fon
349
349
  *
350
350
  * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
351
351
  *
352
- * This method should retrieve the (X,Y) coordinates (in font units) of the
352
+ * This method should retrieve the (X,Y) coordinates (in scaled units) of the
353
353
  * origin for a glyph, for horizontal-direction text segments. Each
354
354
  * coordinate must be returned in an #hb_position_t output parameter.
355
355
  *
@@ -361,13 +361,72 @@ typedef hb_font_get_glyph_origin_func_t hb_font_get_glyph_h_origin_func_t;
361
361
  *
362
362
  * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
363
363
  *
364
- * This method should retrieve the (X,Y) coordinates (in font units) of the
364
+ * This method should retrieve the (X,Y) coordinates (in scaled units) of the
365
365
  * origin for a glyph, for vertical-direction text segments. Each coordinate
366
366
  * must be returned in an #hb_position_t output parameter.
367
367
  *
368
368
  **/
369
369
  typedef hb_font_get_glyph_origin_func_t hb_font_get_glyph_v_origin_func_t;
370
370
 
371
+ /**
372
+ * hb_font_get_glyph_origins_func_t:
373
+ * @font: #hb_font_t to work upon
374
+ * @font_data: @font user data pointer
375
+ * @first_glyph: The first glyph ID to query
376
+ * @count: number of glyphs to query
377
+ * @glyph_stride: The stride between successive glyph IDs
378
+ * @first_x: (out): The first origin X coordinate retrieved
379
+ * @x_stride: The stride between successive origin X coordinates
380
+ * @first_y: (out): The first origin Y coordinate retrieved
381
+ * @y_stride: The stride between successive origin Y coordinates
382
+ * @user_data: User data pointer passed by the caller
383
+ *
384
+ * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
385
+ *
386
+ * This method should retrieve the (X,Y) coordinates (in scaled units) of the
387
+ * origin for each requested glyph. Each coordinate value must be returned in
388
+ * an #hb_position_t in the two output parameters.
389
+ *
390
+ * Return value: `true` if data found, `false` otherwise
391
+ *
392
+ * Since: 11.3.0
393
+ **/
394
+ typedef hb_bool_t (*hb_font_get_glyph_origins_func_t) (hb_font_t *font, void *font_data,
395
+ unsigned int count,
396
+ const hb_codepoint_t *first_glyph,
397
+ unsigned glyph_stride,
398
+ hb_position_t *first_x,
399
+ unsigned x_stride,
400
+ hb_position_t *first_y,
401
+ unsigned y_stride,
402
+ void *user_data);
403
+
404
+ /**
405
+ * hb_font_get_glyph_h_origins_func_t:
406
+ *
407
+ * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
408
+ *
409
+ * This method should retrieve the (X,Y) coordinates (in scaled units) of the
410
+ * origin for requested glyph, for horizontal-direction text segments. Each
411
+ * coordinate must be returned in a the x/y #hb_position_t output parameters.
412
+ *
413
+ * Since: 11.3.0
414
+ **/
415
+ typedef hb_font_get_glyph_origins_func_t hb_font_get_glyph_h_origins_func_t;
416
+
417
+ /**
418
+ * hb_font_get_glyph_v_origins_func_t:
419
+ *
420
+ * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
421
+ *
422
+ * This method should retrieve the (X,Y) coordinates (in scaled units) of the
423
+ * origin for requested glyph, for vertical-direction text segments. Each
424
+ * coordinate must be returned in a the x/y #hb_position_t output parameters.
425
+ *
426
+ * Since: 11.3.0
427
+ **/
428
+ typedef hb_font_get_glyph_origins_func_t hb_font_get_glyph_v_origins_func_t;
429
+
371
430
  /**
372
431
  * hb_font_get_glyph_kerning_func_t:
373
432
  * @font: #hb_font_t to work upon
@@ -428,7 +487,7 @@ typedef hb_bool_t (*hb_font_get_glyph_extents_func_t) (hb_font_t *font, void *fo
428
487
  *
429
488
  * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
430
489
  *
431
- * This method should retrieve the (X,Y) coordinates (in font units) for a
490
+ * This method should retrieve the (X,Y) coordinates (in scaled units) for a
432
491
  * specified contour point in a glyph. Each coordinate must be returned as
433
492
  * an #hb_position_t output parameter.
434
493
  *
@@ -498,7 +557,7 @@ typedef hb_bool_t (*hb_font_get_glyph_from_name_func_t) (hb_font_t *font, void *
498
557
  *
499
558
  * Return value: `true` if glyph was drawn, `false` otherwise
500
559
  *
501
- * XSince: REPLACEME
560
+ * Since: 11.2.0
502
561
  **/
503
562
  typedef hb_bool_t (*hb_font_draw_glyph_or_fail_func_t) (hb_font_t *font, void *font_data,
504
563
  hb_codepoint_t glyph,
@@ -520,7 +579,7 @@ typedef hb_bool_t (*hb_font_draw_glyph_or_fail_func_t) (hb_font_t *font, void *f
520
579
  *
521
580
  * Return value: `true` if glyph was painted, `false` otherwise
522
581
  *
523
- * XSince: REPLACEME
582
+ * Since: 11.2.0
524
583
  */
525
584
  typedef hb_bool_t (*hb_font_paint_glyph_or_fail_func_t) (hb_font_t *font, void *font_data,
526
585
  hb_codepoint_t glyph,
@@ -707,6 +766,38 @@ hb_font_funcs_set_glyph_v_origin_func (hb_font_funcs_t *ffuncs,
707
766
  hb_font_get_glyph_v_origin_func_t func,
708
767
  void *user_data, hb_destroy_func_t destroy);
709
768
 
769
+ /**
770
+ * hb_font_funcs_set_glyph_h_origins_func:
771
+ * @ffuncs: A font-function structure
772
+ * @func: (closure user_data) (destroy destroy) (scope notified): The callback function to assign
773
+ * @user_data: Data to pass to @func
774
+ * @destroy: (nullable): The function to call when @user_data is not needed anymore
775
+ *
776
+ * Sets the implementation function for #hb_font_get_glyph_h_origins_func_t.
777
+ *
778
+ * Since: 11.3.0
779
+ **/
780
+ HB_EXTERN void
781
+ hb_font_funcs_set_glyph_h_origins_func (hb_font_funcs_t *ffuncs,
782
+ hb_font_get_glyph_h_origins_func_t func,
783
+ void *user_data, hb_destroy_func_t destroy);
784
+
785
+ /**
786
+ * hb_font_funcs_set_glyph_v_origins_func:
787
+ * @ffuncs: A font-function structure
788
+ * @func: (closure user_data) (destroy destroy) (scope notified): The callback function to assign
789
+ * @user_data: Data to pass to @func
790
+ * @destroy: (nullable): The function to call when @user_data is not needed anymore
791
+ *
792
+ * Sets the implementation function for #hb_font_get_glyph_v_origins_func_t.
793
+ *
794
+ * Since: 11.3.0
795
+ **/
796
+ HB_EXTERN void
797
+ hb_font_funcs_set_glyph_v_origins_func (hb_font_funcs_t *ffuncs,
798
+ hb_font_get_glyph_v_origins_func_t func,
799
+ void *user_data, hb_destroy_func_t destroy);
800
+
710
801
  /**
711
802
  * hb_font_funcs_set_glyph_h_kerning_func:
712
803
  * @ffuncs: A font-function structure
@@ -796,7 +887,7 @@ hb_font_funcs_set_glyph_from_name_func (hb_font_funcs_t *ffuncs,
796
887
  *
797
888
  * Sets the implementation function for #hb_font_draw_glyph_or_fail_func_t.
798
889
  *
799
- * XSince: REPLACEME
890
+ * Since: 11.2.0
800
891
  **/
801
892
  HB_EXTERN void
802
893
  hb_font_funcs_set_draw_glyph_or_fail_func (hb_font_funcs_t *ffuncs,
@@ -812,7 +903,7 @@ hb_font_funcs_set_draw_glyph_or_fail_func (hb_font_funcs_t *ffuncs,
812
903
  *
813
904
  * Sets the implementation function for #hb_font_paint_glyph_or_fail_func_t.
814
905
  *
815
- * XSince: REPLACEME
906
+ * Since: 11.2.0
816
907
  */
817
908
  HB_EXTERN void
818
909
  hb_font_funcs_set_paint_glyph_or_fail_func (hb_font_funcs_t *ffuncs,
@@ -876,6 +967,26 @@ hb_font_get_glyph_v_origin (hb_font_t *font,
876
967
  hb_codepoint_t glyph,
877
968
  hb_position_t *x, hb_position_t *y);
878
969
 
970
+ HB_EXTERN hb_bool_t
971
+ hb_font_get_glyph_h_origins (hb_font_t *font,
972
+ unsigned int count,
973
+ const hb_codepoint_t *first_glyph,
974
+ unsigned glyph_stride,
975
+ hb_position_t *first_x,
976
+ unsigned x_stride,
977
+ hb_position_t *first_y,
978
+ unsigned y_stride);
979
+
980
+ HB_EXTERN hb_bool_t
981
+ hb_font_get_glyph_v_origins (hb_font_t *font,
982
+ unsigned int count,
983
+ const hb_codepoint_t *first_glyph,
984
+ unsigned glyph_stride,
985
+ hb_position_t *first_x,
986
+ unsigned x_stride,
987
+ hb_position_t *first_y,
988
+ unsigned y_stride);
989
+
879
990
  HB_EXTERN hb_position_t
880
991
  hb_font_get_glyph_h_kerning (hb_font_t *font,
881
992
  hb_codepoint_t left_glyph, hb_codepoint_t right_glyph);
@@ -47,20 +47,20 @@ HB_BEGIN_DECLS
47
47
  *
48
48
  * The minor component of the library version available at compile-time.
49
49
  */
50
- #define HB_VERSION_MINOR 2
50
+ #define HB_VERSION_MINOR 3
51
51
  /**
52
52
  * HB_VERSION_MICRO:
53
53
  *
54
54
  * The micro component of the library version available at compile-time.
55
55
  */
56
- #define HB_VERSION_MICRO 1
56
+ #define HB_VERSION_MICRO 2
57
57
 
58
58
  /**
59
59
  * HB_VERSION_STRING:
60
60
  *
61
61
  * A string literal containing the library version available at compile-time.
62
62
  */
63
- #define HB_VERSION_STRING "11.2.1"
63
+ #define HB_VERSION_STRING "11.3.2"
64
64
 
65
65
  /**
66
66
  * HB_VERSION_ATLEAST:
@@ -15,21 +15,21 @@
15
15
  *
16
16
  * the version string like "1.2.3"
17
17
  */
18
- #define LIBXML_DOTTED_VERSION "2.14.4"
18
+ #define LIBXML_DOTTED_VERSION "2.14.5"
19
19
 
20
20
  /**
21
21
  * LIBXML_VERSION:
22
22
  *
23
23
  * the version number: 1.2.3 value is 10203
24
24
  */
25
- #define LIBXML_VERSION 21404
25
+ #define LIBXML_VERSION 21405
26
26
 
27
27
  /**
28
28
  * LIBXML_VERSION_STRING:
29
29
  *
30
30
  * the version number string, 1.2.3 value is "10203"
31
31
  */
32
- #define LIBXML_VERSION_STRING "21404"
32
+ #define LIBXML_VERSION_STRING "21405"
33
33
 
34
34
  /**
35
35
  * LIBXML_VERSION_EXTRA:
@@ -44,7 +44,7 @@
44
44
  * Macro to check that the libxml version in use is compatible with
45
45
  * the version the software has been compiled against
46
46
  */
47
- #define LIBXML_TEST_VERSION xmlCheckVersion(21404);
47
+ #define LIBXML_TEST_VERSION xmlCheckVersion(21405);
48
48
 
49
49
  /**
50
50
  * LIBXML_THREAD_ENABLED:
@@ -33,9 +33,9 @@
33
33
 
34
34
  #define PIXMAN_VERSION_MAJOR 0
35
35
  #define PIXMAN_VERSION_MINOR 46
36
- #define PIXMAN_VERSION_MICRO 2
36
+ #define PIXMAN_VERSION_MICRO 4
37
37
 
38
- #define PIXMAN_VERSION_STRING "0.46.2"
38
+ #define PIXMAN_VERSION_STRING "0.46.4"
39
39
 
40
40
  #define PIXMAN_VERSION_ENCODE(major, minor, micro) ( \
41
41
  ((major) * 10000) \
@@ -14,13 +14,15 @@
14
14
  #ifndef WEBP_WEBP_DECODE_H_
15
15
  #define WEBP_WEBP_DECODE_H_
16
16
 
17
+ #include <stddef.h>
18
+
17
19
  #include "./types.h"
18
20
 
19
21
  #ifdef __cplusplus
20
22
  extern "C" {
21
23
  #endif
22
24
 
23
- #define WEBP_DECODER_ABI_VERSION 0x0209 // MAJOR(8b) + MINOR(8b)
25
+ #define WEBP_DECODER_ABI_VERSION 0x0210 // MAJOR(8b) + MINOR(8b)
24
26
 
25
27
  // Note: forward declaring enumerations is not allowed in (strict) C and C++,
26
28
  // the types are left here for reference.
@@ -451,7 +453,9 @@ struct WebPDecoderOptions {
451
453
  // Will be snapped to even values.
452
454
  int crop_width, crop_height; // dimension of the cropping area
453
455
  int use_scaling; // if true, scaling is applied _afterward_
454
- int scaled_width, scaled_height; // final resolution
456
+ int scaled_width, scaled_height; // final resolution. if one is 0, it is
457
+ // guessed from the other one to keep the
458
+ // original ratio.
455
459
  int use_threads; // if true, use multi-threaded decoding
456
460
  int dithering_strength; // dithering strength (0=Off, 100=full)
457
461
  int flip; // if true, flip output vertically
@@ -479,6 +483,11 @@ WEBP_NODISCARD static WEBP_INLINE int WebPInitDecoderConfig(
479
483
  return WebPInitDecoderConfigInternal(config, WEBP_DECODER_ABI_VERSION);
480
484
  }
481
485
 
486
+ // Returns true if 'config' is non-NULL and all configuration parameters are
487
+ // within their valid ranges.
488
+ WEBP_NODISCARD WEBP_EXTERN int WebPValidateDecoderConfig(
489
+ const WebPDecoderConfig* config);
490
+
482
491
  // Instantiate a new incremental decoder object with the requested
483
492
  // configuration. The bitstream can be passed using 'data' and 'data_size'
484
493
  // parameter, in which case the features will be parsed and stored into
@@ -48,6 +48,8 @@
48
48
  #ifndef WEBP_WEBP_DEMUX_H_
49
49
  #define WEBP_WEBP_DEMUX_H_
50
50
 
51
+ #include <stddef.h>
52
+
51
53
  #include "./decode.h" // for WEBP_CSP_MODE
52
54
  #include "./mux_types.h"
53
55
  #include "./types.h"
@@ -14,6 +14,8 @@
14
14
  #ifndef WEBP_WEBP_ENCODE_H_
15
15
  #define WEBP_WEBP_ENCODE_H_
16
16
 
17
+ #include <stddef.h>
18
+
17
19
  #include "./types.h"
18
20
 
19
21
  #ifdef __cplusplus
@@ -15,6 +15,7 @@
15
15
  #define WEBP_WEBP_MUX_TYPES_H_
16
16
 
17
17
  #include <string.h> // memset()
18
+
18
19
  #include "./types.h"
19
20
 
20
21
  #ifdef __cplusplus
@@ -52,7 +52,7 @@ extern "C" {
52
52
  // SharpYUV API version following the convention from semver.org
53
53
  #define SHARPYUV_VERSION_MAJOR 0
54
54
  #define SHARPYUV_VERSION_MINOR 4
55
- #define SHARPYUV_VERSION_PATCH 1
55
+ #define SHARPYUV_VERSION_PATCH 2
56
56
  // Version as a uint32_t. The major number is the high 8 bits.
57
57
  // The minor number is the middle 8 bits. The patch number is the low 16 bits.
58
58
  #define SHARPYUV_MAKE_VERSION(MAJOR, MINOR, PATCH) \
@@ -14,10 +14,10 @@
14
14
  #ifndef WEBP_WEBP_TYPES_H_
15
15
  #define WEBP_WEBP_TYPES_H_
16
16
 
17
- #include <stddef.h> // for size_t
17
+ #include <stddef.h> // IWYU pragma: export for size_t
18
18
 
19
19
  #ifndef _MSC_VER
20
- #include <inttypes.h>
20
+ #include <inttypes.h> // IWYU pragma: export
21
21
  #if defined(__cplusplus) || !defined(__STRICT_ANSI__) || \
22
22
  (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
23
23
  #define WEBP_INLINE inline
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@img/sharp-libvips-dev",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
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
@@ -10,21 +10,21 @@
10
10
  "freetype": "2.13.3",
11
11
  "fribidi": "1.0.16",
12
12
  "glib": "2.85.1",
13
- "harfbuzz": "11.2.1",
13
+ "harfbuzz": "11.3.2",
14
14
  "heif": "1.20.1",
15
15
  "highway": "1.2.0",
16
16
  "imagequant": "2.4.1",
17
17
  "lcms": "2.17",
18
18
  "mozjpeg": "4.1.5",
19
19
  "pango": "1.56.4",
20
- "pixman": "0.46.2",
20
+ "pixman": "0.46.4",
21
21
  "png": "1.6.50",
22
22
  "proxy-libintl": "0.4",
23
23
  "rsvg": "2.60.0",
24
24
  "spng": "0.7.4",
25
25
  "tiff": "4.7.0",
26
26
  "vips": "8.17.1",
27
- "webp": "1.5.0",
28
- "xml2": "2.14.4",
27
+ "webp": "1.6.0",
28
+ "xml2": "2.14.5",
29
29
  "zlib-ng": "2.2.4"
30
30
  }