@img/sharp-libvips-dev-wasm32 1.3.3-rc.0 → 1.3.4-rc.0
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/include/aom/aom_ext_ratectrl.h +2 -2
- package/include/aom/aom_image.h +49 -7
- package/include/aom/aomcx.h +16 -3
- package/include/expat.h +1 -1
- package/include/expat_config.h +3 -3
- package/include/libheif/heif_entity_groups.h +162 -1
- package/include/libheif/heif_items.h +68 -0
- package/include/libheif/heif_properties.h +2 -0
- package/include/libheif/heif_regions.h +12 -0
- package/include/libheif/heif_version.h +2 -2
- package/lib/libaom.a +0 -0
- package/lib/libcgif.a +0 -0
- package/lib/libexif.a +0 -0
- package/lib/libexpat.a +0 -0
- package/lib/libexpat.la +1 -1
- package/lib/libffi.a +0 -0
- package/lib/libgio-2.0.a +0 -0
- package/lib/libglib-2.0.a +0 -0
- package/lib/libgmodule-2.0.a +0 -0
- package/lib/libgobject-2.0.a +0 -0
- package/lib/libgthread-2.0.a +0 -0
- package/lib/libheif.a +0 -0
- package/lib/libhwy.a +0 -0
- package/lib/libimagequant.a +0 -0
- package/lib/libjpeg.a +0 -0
- package/lib/liblcms2.a +0 -0
- package/lib/libpng.a +0 -0
- package/lib/libpng16.a +0 -0
- package/lib/libresvg.a +0 -0
- package/lib/libsharpyuv.a +0 -0
- package/lib/libtiff.a +0 -0
- package/lib/libuhdr.a +0 -0
- package/lib/libvips-cpp.a +0 -0
- package/lib/libvips.a +0 -0
- package/lib/libwebp.a +0 -0
- package/lib/libwebpdecoder.a +0 -0
- package/lib/libwebpdemux.a +0 -0
- package/lib/libwebpmux.a +0 -0
- package/lib/libz.a +0 -0
- package/lib/pkgconfig/aom.pc +2 -2
- package/lib/pkgconfig/expat.pc +1 -1
- package/lib/pkgconfig/libheif.pc +1 -1
- package/package.json +1 -1
- package/versions.json +4 -4
|
@@ -145,7 +145,7 @@ typedef void *aom_rc_model_t;
|
|
|
145
145
|
#define AOM_DEFAULT_RDMULT -1
|
|
146
146
|
|
|
147
147
|
/*!\brief Superblock quantization parameters
|
|
148
|
-
* Store the superblock
|
|
148
|
+
* Store the superblock quantization parameters
|
|
149
149
|
*/
|
|
150
150
|
typedef struct aom_sb_parameters {
|
|
151
151
|
int q_index; /**< Quantizer step index [0..255]*/
|
|
@@ -241,7 +241,7 @@ typedef struct aom_rc_frame_stats {
|
|
|
241
241
|
/*!
|
|
242
242
|
* Weight assigned to this frame (or total weight for the collection of
|
|
243
243
|
* frames) currently based on intra factor and brightness factor. This is used
|
|
244
|
-
* to distribute bits
|
|
244
|
+
* to distribute bits between easier and harder frames.
|
|
245
245
|
*/
|
|
246
246
|
double weight;
|
|
247
247
|
/*!
|
package/include/aom/aom_image.h
CHANGED
|
@@ -209,13 +209,55 @@ typedef struct aom_metadata {
|
|
|
209
209
|
|
|
210
210
|
/**\brief Image Descriptor */
|
|
211
211
|
typedef struct aom_image {
|
|
212
|
-
aom_img_fmt_t fmt;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
212
|
+
aom_img_fmt_t fmt; /**< Image Format */
|
|
213
|
+
/*!\brief CICP Color Primaries
|
|
214
|
+
*
|
|
215
|
+
* \if av1_encoder
|
|
216
|
+
* \attention Only set by the decoder. To control the value used by the
|
|
217
|
+
* encoder, use the \ref AV1E_SET_COLOR_PRIMARIES codec control.
|
|
218
|
+
* \endif
|
|
219
|
+
*/
|
|
220
|
+
aom_color_primaries_t cp;
|
|
221
|
+
/*!\brief CICP Transfer Characteristics
|
|
222
|
+
*
|
|
223
|
+
* \if av1_encoder
|
|
224
|
+
* \attention Only set by the decoder. To control the value used by the
|
|
225
|
+
* encoder, use the \ref AV1E_SET_TRANSFER_CHARACTERISTICS codec control.
|
|
226
|
+
* \endif
|
|
227
|
+
*/
|
|
228
|
+
aom_transfer_characteristics_t tc;
|
|
229
|
+
/*!\brief CICP Matrix Coefficients
|
|
230
|
+
*
|
|
231
|
+
* \if av1_encoder
|
|
232
|
+
* \attention Only set by the decoder. To control the value used by the
|
|
233
|
+
* encoder, use the \ref AV1E_SET_MATRIX_COEFFICIENTS codec control.
|
|
234
|
+
* \endif
|
|
235
|
+
*/
|
|
236
|
+
aom_matrix_coefficients_t mc;
|
|
237
|
+
/*!\brief Whether image is monochrome
|
|
238
|
+
*
|
|
239
|
+
* \if av1_encoder
|
|
240
|
+
* \attention Only set by the decoder. To control the encoder behavior, set
|
|
241
|
+
* aom_codec_enc_cfg_t::monochrome.
|
|
242
|
+
* \endif
|
|
243
|
+
*/
|
|
244
|
+
int monochrome;
|
|
245
|
+
/*!\brief Chroma sample position
|
|
246
|
+
*
|
|
247
|
+
* \if av1_encoder
|
|
248
|
+
* \attention Only set by the decoder. To control the value used by the
|
|
249
|
+
* encoder, use the \ref AV1E_SET_CHROMA_SAMPLE_POSITION codec control.
|
|
250
|
+
* \endif
|
|
251
|
+
*/
|
|
252
|
+
aom_chroma_sample_position_t csp;
|
|
253
|
+
/*!\brief Color Range
|
|
254
|
+
*
|
|
255
|
+
* \if av1_encoder
|
|
256
|
+
* \attention Only set by the decoder. To control the value used by the
|
|
257
|
+
* encoder, use the \ref AV1E_SET_COLOR_RANGE codec control.
|
|
258
|
+
* \endif
|
|
259
|
+
*/
|
|
260
|
+
aom_color_range_t range;
|
|
219
261
|
|
|
220
262
|
/* Image storage dimensions */
|
|
221
263
|
unsigned int w; /**< Stored image width */
|
package/include/aom/aomcx.h
CHANGED
|
@@ -1637,15 +1637,25 @@ enum aome_enc_control_id {
|
|
|
1637
1637
|
*
|
|
1638
1638
|
* \attention Experimental. Not part of the stable API.
|
|
1639
1639
|
*/
|
|
1640
|
-
AV1E_GET_GOP_INFO,
|
|
1640
|
+
AV1E_GET_GOP_INFO = 174,
|
|
1641
1641
|
|
|
1642
|
-
/*!\brief Codec control function to validate HBD input.
|
|
1642
|
+
/*!\brief Codec control function to validate HBD input, int parameter.
|
|
1643
1643
|
*
|
|
1644
1644
|
* AV1 allows the encoder to validate the high bitdepth (HBD) input and
|
|
1645
1645
|
* ensure that every pixel is within the valid range. To disable/enable,
|
|
1646
1646
|
* set this parameter to 0/1. The default value is set to be 1.
|
|
1647
1647
|
*/
|
|
1648
|
-
AOME_SET_VALIDATE_HBD_INPUT,
|
|
1648
|
+
AOME_SET_VALIDATE_HBD_INPUT = 175,
|
|
1649
|
+
|
|
1650
|
+
/*!\brief Codec control function to toggle loopfilter mode_ref_delta_enabled,
|
|
1651
|
+
* int parameter.
|
|
1652
|
+
*
|
|
1653
|
+
* - 0 = disable
|
|
1654
|
+
* - 1 = enable (default)
|
|
1655
|
+
*
|
|
1656
|
+
* \note This is only used in loopfilter control unit test.
|
|
1657
|
+
*/
|
|
1658
|
+
AV1E_SET_MODE_REF_DELTA_ENABLED = 176,
|
|
1649
1659
|
|
|
1650
1660
|
// Any new encoder control IDs should be added above.
|
|
1651
1661
|
// Maximum allowed encoder control ID is 229.
|
|
@@ -2433,6 +2443,9 @@ AOM_CTRL_USE_TYPE(AV1E_SET_EXTERNAL_RATE_CONTROL, aom_rc_funcs_t *)
|
|
|
2433
2443
|
AOM_CTRL_USE_TYPE(AV1E_GET_GOP_INFO, aom_gop_info_t *)
|
|
2434
2444
|
#define AOM_CTRL_AV1E_GET_GOP_INFO
|
|
2435
2445
|
|
|
2446
|
+
AOM_CTRL_USE_TYPE(AV1E_SET_MODE_REF_DELTA_ENABLED, int)
|
|
2447
|
+
#define AOM_CTRL_AV1E_SET_MODE_REF_DELTA_ENABLED
|
|
2448
|
+
|
|
2436
2449
|
/*!\endcond */
|
|
2437
2450
|
/*! @} - end defgroup aom_encoder */
|
|
2438
2451
|
#ifdef __cplusplus
|
package/include/expat.h
CHANGED
|
@@ -1096,7 +1096,7 @@ XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled);
|
|
|
1096
1096
|
*/
|
|
1097
1097
|
# define XML_MAJOR_VERSION 2
|
|
1098
1098
|
# define XML_MINOR_VERSION 8
|
|
1099
|
-
# define XML_MICRO_VERSION
|
|
1099
|
+
# define XML_MICRO_VERSION 4
|
|
1100
1100
|
|
|
1101
1101
|
# ifdef __cplusplus
|
|
1102
1102
|
}
|
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.8.
|
|
86
|
+
#define PACKAGE_STRING "expat 2.8.4"
|
|
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.8.
|
|
95
|
+
#define PACKAGE_VERSION "2.8.4"
|
|
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.8.
|
|
103
|
+
#define VERSION "2.8.4"
|
|
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). */
|
|
@@ -27,6 +27,165 @@ extern "C" {
|
|
|
27
27
|
|
|
28
28
|
#include "libheif/heif_library.h"
|
|
29
29
|
|
|
30
|
+
// Entity group type FourCCs.
|
|
31
|
+
// For the complete list of registered entity group types, see https://mp4ra.org/registered-types/entity-groups
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Alternatives.
|
|
35
|
+
*
|
|
36
|
+
* Alternative versions of the same content, listed in order of preference.
|
|
37
|
+
* Only one of them should be displayed.
|
|
38
|
+
*
|
|
39
|
+
* See ISO/IEC 14496-12:2026 Section 8.15.3.1.
|
|
40
|
+
*/
|
|
41
|
+
#define heif_entity_group_altr heif_fourcc('a','l','t','r')
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Multi-resolution pyramid.
|
|
45
|
+
*
|
|
46
|
+
* The same image at different resolutions, listed from lowest to highest resolution.
|
|
47
|
+
*
|
|
48
|
+
* See ISO/IEC 23008-12:2025/Amd. 1:2025 Section 6.8.12.
|
|
49
|
+
*/
|
|
50
|
+
#define heif_entity_group_pymd heif_fourcc('p','y','m','d')
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Timeline equivalence.
|
|
54
|
+
*
|
|
55
|
+
* Relates untimed image items to an equivalent position in the timeline of a track.
|
|
56
|
+
*
|
|
57
|
+
* See ISO/IEC 23008-12:2025 Section 6.8.1.
|
|
58
|
+
*/
|
|
59
|
+
#define heif_entity_group_eqiv heif_fourcc('e','q','i','v')
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Image burst.
|
|
63
|
+
*
|
|
64
|
+
* A series of burst-captured images in temporally increasing order.
|
|
65
|
+
* The images can be stored as image items or as a single image sequence track (the group's only entity).
|
|
66
|
+
*
|
|
67
|
+
* See ISO/IEC 23008-12:2025 Section 6.8.2.
|
|
68
|
+
*/
|
|
69
|
+
#define heif_entity_group_brst heif_fourcc('b','r','s','t')
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Time-synchronized capture.
|
|
73
|
+
*
|
|
74
|
+
* Images captured simultaneously, stored either as image items or as image sequence tracks, but not a mixture of both.
|
|
75
|
+
*
|
|
76
|
+
* See ISO/IEC 23008-12:2025 Section 6.8.3.
|
|
77
|
+
*/
|
|
78
|
+
#define heif_entity_group_tsyn heif_fourcc('t','s','y','n')
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Stereo pair.
|
|
82
|
+
*
|
|
83
|
+
* A stereoscopic pair of two image items: first the left view, then the right view.
|
|
84
|
+
*
|
|
85
|
+
* See ISO/IEC 23008-12:2025 Section 6.8.5.
|
|
86
|
+
*/
|
|
87
|
+
#define heif_entity_group_ster heif_fourcc('s','t','e','r')
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Stereo pair with monoscopic fallback.
|
|
91
|
+
*
|
|
92
|
+
* Three image items: left view, right view, and a monoscopic fallback,
|
|
93
|
+
* which may be the same as the left or right view.
|
|
94
|
+
*
|
|
95
|
+
* See ISO/IEC 23008-12:2025/Amd. 1:2025 Section 6.8.11.
|
|
96
|
+
*/
|
|
97
|
+
#define heif_entity_group_stem heif_fourcc('s','t','e','m')
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Auto-exposure bracketing.
|
|
101
|
+
*
|
|
102
|
+
* Images of the same scene taken with varying exposure settings.
|
|
103
|
+
*
|
|
104
|
+
* See ISO/IEC 23008-12:2025 Section 6.8.6.2.
|
|
105
|
+
*/
|
|
106
|
+
#define heif_entity_group_aebr heif_fourcc('a','e','b','r')
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* White balance bracketing.
|
|
110
|
+
*
|
|
111
|
+
* Images of the same scene taken with varying white balance settings.
|
|
112
|
+
*
|
|
113
|
+
* See ISO/IEC 23008-12:2025 Section 6.8.6.3.
|
|
114
|
+
*/
|
|
115
|
+
#define heif_entity_group_wbbr heif_fourcc('w','b','b','r')
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Focus bracketing.
|
|
119
|
+
*
|
|
120
|
+
* Images of the same scene taken with varying focus settings.
|
|
121
|
+
*
|
|
122
|
+
* See ISO/IEC 23008-12:2025 Section 6.8.6.4.
|
|
123
|
+
*/
|
|
124
|
+
#define heif_entity_group_fobr heif_fourcc('f','o','b','r')
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Flash exposure bracketing.
|
|
128
|
+
*
|
|
129
|
+
* Images of the same scene taken with varying flash exposure settings.
|
|
130
|
+
*
|
|
131
|
+
* See ISO/IEC 23008-12:2025 Section 6.8.6.5.
|
|
132
|
+
*/
|
|
133
|
+
#define heif_entity_group_afbr heif_fourcc('a','f','b','r')
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Depth of field bracketing.
|
|
137
|
+
*
|
|
138
|
+
* Images of the same scene taken with varying aperture settings.
|
|
139
|
+
*
|
|
140
|
+
* See ISO/IEC 23008-12:2025 Section 6.8.6.6.
|
|
141
|
+
*/
|
|
142
|
+
#define heif_entity_group_dobr heif_fourcc('d','o','b','r')
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Album collection.
|
|
146
|
+
*
|
|
147
|
+
* A user-defined album of images.
|
|
148
|
+
*
|
|
149
|
+
* See ISO/IEC 23008-12:2025 Section 6.8.7.1.
|
|
150
|
+
*/
|
|
151
|
+
#define heif_entity_group_albc heif_fourcc('a','l','b','c')
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Favorites collection.
|
|
155
|
+
*
|
|
156
|
+
* A user-defined collection of favorite images.
|
|
157
|
+
*
|
|
158
|
+
* See ISO/IEC 23008-12:2025 Section 6.8.7.2.
|
|
159
|
+
*/
|
|
160
|
+
#define heif_entity_group_favc heif_fourcc('f','a','v','c')
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Panorama.
|
|
164
|
+
*
|
|
165
|
+
* Images captured to be composed into a panorama, listed in panorama order.
|
|
166
|
+
*
|
|
167
|
+
* See ISO/IEC 23008-12:2025 Section 6.8.8.
|
|
168
|
+
*/
|
|
169
|
+
#define heif_entity_group_pano heif_fourcc('p','a','n','o')
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Slideshow.
|
|
173
|
+
*
|
|
174
|
+
* Images intended to form a slideshow, listed in display order.
|
|
175
|
+
*
|
|
176
|
+
* See ISO/IEC 23008-12:2025 Section 6.8.9.
|
|
177
|
+
*/
|
|
178
|
+
#define heif_entity_group_slid heif_fourcc('s','l','i','d')
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Progressive rendering.
|
|
182
|
+
*
|
|
183
|
+
* The same image at different quality levels, listed from lowest to highest quality.
|
|
184
|
+
* These images should also be members of an 'altr' entity group.
|
|
185
|
+
*
|
|
186
|
+
* See ISO/IEC 23008-12:2025 Section 6.8.10.
|
|
187
|
+
*/
|
|
188
|
+
#define heif_entity_group_prgr heif_fourcc('p','r','g','r')
|
|
30
189
|
|
|
31
190
|
// ------------------------- entity groups ------------------------
|
|
32
191
|
|
|
@@ -35,11 +194,13 @@ typedef uint32_t heif_entity_group_id;
|
|
|
35
194
|
typedef struct heif_entity_group
|
|
36
195
|
{
|
|
37
196
|
heif_entity_group_id entity_group_id;
|
|
38
|
-
|
|
197
|
+
// one of the heif_entity_group_* FourCC constants defined above
|
|
198
|
+
uint32_t entity_group_type;
|
|
39
199
|
heif_item_id* entities;
|
|
40
200
|
uint32_t num_entities;
|
|
41
201
|
} heif_entity_group;
|
|
42
202
|
|
|
203
|
+
// `type_filter` is the wanted FourCC of the entity group type.
|
|
43
204
|
// Use 0 for `type_filter` or `item_filter` to disable the filter.
|
|
44
205
|
// Returns an array of heif_entity_group structs with *out_num_groups entries.
|
|
45
206
|
LIBHEIF_API
|
|
@@ -73,6 +73,12 @@ uint32_t heif_item_get_item_type(const heif_context* ctx, heif_item_id item_id);
|
|
|
73
73
|
|
|
74
74
|
#define heif_item_type_mime heif_fourcc('m','i','m','e')
|
|
75
75
|
#define heif_item_type_uri heif_fourcc('u','r','i',' ')
|
|
76
|
+
#define heif_item_type_exif heif_fourcc('E','x','i','f')
|
|
77
|
+
#define heif_item_type_grid heif_fourcc('g','r','i','d')
|
|
78
|
+
#define heif_item_type_hvc1 heif_fourcc('h','v','c','1')
|
|
79
|
+
#define heif_item_type_unci heif_fourcc('u','n','c','i')
|
|
80
|
+
#define heif_item_type_av01 heif_fourcc('a','v','0','1')
|
|
81
|
+
#define heif_item_type_avc1 heif_fourcc('a','v','c','1')
|
|
76
82
|
|
|
77
83
|
LIBHEIF_API
|
|
78
84
|
int heif_item_is_item_hidden(const heif_context* ctx, heif_item_id item_id);
|
|
@@ -227,12 +233,50 @@ heif_error heif_context_add_item_references(heif_context* ctx,
|
|
|
227
233
|
|
|
228
234
|
// ------------------------- adding new items -------------------------
|
|
229
235
|
|
|
236
|
+
/*
|
|
237
|
+
* All functions in this section add a new item to the context and return its ID in
|
|
238
|
+
* 'out_item_id'. The item ID is freshly allocated and does not collide with any item that
|
|
239
|
+
* already exists in the context, including items read from an input file.
|
|
240
|
+
*
|
|
241
|
+
* 'data' is copied into the context, the caller may release it afterwards. 'size' is the
|
|
242
|
+
* number of bytes in 'data'. A NULL 'data' is only allowed together with size 0.
|
|
243
|
+
* 'out_item_id' may be NULL, in which case the item is added but its ID is not reported.
|
|
244
|
+
*
|
|
245
|
+
* The new item is marked as hidden. Use heif_context_add_item_reference() to link it to an
|
|
246
|
+
* image (e.g. with a 'cdsc' reference for metadata that describes the image).
|
|
247
|
+
*
|
|
248
|
+
* Note that a file must contain at least one image or image sequence to be written;
|
|
249
|
+
* a context holding only items added with these functions cannot be written.
|
|
250
|
+
*/
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Add an item with an arbitrary four-character item type (e.g. "Exif").
|
|
254
|
+
*
|
|
255
|
+
* @param ctx the file context
|
|
256
|
+
* @param item_type four-character item type
|
|
257
|
+
* @param data the item payload
|
|
258
|
+
* @param size number of bytes in 'data'
|
|
259
|
+
* @param out_item_id receives the ID of the new item (may be NULL)
|
|
260
|
+
*/
|
|
230
261
|
LIBHEIF_API
|
|
231
262
|
heif_error heif_context_add_item(heif_context* ctx,
|
|
232
263
|
const char* item_type,
|
|
233
264
|
const void* data, int size,
|
|
234
265
|
heif_item_id* out_item_id);
|
|
235
266
|
|
|
267
|
+
/**
|
|
268
|
+
* Add a 'mime' item, optionally compressing the payload.
|
|
269
|
+
*
|
|
270
|
+
* @param ctx the file context
|
|
271
|
+
* @param content_type MIME content type of the payload (e.g. "application/rdf+xml")
|
|
272
|
+
* @param content_encoding compression to apply to the payload before storing it.
|
|
273
|
+
* Use heif_metadata_compression_method_supported() to check which methods this
|
|
274
|
+
* build of libheif can compress. An unsupported method returns an error and no
|
|
275
|
+
* item is added.
|
|
276
|
+
* @param data the (uncompressed) item payload
|
|
277
|
+
* @param size number of bytes in 'data'
|
|
278
|
+
* @param out_item_id receives the ID of the new item (may be NULL)
|
|
279
|
+
*/
|
|
236
280
|
LIBHEIF_API
|
|
237
281
|
heif_error heif_context_add_mime_item(heif_context* ctx,
|
|
238
282
|
const char* content_type,
|
|
@@ -240,6 +284,21 @@ heif_error heif_context_add_mime_item(heif_context* ctx,
|
|
|
240
284
|
const void* data, int size,
|
|
241
285
|
heif_item_id* out_item_id);
|
|
242
286
|
|
|
287
|
+
/**
|
|
288
|
+
* Add a 'mime' item whose payload has already been compressed by the caller.
|
|
289
|
+
*
|
|
290
|
+
* @param ctx the file context
|
|
291
|
+
* @param content_type MIME content type of the (uncompressed) payload
|
|
292
|
+
* @param content_encoding the HTTP content-coding name that was applied to 'data', stored
|
|
293
|
+
* verbatim as the item's content_encoding. Use "" for uncompressed data.
|
|
294
|
+
* libheif itself can decode "deflate", "compress_zlib" and "br" (when built with
|
|
295
|
+
* zlib / Brotli support) and treats "identity" as uncompressed; items with any other
|
|
296
|
+
* content_encoding are kept, but their data can only be retrieved in compressed form
|
|
297
|
+
* with heif_item_get_item_data().
|
|
298
|
+
* @param data the compressed item payload
|
|
299
|
+
* @param size number of bytes in 'data'
|
|
300
|
+
* @param out_item_id receives the ID of the new item (may be NULL)
|
|
301
|
+
*/
|
|
243
302
|
LIBHEIF_API
|
|
244
303
|
heif_error heif_context_add_precompressed_mime_item(heif_context* ctx,
|
|
245
304
|
const char* content_type,
|
|
@@ -247,6 +306,15 @@ heif_error heif_context_add_precompressed_mime_item(heif_context* ctx,
|
|
|
247
306
|
const void* data, int size,
|
|
248
307
|
heif_item_id* out_item_id);
|
|
249
308
|
|
|
309
|
+
/**
|
|
310
|
+
* Add a 'uri ' item.
|
|
311
|
+
*
|
|
312
|
+
* @param ctx the file context
|
|
313
|
+
* @param item_uri_type the URI that identifies the type of the item payload
|
|
314
|
+
* @param data the item payload
|
|
315
|
+
* @param size number of bytes in 'data'
|
|
316
|
+
* @param out_item_id receives the ID of the new item (may be NULL)
|
|
317
|
+
*/
|
|
250
318
|
LIBHEIF_API
|
|
251
319
|
heif_error heif_context_add_uri_item(heif_context* ctx,
|
|
252
320
|
const char* item_uri_type,
|
|
@@ -131,6 +131,8 @@ int heif_item_get_property_transform_rotation_ccw(const heif_context* context,
|
|
|
131
131
|
// Because of the way this data is stored, you have to pass the image size at the moment of the crop operation
|
|
132
132
|
// to compute the cropped border sizes.
|
|
133
133
|
// If 'propertyId==0', it returns the first clap property found.
|
|
134
|
+
// If the clap cannot be applied to the given image size (zero size or a size beyond the
|
|
135
|
+
// supported coordinate range), all four borders are set to 0.
|
|
134
136
|
LIBHEIF_API
|
|
135
137
|
void heif_item_get_property_transform_crop_borders(const heif_context* context,
|
|
136
138
|
heif_item_id itemId,
|
|
@@ -722,6 +722,12 @@ heif_error heif_region_item_add_region_ellipse(heif_region_item* region_item,
|
|
|
722
722
|
* The points are provided as pairs of X,Y coordinates, in the order X<sub>1</sub>,
|
|
723
723
|
* Y<sub>1</sub>, X<sub>2</sub>, Y<sub>2</sub>, ..., X<sub>n</sub>, Y<sub>n</sub>.
|
|
724
724
|
*
|
|
725
|
+
* @c pts_array must point to at least `2 * nPoints` values. The library cannot
|
|
726
|
+
* verify the size of the array, so passing a shorter array reads beyond its end.
|
|
727
|
+
* @c nPoints must not be negative and @c pts_array must not be `NULL` when
|
|
728
|
+
* @c nPoints is greater than zero. Otherwise the function fails without
|
|
729
|
+
* modifying the region item.
|
|
730
|
+
*
|
|
725
731
|
* @param region_item the region item that holds this polygon region
|
|
726
732
|
* @param pts_array the array of points in X,Y order (see above)
|
|
727
733
|
* @param nPoints the number of points
|
|
@@ -745,6 +751,12 @@ heif_error heif_region_item_add_region_polygon(heif_region_item* region_item,
|
|
|
745
751
|
* The points are provided as pairs of X,Y coordinates, in the order X<sub>1</sub>,
|
|
746
752
|
* Y<sub>1</sub>, X<sub>2</sub>, Y<sub>2</sub>, ..., X<sub>n</sub>, Y<sub>n</sub>.
|
|
747
753
|
*
|
|
754
|
+
* @c pts_array must point to at least `2 * nPoints` values. The library cannot
|
|
755
|
+
* verify the size of the array, so passing a shorter array reads beyond its end.
|
|
756
|
+
* @c nPoints must not be negative and @c pts_array must not be `NULL` when
|
|
757
|
+
* @c nPoints is greater than zero. Otherwise the function fails without
|
|
758
|
+
* modifying the region item.
|
|
759
|
+
*
|
|
748
760
|
* @param region_item the region item that holds this polyline region
|
|
749
761
|
* @param pts_array the array of points in X,Y order (see above)
|
|
750
762
|
* @param nPoints the number of points
|
|
@@ -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) | (3<<8) | 0)
|
|
32
32
|
|
|
33
33
|
/* Version string */
|
|
34
|
-
#define LIBHEIF_VERSION "1.23.
|
|
34
|
+
#define LIBHEIF_VERSION "1.23.3"
|
|
35
35
|
|
|
36
36
|
#define LIBHEIF_PLUGIN_DIRECTORY "/src/build/target/lib/libheif"
|
|
37
37
|
|
package/lib/libaom.a
CHANGED
|
Binary file
|
package/lib/libcgif.a
CHANGED
|
Binary file
|
package/lib/libexif.a
CHANGED
|
Binary file
|
package/lib/libexpat.a
CHANGED
|
Binary file
|
package/lib/libexpat.la
CHANGED
package/lib/libffi.a
CHANGED
|
Binary file
|
package/lib/libgio-2.0.a
CHANGED
|
Binary file
|
package/lib/libglib-2.0.a
CHANGED
|
Binary file
|
package/lib/libgmodule-2.0.a
CHANGED
|
Binary file
|
package/lib/libgobject-2.0.a
CHANGED
|
Binary file
|
package/lib/libgthread-2.0.a
CHANGED
|
Binary file
|
package/lib/libheif.a
CHANGED
|
Binary file
|
package/lib/libhwy.a
CHANGED
|
Binary file
|
package/lib/libimagequant.a
CHANGED
|
Binary file
|
package/lib/libjpeg.a
CHANGED
|
Binary file
|
package/lib/liblcms2.a
CHANGED
|
Binary file
|
package/lib/libpng.a
CHANGED
|
Binary file
|
package/lib/libpng16.a
CHANGED
|
Binary file
|
package/lib/libresvg.a
CHANGED
|
Binary file
|
package/lib/libsharpyuv.a
CHANGED
|
Binary file
|
package/lib/libtiff.a
CHANGED
|
Binary file
|
package/lib/libuhdr.a
CHANGED
|
Binary file
|
package/lib/libvips-cpp.a
CHANGED
|
Binary file
|
package/lib/libvips.a
CHANGED
|
Binary file
|
package/lib/libwebp.a
CHANGED
|
Binary file
|
package/lib/libwebpdecoder.a
CHANGED
|
Binary file
|
package/lib/libwebpdemux.a
CHANGED
|
Binary file
|
package/lib/libwebpmux.a
CHANGED
|
Binary file
|
package/lib/libz.a
CHANGED
|
Binary file
|
package/lib/pkgconfig/aom.pc
CHANGED
|
@@ -5,8 +5,8 @@ includedir=${prefix}/include
|
|
|
5
5
|
libdir=${exec_prefix}/lib
|
|
6
6
|
|
|
7
7
|
Name: aom
|
|
8
|
-
Description: Alliance for Open Media AV1 codec library v3.
|
|
9
|
-
Version: 3.
|
|
8
|
+
Description: Alliance for Open Media AV1 codec library v3.15.0.
|
|
9
|
+
Version: 3.15.0
|
|
10
10
|
Requires:
|
|
11
11
|
Conflicts:
|
|
12
12
|
Libs: -L${libdir} -laom
|
package/lib/pkgconfig/expat.pc
CHANGED
package/lib/pkgconfig/libheif.pc
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@img/sharp-libvips-dev-wasm32",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4-rc.0",
|
|
4
4
|
"description": "Header files and static wasm32 libraries for libvips and dependencies to build sharp as wasm32",
|
|
5
5
|
"author": "Lovell Fuller <npm@lovell.info>",
|
|
6
6
|
"homepage": "https://sharp.pixelplumbing.com",
|
package/versions.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"aom": "3.
|
|
2
|
+
"aom": "3.15.0",
|
|
3
3
|
"cgif": "0.5.3",
|
|
4
|
-
"emscripten": "6.0.
|
|
4
|
+
"emscripten": "6.0.9",
|
|
5
5
|
"exif": "0.6.26",
|
|
6
|
-
"expat": "2.8.
|
|
6
|
+
"expat": "2.8.4",
|
|
7
7
|
"ffi": "3.8.0",
|
|
8
8
|
"glib": "2.89.4",
|
|
9
|
-
"heif": "1.23.
|
|
9
|
+
"heif": "1.23.3",
|
|
10
10
|
"highway": "1.4.0",
|
|
11
11
|
"imagequant": "2.4.1",
|
|
12
12
|
"lcms": "2.19.1",
|