@revizly/sharp-libvips-dev 1.0.55 → 1.0.57
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.
- package/cplusplus/VImage.cpp +15 -0
- package/cplusplus/vips-operators.cpp +101 -0
- package/include/archive.h +4 -2
- package/include/archive_entry.h +1 -1
- package/include/brotli/decode.h +1 -3
- package/include/expat.h +3 -2
- package/include/expat_config.h +3 -3
- package/include/expat_external.h +1 -1
- package/include/fribidi/fribidi-config.h +2 -2
- package/include/harfbuzz/hb-buffer.h +15 -0
- package/include/harfbuzz/hb-deprecated.h +5 -0
- package/include/harfbuzz/hb-font.h +0 -4
- package/include/harfbuzz/hb-ot-metrics.h +1 -1
- package/include/harfbuzz/hb-version.h +3 -3
- package/include/lcms2.h +6 -4
- package/include/lcms2_plugin.h +30 -0
- package/include/libheif/heif_cxx.h +24 -2
- package/include/libheif/heif_image.h +4 -2
- package/include/libheif/heif_metadata.h +4 -2
- package/include/libheif/heif_sequences.h +1 -0
- package/include/libheif/heif_text.h +1 -1
- package/include/libheif/heif_version.h +2 -2
- package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
- package/include/vips/VImage8.h +207 -3
- package/include/vips/arithmetic.h +2 -2
- package/include/vips/colour.h +71 -2
- package/include/vips/conversion.h +6 -1
- package/include/vips/enumtypes.h +9 -0
- package/include/vips/error.h +2 -0
- package/include/vips/foreign.h +19 -0
- package/include/vips/header.h +17 -0
- package/include/vips/histogram.h +3 -0
- package/include/vips/image.h +3 -1
- package/include/vips/memory.h +1 -0
- package/include/vips/region.h +3 -0
- package/include/vips/threadpool.h +3 -3
- package/include/vips/util.h +28 -0
- package/include/vips/version.h +8 -8
- package/include/vips/vips.h +5 -0
- package/package.json +1 -1
- package/versions.json +10 -10
package/cplusplus/VImage.cpp
CHANGED
|
@@ -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
|
{
|
|
@@ -2724,6 +2736,19 @@ VImage::percent(double percent, VOption *options) const
|
|
|
2724
2736
|
return threshold;
|
|
2725
2737
|
}
|
|
2726
2738
|
|
|
2739
|
+
double
|
|
2740
|
+
VImage::percent_lum(double percent, VOption *options) const
|
|
2741
|
+
{
|
|
2742
|
+
double threshold;
|
|
2743
|
+
|
|
2744
|
+
call("percent_lum", (options ? options : VImage::option())
|
|
2745
|
+
->set("in", *this)
|
|
2746
|
+
->set("threshold", &threshold)
|
|
2747
|
+
->set("percent", percent));
|
|
2748
|
+
|
|
2749
|
+
return threshold;
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2727
2752
|
VImage
|
|
2728
2753
|
VImage::perlin(int width, int height, VOption *options)
|
|
2729
2754
|
{
|
|
@@ -2928,6 +2953,70 @@ VImage::project(VImage *rows, VOption *options) const
|
|
|
2928
2953
|
return columns;
|
|
2929
2954
|
}
|
|
2930
2955
|
|
|
2956
|
+
VImage
|
|
2957
|
+
VImage::qoiload(const char *filename, VOption *options)
|
|
2958
|
+
{
|
|
2959
|
+
VImage out;
|
|
2960
|
+
|
|
2961
|
+
call("qoiload", (options ? options : VImage::option())
|
|
2962
|
+
->set("out", &out)
|
|
2963
|
+
->set("filename", filename));
|
|
2964
|
+
|
|
2965
|
+
return out;
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
VImage
|
|
2969
|
+
VImage::qoiload_buffer(VipsBlob *buffer, VOption *options)
|
|
2970
|
+
{
|
|
2971
|
+
VImage out;
|
|
2972
|
+
|
|
2973
|
+
call("qoiload_buffer", (options ? options : VImage::option())
|
|
2974
|
+
->set("out", &out)
|
|
2975
|
+
->set("buffer", buffer));
|
|
2976
|
+
|
|
2977
|
+
return out;
|
|
2978
|
+
}
|
|
2979
|
+
|
|
2980
|
+
VImage
|
|
2981
|
+
VImage::qoiload_source(VSource source, VOption *options)
|
|
2982
|
+
{
|
|
2983
|
+
VImage out;
|
|
2984
|
+
|
|
2985
|
+
call("qoiload_source", (options ? options : VImage::option())
|
|
2986
|
+
->set("out", &out)
|
|
2987
|
+
->set("source", source));
|
|
2988
|
+
|
|
2989
|
+
return out;
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
void
|
|
2993
|
+
VImage::qoisave(const char *filename, VOption *options) const
|
|
2994
|
+
{
|
|
2995
|
+
call("qoisave", (options ? options : VImage::option())
|
|
2996
|
+
->set("in", *this)
|
|
2997
|
+
->set("filename", filename));
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
VipsBlob *
|
|
3001
|
+
VImage::qoisave_buffer(VOption *options) const
|
|
3002
|
+
{
|
|
3003
|
+
VipsBlob *buffer;
|
|
3004
|
+
|
|
3005
|
+
call("qoisave_buffer", (options ? options : VImage::option())
|
|
3006
|
+
->set("in", *this)
|
|
3007
|
+
->set("buffer", &buffer));
|
|
3008
|
+
|
|
3009
|
+
return buffer;
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
void
|
|
3013
|
+
VImage::qoisave_target(VTarget target, VOption *options) const
|
|
3014
|
+
{
|
|
3015
|
+
call("qoisave_target", (options ? options : VImage::option())
|
|
3016
|
+
->set("in", *this)
|
|
3017
|
+
->set("target", target));
|
|
3018
|
+
}
|
|
3019
|
+
|
|
2931
3020
|
VImage
|
|
2932
3021
|
VImage::quadratic(VImage coeff, VOption *options) const
|
|
2933
3022
|
{
|
|
@@ -3310,6 +3399,18 @@ VImage::scRGB2BW(VOption *options) const
|
|
|
3310
3399
|
return out;
|
|
3311
3400
|
}
|
|
3312
3401
|
|
|
3402
|
+
VImage
|
|
3403
|
+
VImage::scRGB2CICP(VOption *options) const
|
|
3404
|
+
{
|
|
3405
|
+
VImage out;
|
|
3406
|
+
|
|
3407
|
+
call("scRGB2CICP", (options ? options : VImage::option())
|
|
3408
|
+
->set("in", *this)
|
|
3409
|
+
->set("out", &out));
|
|
3410
|
+
|
|
3411
|
+
return out;
|
|
3412
|
+
}
|
|
3413
|
+
|
|
3313
3414
|
VImage
|
|
3314
3415
|
VImage::scRGB2XYZ(VOption *options) const
|
|
3315
3416
|
{
|
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
|
|
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.
|
|
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
|
/*
|
package/include/archive_entry.h
CHANGED
|
@@ -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
|
|
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/brotli/decode.h
CHANGED
|
@@ -85,9 +85,7 @@ typedef enum {
|
|
|
85
85
|
BROTLI_ERROR_CODE(_ERROR_FORMAT_, PADDING_1, -14) SEPARATOR \
|
|
86
86
|
BROTLI_ERROR_CODE(_ERROR_FORMAT_, PADDING_2, -15) SEPARATOR \
|
|
87
87
|
BROTLI_ERROR_CODE(_ERROR_FORMAT_, DISTANCE, -16) SEPARATOR \
|
|
88
|
-
|
|
89
|
-
/* -17 code is reserved */ \
|
|
90
|
-
\
|
|
88
|
+
BROTLI_ERROR_CODE(_ERROR_FORMAT_, BLOCK_SWITCH, -17) SEPARATOR \
|
|
91
89
|
BROTLI_ERROR_CODE(_ERROR_, COMPOUND_DICTIONARY, -18) SEPARATOR \
|
|
92
90
|
BROTLI_ERROR_CODE(_ERROR_, DICTIONARY_NOT_SET, -19) SEPARATOR \
|
|
93
91
|
BROTLI_ERROR_CODE(_ERROR_, INVALID_ARGUMENTS, -20) SEPARATOR \
|
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
|
|
1150
|
+
# define XML_MINOR_VERSION 10
|
|
1150
1151
|
# define XML_MICRO_VERSION 0
|
|
1151
1152
|
|
|
1152
1153
|
# ifdef __cplusplus
|
package/include/expat_config.h
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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). */
|
package/include/expat_external.h
CHANGED
|
@@ -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-
|
|
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.
|
|
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
|
|
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
|
/*
|
|
@@ -388,6 +388,11 @@ hb_font_get_glyph_shape (hb_font_t *font,
|
|
|
388
388
|
*/
|
|
389
389
|
#define HB_AAT_LAYOUT_FEATURE_TYPE_CURISVE_CONNECTION HB_AAT_LAYOUT_FEATURE_TYPE_CURSIVE_CONNECTION
|
|
390
390
|
|
|
391
|
+
HB_DEPRECATED_FOR (hb_font_create)
|
|
392
|
+
HB_EXTERN void
|
|
393
|
+
hb_font_set_face (hb_font_t *font,
|
|
394
|
+
hb_face_t *face);
|
|
395
|
+
|
|
391
396
|
#endif
|
|
392
397
|
|
|
393
398
|
|
|
@@ -1159,10 +1159,6 @@ hb_font_set_parent (hb_font_t *font,
|
|
|
1159
1159
|
HB_EXTERN hb_font_t *
|
|
1160
1160
|
hb_font_get_parent (hb_font_t *font);
|
|
1161
1161
|
|
|
1162
|
-
HB_EXTERN void
|
|
1163
|
-
hb_font_set_face (hb_font_t *font,
|
|
1164
|
-
hb_face_t *face);
|
|
1165
|
-
|
|
1166
1162
|
HB_EXTERN hb_face_t *
|
|
1167
1163
|
hb_font_get_face (hb_font_t *font);
|
|
1168
1164
|
|
|
@@ -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);
|
|
@@ -41,13 +41,13 @@ HB_BEGIN_DECLS
|
|
|
41
41
|
*
|
|
42
42
|
* The major component of the library version available at compile-time.
|
|
43
43
|
*/
|
|
44
|
-
#define HB_VERSION_MAJOR
|
|
44
|
+
#define HB_VERSION_MAJOR 15
|
|
45
45
|
/**
|
|
46
46
|
* HB_VERSION_MINOR:
|
|
47
47
|
*
|
|
48
48
|
* The minor component of the library version available at compile-time.
|
|
49
49
|
*/
|
|
50
|
-
#define HB_VERSION_MINOR
|
|
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 "
|
|
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.
|
|
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
|
-
|
|
90
|
-
|
|
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
|
|
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
|
package/include/lcms2_plugin.h
CHANGED
|
@@ -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
|
-
//
|
|
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
|
-
//
|
|
430
|
-
//
|
|
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
|
|
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
|
-
//
|
|
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
|
|
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) | (
|
|
31
|
+
#define LIBHEIF_NUMERIC_VERSION ((1<<24) | (23<<16) | (7<<8) | 0)
|
|
32
32
|
|
|
33
33
|
/* Version string */
|
|
34
|
-
#define LIBHEIF_VERSION "1.23.
|
|
34
|
+
#define LIBHEIF_VERSION "1.23.7"
|
|
35
35
|
|
|
36
36
|
#define LIBHEIF_PLUGIN_DIRECTORY "/target/lib/libheif"
|
|
37
37
|
|