@revizly/sharp-libvips-dev 1.0.56 → 1.0.58

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 (39) hide show
  1. package/cplusplus/VImage.cpp +15 -0
  2. package/cplusplus/vips-operators.cpp +113 -0
  3. package/include/archive.h +4 -2
  4. package/include/archive_entry.h +1 -1
  5. package/include/expat.h +3 -2
  6. package/include/expat_config.h +3 -3
  7. package/include/expat_external.h +1 -1
  8. package/include/fribidi/fribidi-config.h +2 -2
  9. package/include/harfbuzz/hb-buffer.h +15 -0
  10. package/include/harfbuzz/hb-ot-metrics.h +1 -1
  11. package/include/harfbuzz/hb-version.h +2 -2
  12. package/include/lcms2.h +6 -4
  13. package/include/lcms2_plugin.h +30 -0
  14. package/include/libheif/heif_cxx.h +24 -2
  15. package/include/libheif/heif_image.h +4 -2
  16. package/include/libheif/heif_metadata.h +4 -2
  17. package/include/libheif/heif_sequences.h +1 -0
  18. package/include/libheif/heif_text.h +1 -1
  19. package/include/libheif/heif_version.h +2 -2
  20. package/include/vips/VImage8.h +215 -3
  21. package/include/vips/arithmetic.h +2 -2
  22. package/include/vips/basic.h +8 -0
  23. package/include/vips/colour.h +75 -3
  24. package/include/vips/conversion.h +6 -1
  25. package/include/vips/enumtypes.h +9 -0
  26. package/include/vips/error.h +2 -0
  27. package/include/vips/foreign.h +63 -14
  28. package/include/vips/header.h +17 -0
  29. package/include/vips/histogram.h +3 -0
  30. package/include/vips/image.h +4 -3
  31. package/include/vips/memory.h +1 -0
  32. package/include/vips/operation.h +1 -2
  33. package/include/vips/region.h +3 -0
  34. package/include/vips/threadpool.h +3 -3
  35. package/include/vips/util.h +28 -0
  36. package/include/vips/version.h +8 -8
  37. package/include/vips/vips.h +5 -0
  38. package/package.json +1 -1
  39. package/versions.json +8 -8
@@ -173,6 +173,7 @@ VOption::set(const char *name, double value)
173
173
  return this;
174
174
  }
175
175
 
176
+ // input string
176
177
  VOption *
177
178
  VOption::set(const char *name, const char *value)
178
179
  {
@@ -186,6 +187,20 @@ VOption::set(const char *name, const char *value)
186
187
  return this;
187
188
  }
188
189
 
190
+ // input pointer
191
+ VOption *
192
+ VOption::set(const char *name, void *value)
193
+ {
194
+ Pair *pair = new Pair(name);
195
+
196
+ pair->input = true;
197
+ g_value_init(&pair->value, G_TYPE_POINTER);
198
+ g_value_set_pointer(&pair->value, value);
199
+ options.push_back(pair);
200
+
201
+ return this;
202
+ }
203
+
189
204
  // input vips object (image, source, target, etc. etc.)
190
205
  VOption *
191
206
  VOption::set(const char *name, const VObject value)
@@ -2,6 +2,18 @@
2
2
  // this file is generated automatically, do not edit!
3
3
  // clang-format off
4
4
 
5
+ VImage
6
+ VImage::CICP2scRGB(VOption *options) const
7
+ {
8
+ VImage out;
9
+
10
+ call("CICP2scRGB", (options ? options : VImage::option())
11
+ ->set("in", *this)
12
+ ->set("out", &out));
13
+
14
+ return out;
15
+ }
16
+
5
17
  VImage
6
18
  VImage::CMC2LCh(VOption *options) const
7
19
  {
@@ -206,6 +218,18 @@ VImage::Oklch2Oklab(VOption *options) const
206
218
  return out;
207
219
  }
208
220
 
221
+ VImage
222
+ VImage::UHDR2scRGB(VOption *options) const
223
+ {
224
+ VImage out;
225
+
226
+ call("UHDR2scRGB", (options ? options : VImage::option())
227
+ ->set("in", *this)
228
+ ->set("out", &out));
229
+
230
+ return out;
231
+ }
232
+
209
233
  VImage
210
234
  VImage::XYZ2CMYK(VOption *options) const
211
235
  {
@@ -2724,6 +2748,19 @@ VImage::percent(double percent, VOption *options) const
2724
2748
  return threshold;
2725
2749
  }
2726
2750
 
2751
+ double
2752
+ VImage::percent_lum(double percent, VOption *options) const
2753
+ {
2754
+ double threshold;
2755
+
2756
+ call("percent_lum", (options ? options : VImage::option())
2757
+ ->set("in", *this)
2758
+ ->set("threshold", &threshold)
2759
+ ->set("percent", percent));
2760
+
2761
+ return threshold;
2762
+ }
2763
+
2727
2764
  VImage
2728
2765
  VImage::perlin(int width, int height, VOption *options)
2729
2766
  {
@@ -2928,6 +2965,70 @@ VImage::project(VImage *rows, VOption *options) const
2928
2965
  return columns;
2929
2966
  }
2930
2967
 
2968
+ VImage
2969
+ VImage::qoiload(const char *filename, VOption *options)
2970
+ {
2971
+ VImage out;
2972
+
2973
+ call("qoiload", (options ? options : VImage::option())
2974
+ ->set("out", &out)
2975
+ ->set("filename", filename));
2976
+
2977
+ return out;
2978
+ }
2979
+
2980
+ VImage
2981
+ VImage::qoiload_buffer(VipsBlob *buffer, VOption *options)
2982
+ {
2983
+ VImage out;
2984
+
2985
+ call("qoiload_buffer", (options ? options : VImage::option())
2986
+ ->set("out", &out)
2987
+ ->set("buffer", buffer));
2988
+
2989
+ return out;
2990
+ }
2991
+
2992
+ VImage
2993
+ VImage::qoiload_source(VSource source, VOption *options)
2994
+ {
2995
+ VImage out;
2996
+
2997
+ call("qoiload_source", (options ? options : VImage::option())
2998
+ ->set("out", &out)
2999
+ ->set("source", source));
3000
+
3001
+ return out;
3002
+ }
3003
+
3004
+ void
3005
+ VImage::qoisave(const char *filename, VOption *options) const
3006
+ {
3007
+ call("qoisave", (options ? options : VImage::option())
3008
+ ->set("in", *this)
3009
+ ->set("filename", filename));
3010
+ }
3011
+
3012
+ VipsBlob *
3013
+ VImage::qoisave_buffer(VOption *options) const
3014
+ {
3015
+ VipsBlob *buffer;
3016
+
3017
+ call("qoisave_buffer", (options ? options : VImage::option())
3018
+ ->set("in", *this)
3019
+ ->set("buffer", &buffer));
3020
+
3021
+ return buffer;
3022
+ }
3023
+
3024
+ void
3025
+ VImage::qoisave_target(VTarget target, VOption *options) const
3026
+ {
3027
+ call("qoisave_target", (options ? options : VImage::option())
3028
+ ->set("in", *this)
3029
+ ->set("target", target));
3030
+ }
3031
+
2931
3032
  VImage
2932
3033
  VImage::quadratic(VImage coeff, VOption *options) const
2933
3034
  {
@@ -3310,6 +3411,18 @@ VImage::scRGB2BW(VOption *options) const
3310
3411
  return out;
3311
3412
  }
3312
3413
 
3414
+ VImage
3415
+ VImage::scRGB2CICP(VOption *options) const
3416
+ {
3417
+ VImage out;
3418
+
3419
+ call("scRGB2CICP", (options ? options : VImage::option())
3420
+ ->set("in", *this)
3421
+ ->set("out", &out));
3422
+
3423
+ return out;
3424
+ }
3425
+
3313
3426
  VImage
3314
3427
  VImage::scRGB2XYZ(VOption *options) const
3315
3428
  {
package/include/archive.h CHANGED
@@ -34,7 +34,7 @@
34
34
  * assert that ARCHIVE_VERSION_NUMBER >= 2012108.
35
35
  */
36
36
  /* Note: Compiler will complain if this does not match archive_entry.h! */
37
- #define ARCHIVE_VERSION_NUMBER 3008010
37
+ #define ARCHIVE_VERSION_NUMBER 3008011
38
38
 
39
39
  #include <sys/stat.h>
40
40
  #include <stddef.h> /* for wchar_t */
@@ -177,7 +177,7 @@ __LA_DECL int archive_version_number(void);
177
177
  /*
178
178
  * Textual name/version of the library, useful for version displays.
179
179
  */
180
- #define ARCHIVE_VERSION_ONLY_STRING "3.8.10"
180
+ #define ARCHIVE_VERSION_ONLY_STRING "3.8.11"
181
181
  #define ARCHIVE_VERSION_STRING "libarchive " ARCHIVE_VERSION_ONLY_STRING
182
182
  __LA_DECL const char * archive_version_string(void);
183
183
 
@@ -323,6 +323,7 @@ typedef const char *archive_passphrase_callback(struct archive *,
323
323
  #define ARCHIVE_FILTER_GRZIP 12
324
324
  #define ARCHIVE_FILTER_LZ4 13
325
325
  #define ARCHIVE_FILTER_ZSTD 14
326
+ #define ARCHIVE_FILTER_B64 15
326
327
 
327
328
  #if ARCHIVE_VERSION_NUMBER < 4000000
328
329
  #define ARCHIVE_COMPRESSION_NONE ARCHIVE_FILTER_NONE
@@ -336,6 +337,7 @@ typedef const char *archive_passphrase_callback(struct archive *,
336
337
  #define ARCHIVE_COMPRESSION_RPM ARCHIVE_FILTER_RPM
337
338
  #define ARCHIVE_COMPRESSION_LZIP ARCHIVE_FILTER_LZIP
338
339
  #define ARCHIVE_COMPRESSION_LRZIP ARCHIVE_FILTER_LRZIP
340
+ #define ARCHIVE_COMPRESSION_B64 ARCHIVE_FILTER_B64
339
341
  #endif
340
342
 
341
343
  /*
@@ -28,7 +28,7 @@
28
28
  #define ARCHIVE_ENTRY_H_INCLUDED
29
29
 
30
30
  /* Note: Compiler will complain if this does not match archive.h! */
31
- #define ARCHIVE_VERSION_NUMBER 3008010
31
+ #define ARCHIVE_VERSION_NUMBER 3008011
32
32
 
33
33
  /*
34
34
  * Note: archive_entry.h is for use outside of libarchive; the
package/include/expat.h CHANGED
@@ -21,6 +21,7 @@
21
21
  Copyright (c) 2024 Taichi Haradaguchi <20001722@ymail.ne.jp>
22
22
  Copyright (c) 2025 Matthew Fernandez <matthew.fernandez@gmail.com>
23
23
  Copyright (c) 2026 Braian Plaku <braianplaku@gmail.com>
24
+ Copyright (c) 2026 Xisco Fauli <xiscofauli@libreoffice.org>
24
25
  Licensed under the MIT license:
25
26
 
26
27
  Permission is hereby granted, free of charge, to any person obtaining
@@ -1084,7 +1085,7 @@ enum XML_Parser_Property {
1084
1085
  # if defined(XML_TESTING)
1085
1086
  XML_PROP_INVALID = 0,
1086
1087
  # endif
1087
- # if XML_GE == 1
1088
+ # if defined(XML_GE) && XML_GE == 1
1088
1089
  XML_PROP_ALLOC_TRACKER_ACTIVATION_THRESHOLD = 1, // of type `uint64_t`
1089
1090
  XML_PROP_ALLOC_TRACKER_MAXIMUM_AMPLIFICATION = 2, // of type `double`
1090
1091
  XML_PROP_BILLION_LAUGHS_ACTIVATION_THRESHOLD = 3, // of type `uint64_t`
@@ -1146,7 +1147,7 @@ XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled);
1146
1147
  See https://semver.org
1147
1148
  */
1148
1149
  # define XML_MAJOR_VERSION 2
1149
- # define XML_MINOR_VERSION 9
1150
+ # define XML_MINOR_VERSION 10
1150
1151
  # define XML_MICRO_VERSION 0
1151
1152
 
1152
1153
  # ifdef __cplusplus
@@ -83,7 +83,7 @@
83
83
  #define PACKAGE_NAME "expat"
84
84
 
85
85
  /* Define to the full name and version of this package. */
86
- #define PACKAGE_STRING "expat 2.9.0"
86
+ #define PACKAGE_STRING "expat 2.10.0"
87
87
 
88
88
  /* Define to the one symbol short name of this package. */
89
89
  #define PACKAGE_TARNAME "expat"
@@ -92,7 +92,7 @@
92
92
  #define PACKAGE_URL ""
93
93
 
94
94
  /* Define to the version of this package. */
95
- #define PACKAGE_VERSION "2.9.0"
95
+ #define PACKAGE_VERSION "2.10.0"
96
96
 
97
97
  /* Define to 1 if all of the C89 standard headers exist (not just the ones
98
98
  required in a freestanding environment). This macro is provided for
@@ -100,7 +100,7 @@
100
100
  #define STDC_HEADERS 1
101
101
 
102
102
  /* Version number of package */
103
- #define VERSION "2.9.0"
103
+ #define VERSION "2.10.0"
104
104
 
105
105
  /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
106
106
  significant byte first (like Motorola and SPARC, unlike Intel). */
@@ -12,7 +12,7 @@
12
12
  Copyright (c) 2001-2002 Greg Stein <gstein@users.sourceforge.net>
13
13
  Copyright (c) 2002-2006 Karl Waclawek <karl@waclawek.net>
14
14
  Copyright (c) 2016 Cristian Rodríguez <crrodriguez@opensuse.org>
15
- Copyright (c) 2016-2025 Sebastian Pipping <sebastian@pipping.org>
15
+ Copyright (c) 2016-2026 Sebastian Pipping <sebastian@pipping.org>
16
16
  Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
17
17
  Copyright (c) 2018 Yury Gribov <tetra2005@gmail.com>
18
18
  Copyright (c) 2026 Matthew Fernandez <matthew.fernandez@gmail.com>
@@ -7,10 +7,10 @@
7
7
  #define FRIBIDI_NAME "GNU FriBidi"
8
8
  #define FRIBIDI_BUGREPORT "https://github.com/fribidi/fribidi/issues/new"
9
9
 
10
- #define FRIBIDI_VERSION "1.0.17"
10
+ #define FRIBIDI_VERSION "1.0.18"
11
11
  #define FRIBIDI_MAJOR_VERSION 1
12
12
  #define FRIBIDI_MINOR_VERSION 0
13
- #define FRIBIDI_MICRO_VERSION 17
13
+ #define FRIBIDI_MICRO_VERSION 18
14
14
  #define FRIBIDI_INTERFACE_VERSION 4
15
15
  #define FRIBIDI_INTERFACE_VERSION_STRING "4"
16
16
 
@@ -769,6 +769,21 @@ hb_buffer_deserialize_unicode (hb_buffer_t *buffer,
769
769
  const char **end_ptr,
770
770
  hb_buffer_serialize_format_t format);
771
771
 
772
+ HB_EXTERN hb_bool_t
773
+ hb_buffer_deserialize_glyphs2 (hb_buffer_t *buffer,
774
+ const char *buf,
775
+ int buf_len,
776
+ unsigned int *buf_consumed,
777
+ hb_font_t *font,
778
+ hb_buffer_serialize_format_t format);
779
+
780
+ HB_EXTERN hb_bool_t
781
+ hb_buffer_deserialize_unicode2 (hb_buffer_t *buffer,
782
+ const char *buf,
783
+ int buf_len,
784
+ unsigned int *buf_consumed,
785
+ hb_buffer_serialize_format_t format);
786
+
772
787
 
773
788
 
774
789
  /*
@@ -113,7 +113,7 @@ hb_ot_metrics_get_position (hb_font_t *font,
113
113
  HB_EXTERN void
114
114
  hb_ot_metrics_get_position_with_fallback (hb_font_t *font,
115
115
  hb_ot_metrics_tag_t metrics_tag,
116
- hb_position_t *position /* OUT */);
116
+ hb_position_t *position /* OUT. May be NULL. */);
117
117
 
118
118
  HB_EXTERN float
119
119
  hb_ot_metrics_get_variation (hb_font_t *font, hb_ot_metrics_tag_t metrics_tag);
@@ -47,7 +47,7 @@ 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 0
50
+ #define HB_VERSION_MINOR 1
51
51
  /**
52
52
  * HB_VERSION_MICRO:
53
53
  *
@@ -60,7 +60,7 @@ HB_BEGIN_DECLS
60
60
  *
61
61
  * A string literal containing the library version available at compile-time.
62
62
  */
63
- #define HB_VERSION_STRING "15.0.0"
63
+ #define HB_VERSION_STRING "15.1.0"
64
64
 
65
65
  /**
66
66
  * HB_VERSION_ATLEAST:
package/include/lcms2.h CHANGED
@@ -23,7 +23,7 @@
23
23
  //
24
24
  //---------------------------------------------------------------------------------
25
25
  //
26
- // Version 2.19
26
+ // Version 2.20
27
27
  //
28
28
 
29
29
  #ifndef _lcms2_H
@@ -86,15 +86,17 @@
86
86
 
87
87
  #ifndef CMS_USE_CPP_API
88
88
  # ifdef __cplusplus
89
- # if __cplusplus >= 201703L
90
- # define CMS_NO_REGISTER_KEYWORD 1
89
+ // MSVC keeps __cplusplus at 199711L unless /Zc:__cplusplus is passed, so also
90
+ // honor _MSVC_LANG; otherwise the C++17 'register' removal below never triggers.
91
+ # if (__cplusplus >= 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
92
+ # define CMS_NO_REGISTER_KEYWORD 1
91
93
  # endif
92
94
  extern "C" {
93
95
  # endif
94
96
  #endif
95
97
 
96
98
  // Version/release
97
- #define LCMS_VERSION 2190
99
+ #define LCMS_VERSION 2200
98
100
 
99
101
  // I will give the chance of redefining basic types for compilers that are not fully C99 compliant
100
102
  #ifndef CMS_BASIC_TYPES_ALREADY_DEFINED
@@ -210,6 +210,7 @@ typedef void* (* _cmsDupUserDataFn)(cmsContext ContextID, const void* Data);
210
210
  #define cmsPluginTransformSig 0x7A666D48 // 'xfmH'
211
211
  #define cmsPluginMutexSig 0x6D747A48 // 'mtxH'
212
212
  #define cmsPluginParalellizationSig 0x70726C48 // 'prlH
213
+ #define cmsPluginHeaderSig 0x68647248 // 'hdrH'
213
214
 
214
215
  typedef struct _cmsPluginBaseStruct {
215
216
 
@@ -346,6 +347,7 @@ typedef struct {
346
347
  // Formatter16 callback
347
348
 
348
349
  struct _cmstransform_struct;
350
+ struct _cmsiccprofile_struct;
349
351
 
350
352
  typedef cmsUInt8Number* (* cmsFormatter16)(CMSREGISTER struct _cmstransform_struct* CMMcargo,
351
353
  CMSREGISTER cmsUInt16Number Values[],
@@ -690,6 +692,34 @@ typedef struct {
690
692
  } cmsPluginParalellization;
691
693
 
692
694
 
695
+
696
+ //----------------------------------------------------------------------------------------------------------
697
+ // Header
698
+
699
+ CMSAPI void CMSEXPORT _cmsSetProfileUserData(cmsHPROFILE hProfile, void* Data, _cmsFreeUserDataFn FreeData);
700
+ CMSAPI void* CMSEXPORT _cmsGetProfileUserData(cmsHPROFILE hProfile);
701
+
702
+ // The plug-in may use the I/O handler freely, but must not close it.
703
+ // LittleCMS restores the handler position after each callback.
704
+
705
+ typedef cmsBool (*_cmsReadProfileHeaderFn)(cmsContext ContextID,
706
+ cmsHPROFILE hProfile,
707
+ cmsIOHANDLER* io);
708
+
709
+ typedef cmsBool (*_cmsWriteProfileHeaderFn)(cmsContext ContextID,
710
+ cmsHPROFILE hProfile,
711
+ cmsIOHANDLER* io);
712
+
713
+ typedef struct {
714
+ cmsPluginBase base;
715
+
716
+ cmsUInt32Number ICCVersion;
717
+ _cmsReadProfileHeaderFn ReadPtr;
718
+ _cmsWriteProfileHeaderFn WritePtr;
719
+
720
+ } cmsPluginHeader;
721
+
722
+
693
723
  #ifndef CMS_USE_CPP_API
694
724
  # ifdef __cplusplus
695
725
  }
@@ -159,7 +159,7 @@ namespace heif {
159
159
  // throws Error
160
160
  void set_primary_image(ImageHandle& new_primary_image_handle);
161
161
 
162
- // throws Error
162
+ // Throws Error, or returns an empty ImageHandle if no thumbnail is needed.
163
163
  ImageHandle encode_thumbnail(const Image& image,
164
164
  const ImageHandle& master_image,
165
165
  Encoder& encoder,
@@ -247,6 +247,13 @@ namespace heif {
247
247
  heif_mastering_display_colour_volume get_mastering_display_colour_volume() const noexcept;
248
248
 
249
249
  void set_mastering_display_colour_volume(const heif_mastering_display_colour_volume&) noexcept;
250
+
251
+ bool has_nominal_diffuse_white_luminance() const noexcept;
252
+
253
+ // Returns a zero if the image has no such information.
254
+ uint32_t get_nominal_diffuse_white_luminance() const noexcept;
255
+
256
+ void set_nominal_diffuse_white_luminance(const uint32_t&) noexcept;
250
257
 
251
258
  // ------------------------- depth images -------------------------
252
259
 
@@ -787,6 +794,21 @@ namespace heif {
787
794
  {
788
795
  heif_image_handle_set_mastering_display_colour_volume(m_image_handle.get(), &mdcv);
789
796
  }
797
+
798
+ inline bool ImageHandle::has_nominal_diffuse_white_luminance() const noexcept
799
+ {
800
+ return heif_image_handle_has_nominal_diffuse_white_luminance(m_image_handle.get()) != 0;
801
+ }
802
+
803
+ inline uint32_t ImageHandle::get_nominal_diffuse_white_luminance() const noexcept
804
+ {
805
+ return heif_image_handle_get_nominal_diffuse_white_luminance(m_image_handle.get());
806
+ }
807
+
808
+ inline void ImageHandle::set_nominal_diffuse_white_luminance(const uint32_t& diffWhite) noexcept
809
+ {
810
+ heif_image_handle_set_nominal_diffuse_white_luminance(m_image_handle.get(), diffWhite);
811
+ }
790
812
 
791
813
  // ------------------------- depth images -------------------------
792
814
 
@@ -1435,7 +1457,7 @@ namespace heif {
1435
1457
  const EncodingOptions& options,
1436
1458
  int bbox_size)
1437
1459
  {
1438
- struct heif_image_handle* thumb_image_handle;
1460
+ struct heif_image_handle* thumb_image_handle = nullptr;
1439
1461
 
1440
1462
  Error err = Error(heif_context_encode_thumbnail(m_context.get(),
1441
1463
  image.m_image.get(),
@@ -290,6 +290,7 @@ uint8_t* heif_image_get_plane2(heif_image*,
290
290
  typedef struct heif_scaling_options heif_scaling_options;
291
291
 
292
292
  // Currently, heif_scaling_options is not defined yet. Pass a NULL pointer.
293
+ // On error, '*output' is set to NULL. Always check the returned error.
293
294
  LIBHEIF_API
294
295
  heif_error heif_image_scale_image(const heif_image* input,
295
296
  heif_image** output,
@@ -426,8 +427,9 @@ int heif_image_is_premultiplied_alpha(heif_image* image);
426
427
  // This function extends the padding of the image so that it has at least the given physical size.
427
428
  // The padding border is filled with the pixels along the right/bottom border.
428
429
  // This function may be useful if you want to process the image, but have some external padding requirements.
429
- // The image size will not be modified if it is already larger/equal than the given physical size.
430
- // I.e. you cannot assume that after calling this function, the stride will be equal to min_physical_width.
430
+ // Each requested dimension must be at least as large as the corresponding image dimension;
431
+ // otherwise an error is returned. The logical image size is not modified.
432
+ // Existing padding may be larger, so the stride need not equal min_physical_width.
431
433
  LIBHEIF_API
432
434
  heif_error heif_image_extend_padding_to_size(heif_image* image,
433
435
  int min_physical_width, int min_physical_height);
@@ -70,13 +70,15 @@ LIBHEIF_API
70
70
  const char* heif_image_handle_get_metadata_content_type(const heif_image_handle* handle,
71
71
  heif_item_id metadata_id);
72
72
 
73
- // Get the size of the raw metadata, as stored in the HEIF file.
73
+ // Get the size of the metadata content (decompressed for compressed MIME items).
74
+ // This may read and decompress the item on first access. Returns 0 if the item
75
+ // is missing or cannot be read.
74
76
  LIBHEIF_API
75
77
  size_t heif_image_handle_get_metadata_size(const heif_image_handle* handle,
76
78
  heif_item_id metadata_id);
77
79
 
78
80
  // 'out_data' must point to a memory area of the size reported by heif_image_handle_get_metadata_size().
79
- // The data is returned exactly as stored in the HEIF file.
81
+ // Compressed MIME data is returned decompressed.
80
82
  // For Exif data, you probably have to skip the first four bytes of the data, since they
81
83
  // indicate the offset to the start of the TIFF header of the Exif data.
82
84
  LIBHEIF_API
@@ -244,6 +244,7 @@ uint32_t heif_track_get_sample_entry_type_of_first_cluster(const heif_track*);
244
244
  * Only call this for tracks with 'urim' sample entry types. It will return an error otherwise.
245
245
  *
246
246
  * @param out_uri A string with the URI will be returned. Free this string with `heif_string_release()`.
247
+ * On error, this is set to NULL.
247
248
  */
248
249
  LIBHEIF_API
249
250
  heif_error heif_track_get_urim_sample_entry_uri_of_first_cluster(const heif_track*,
@@ -99,7 +99,7 @@ heif_item_id heif_text_item_get_id(heif_text_item* text_item);
99
99
  * This is the payload text, in the format given by the associated content_type.
100
100
  *
101
101
  * @param text_item the text item to query
102
- * @return the text item content (or null if the text_item is null). The returned string shall be released
102
+ * @return the text item content (or null if the item is null or cannot be read). The returned string shall be released
103
103
  * with heif_string_release().
104
104
  */
105
105
  LIBHEIF_API
@@ -28,10 +28,10 @@
28
28
  #define LIBHEIF_HEIF_VERSION_H
29
29
 
30
30
  /* Numeric representation of the version */
31
- #define LIBHEIF_NUMERIC_VERSION ((1<<24) | (23<<16) | (6<<8) | 0)
31
+ #define LIBHEIF_NUMERIC_VERSION ((1<<24) | (23<<16) | (7<<8) | 0)
32
32
 
33
33
  /* Version string */
34
- #define LIBHEIF_VERSION "1.23.6"
34
+ #define LIBHEIF_VERSION "1.23.7"
35
35
 
36
36
  #define LIBHEIF_PLUGIN_DIRECTORY "/target/lib/libheif"
37
37