@img/sharp-libvips-dev 1.3.0-rc.1 → 1.3.0-rc.3
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/archive.h +2 -2
- package/include/archive_entry.h +1 -1
- package/include/expat.h +2 -2
- package/include/expat_config.h +3 -6
- package/include/expat_external.h +2 -3
- package/include/freetype2/freetype/config/ftoption.h +7 -1
- package/include/freetype2/freetype/config/mac-support.h +2 -0
- package/include/freetype2/freetype/freetype.h +8 -17
- package/include/freetype2/freetype/ftbdf.h +9 -3
- package/include/freetype2/freetype/ftimage.h +1 -1
- package/include/freetype2/freetype/ftlcdfil.h +2 -8
- package/include/freetype2/freetype/ftparams.h +2 -5
- package/include/freetype2/freetype/t1tables.h +2 -2
- package/include/glib-2.0/gio/gfileattribute.h +1 -1
- package/include/glib-2.0/gio/gfileinfo.h +5 -0
- package/include/glib-2.0/gio/gicon.h +1 -1
- package/include/glib-2.0/gio/gio-autocleanups.h +0 -1
- package/include/glib-2.0/gio/gio.h +2 -0
- package/include/glib-2.0/gio/gioenums.h +61 -40
- package/include/glib-2.0/gio/gioenumtypes.h +2 -0
- package/include/glib-2.0/gio/giptosmessage.h +46 -0
- package/include/glib-2.0/gio/gipv6tclassmessage.h +46 -0
- package/include/glib-2.0/gio/gresolver.h +1 -1
- package/include/glib-2.0/gio/gsettings.h +1 -1
- package/include/glib-2.0/gio/gsocketcontrolmessage.h +2 -0
- package/include/glib-2.0/girepository/girepository.h +1 -1
- package/include/glib-2.0/girepository/girffi.h +2 -2
- package/include/glib-2.0/girepository/gitypes.h +3 -3
- package/include/glib-2.0/glib/gatomic.h +26 -2
- package/include/glib-2.0/glib/gfileutils.h +2 -2
- package/include/glib-2.0/glib/ghook.h +3 -1
- package/include/glib-2.0/glib/giochannel.h +1 -1
- package/include/glib-2.0/glib/gkeyfile.h +1 -1
- package/include/glib-2.0/glib/gmacros.h +32 -0
- package/include/glib-2.0/glib/gmain.h +4 -0
- package/include/glib-2.0/glib/gmarkup.h +8 -1
- package/include/glib-2.0/glib/gmessages.h +1 -1
- package/include/glib-2.0/glib/gnode.h +1 -1
- package/include/glib-2.0/glib/goption.h +1 -1
- package/include/glib-2.0/glib/gslice.h +12 -4
- package/include/glib-2.0/glib/gspawn.h +1 -1
- package/include/glib-2.0/glib/gstrfuncs.h +1 -1
- package/include/glib-2.0/glib/gtestutils.h +6 -3
- package/include/glib-2.0/glib/gtimer.h +1 -0
- package/include/glib-2.0/glib/guri.h +3 -3
- package/include/glib-2.0/glib/gutils.h +1 -1
- package/include/glib-2.0/gmodule.h +1 -1
- package/include/glib-2.0/gobject/gbinding.h +1 -1
- package/include/glib-2.0/gobject/gobject.h +1 -1
- package/include/glib-2.0/gobject/gparam.h +1 -1
- package/include/glib-2.0/gobject/gsignal.h +3 -3
- package/include/glib-2.0/gobject/gtype.h +3 -3
- package/include/harfbuzz/hb-buffer.h +11 -3
- package/include/harfbuzz/hb-cplusplus.hh +31 -27
- package/include/harfbuzz/hb-features.h +21 -0
- package/include/harfbuzz/hb-ot-color.h +14 -0
- package/include/harfbuzz/hb-ot-shape.h +15 -0
- package/include/harfbuzz/hb-paint.h +19 -18
- package/include/harfbuzz/hb-version.h +2 -2
- package/include/lcms2.h +3 -3
- package/include/lcms2_plugin.h +1 -1
- package/include/libheif/heif_brands.h +3 -0
- package/include/libheif/heif_color.h +6 -0
- package/include/libheif/heif_cxx.h +10 -8
- package/include/libheif/heif_decoding.h +10 -0
- package/include/libheif/heif_encoding.h +6 -2
- package/include/libheif/heif_error.h +2 -0
- package/include/libheif/heif_image.h +4 -1
- package/include/libheif/heif_image_handle.h +10 -1
- package/include/libheif/heif_items.h +24 -1
- package/include/libheif/heif_library.h +3 -0
- package/include/libheif/heif_metadata.h +3 -0
- package/include/libheif/heif_plugin.h +63 -3
- package/include/libheif/heif_properties.h +5 -1
- package/include/libheif/heif_regions.h +3 -1
- package/include/libheif/heif_security.h +5 -0
- package/include/libheif/heif_sequences.h +71 -4
- package/include/libheif/heif_text.h +161 -0
- package/include/libheif/heif_version.h +2 -2
- package/include/libpng16/png.h +636 -487
- package/include/libpng16/pngconf.h +2 -2
- package/include/libpng16/pnglibconf.h +2 -2
- package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
- package/include/librsvg-2.0/librsvg/rsvg.h +4 -4
- package/include/libxml2/libxml/catalog.h +2 -0
- package/include/libxml2/libxml/relaxng.h +4 -0
- package/include/libxml2/libxml/xmlversion.h +4 -4
- package/include/png.h +636 -487
- package/include/pngconf.h +2 -2
- package/include/pnglibconf.h +2 -2
- package/include/vips/colour.h +2 -2
- package/include/vips/memory.h +1 -1
- package/include/vips/version.h +4 -4
- package/include/zlib.h +3 -3
- package/package.json +1 -1
- package/versions.json +14 -14
- package/include/harfbuzz/hb-subset-serialize.h +0 -83
- package/include/harfbuzz/hb-subset.h +0 -297
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* HEIF codec.
|
|
3
|
+
* Copyright (c) 2023 Dirk Farin <dirk.farin@gmail.com>
|
|
4
|
+
* Copyright (c) 2025 Brad Hards <bradh@frogmouth.net>
|
|
5
|
+
*
|
|
6
|
+
* This file is part of libheif.
|
|
7
|
+
*
|
|
8
|
+
* libheif is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU Lesser General Public License as
|
|
10
|
+
* published by the Free Software Foundation, either version 3 of
|
|
11
|
+
* the License, or (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* libheif is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU Lesser General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
19
|
+
* along with libheif. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
#ifndef LIBHEIF_HEIF_TEXT_H
|
|
23
|
+
#define LIBHEIF_HEIF_TEXT_H
|
|
24
|
+
|
|
25
|
+
#include "heif_image_handle.h"
|
|
26
|
+
#include "heif_library.h"
|
|
27
|
+
#include "heif_error.h"
|
|
28
|
+
|
|
29
|
+
#ifdef __cplusplus
|
|
30
|
+
extern "C" {
|
|
31
|
+
#endif
|
|
32
|
+
|
|
33
|
+
// --- text items and fonts
|
|
34
|
+
|
|
35
|
+
// See ISO/IEC 23008-12:2025 Section 6.10 "Text and font items"
|
|
36
|
+
|
|
37
|
+
typedef struct heif_text_item heif_text_item;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Get the number of text items that are attached to an image.
|
|
41
|
+
*
|
|
42
|
+
* @param image_handle the image handle for the image to query.
|
|
43
|
+
* @return the number of text items, which can be zero.
|
|
44
|
+
*/
|
|
45
|
+
LIBHEIF_API
|
|
46
|
+
int heif_image_handle_get_number_of_text_items(const heif_image_handle* image_handle);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Get the text item identifiers for the text items attached to an image.
|
|
50
|
+
*
|
|
51
|
+
* Possible usage (in C++):
|
|
52
|
+
* @code
|
|
53
|
+
* int numTextItems = heif_image_handle_get_number_of_text_items(handle);
|
|
54
|
+
* if (numTextItems > 0) {
|
|
55
|
+
* std::vector<heif_item_id> text_item_ids(numTextItems);
|
|
56
|
+
* heif_image_handle_get_list_of_text_item_ids(handle, text_item_ids.data(), numTextItems);
|
|
57
|
+
* // use text item ids
|
|
58
|
+
* }
|
|
59
|
+
* @endcode
|
|
60
|
+
*
|
|
61
|
+
* @param image_handle the image handle for the parent image to query
|
|
62
|
+
* @param text_item_ids_array array to put the item identifiers into
|
|
63
|
+
* @param max_count the maximum number of text identifiers
|
|
64
|
+
* @return the number of text item identifiers that were returned.
|
|
65
|
+
*/
|
|
66
|
+
LIBHEIF_API
|
|
67
|
+
int heif_image_handle_get_list_of_text_item_ids(const heif_image_handle* image_handle,
|
|
68
|
+
heif_item_id* text_item_ids_array,
|
|
69
|
+
int max_count);
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Get the text item.
|
|
74
|
+
*
|
|
75
|
+
* Caller is responsible for release of the output heif_text_item with heif_text_item_release().
|
|
76
|
+
*
|
|
77
|
+
* @param context the context to get the text item from, usually from a file operation
|
|
78
|
+
* @param text_item_id the identifier for the text item
|
|
79
|
+
* @param out pointer to pointer to the resulting text item
|
|
80
|
+
* @return heif_error_ok on success, or an error value indicating the problem
|
|
81
|
+
*/
|
|
82
|
+
LIBHEIF_API
|
|
83
|
+
heif_error heif_context_get_text_item(const heif_context* context,
|
|
84
|
+
heif_item_id text_item_id,
|
|
85
|
+
heif_text_item** out);
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Get the item identifier for a text item.
|
|
89
|
+
*
|
|
90
|
+
* @param text_item the text item to query
|
|
91
|
+
* @return the text item identifier (or 0 if the text_item is null)
|
|
92
|
+
*/
|
|
93
|
+
LIBHEIF_API
|
|
94
|
+
heif_item_id heif_text_item_get_id(heif_text_item* text_item);
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Get the item content for a text item.
|
|
98
|
+
*
|
|
99
|
+
* This is the payload text, in the format given by the associated content_type.
|
|
100
|
+
*
|
|
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
|
|
103
|
+
* with heif_string_release().
|
|
104
|
+
*/
|
|
105
|
+
LIBHEIF_API
|
|
106
|
+
const char* heif_text_item_get_content(heif_text_item* text_item);
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* This function is similar to heif_item_get_property_extended_language(), but
|
|
110
|
+
* takes a `heif_text_item` as parameter.
|
|
111
|
+
*
|
|
112
|
+
* @param text_item The text item for which we are requesting the language.
|
|
113
|
+
* @param out_language Output parameter for the text language. Free with heif_string_release().
|
|
114
|
+
* @return
|
|
115
|
+
*/
|
|
116
|
+
LIBHEIF_API
|
|
117
|
+
heif_error heif_text_item_get_property_extended_language(const heif_text_item* text_item,
|
|
118
|
+
char** out_language);
|
|
119
|
+
|
|
120
|
+
// --- adding text items
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Add a text item to an image.
|
|
124
|
+
*/
|
|
125
|
+
LIBHEIF_API
|
|
126
|
+
heif_error heif_image_handle_add_text_item(heif_image_handle *image_handle,
|
|
127
|
+
const char *content_type,
|
|
128
|
+
const char *text,
|
|
129
|
+
heif_text_item** out_text_item);
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Release a text item.
|
|
133
|
+
*
|
|
134
|
+
* This should be called on items from heif_context_add_text_item().
|
|
135
|
+
*
|
|
136
|
+
* @param text_item the item to release.
|
|
137
|
+
*/
|
|
138
|
+
LIBHEIF_API
|
|
139
|
+
void heif_text_item_release(heif_text_item* text_item);
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Set the extended language property to the text item.
|
|
143
|
+
*
|
|
144
|
+
* This adds an RFC 5346 (IETF BCP 47) extended language tag, such as "en-AU".
|
|
145
|
+
*
|
|
146
|
+
* @param text_item the text item to query
|
|
147
|
+
* @param language the language to set
|
|
148
|
+
* @param out_optional_propertyId Output parameter for the property ID of the language property.
|
|
149
|
+
* This parameter may be NULL if the info is not required.
|
|
150
|
+
* @return heif_error_ok on success, or an error value indicating the problem
|
|
151
|
+
*/
|
|
152
|
+
LIBHEIF_API
|
|
153
|
+
heif_error heif_text_item_set_extended_language(heif_text_item* text_item,
|
|
154
|
+
const char *language,
|
|
155
|
+
heif_property_id* out_optional_propertyId);
|
|
156
|
+
|
|
157
|
+
#ifdef __cplusplus
|
|
158
|
+
}
|
|
159
|
+
#endif
|
|
160
|
+
|
|
161
|
+
#endif
|
|
@@ -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) | (
|
|
31
|
+
#define LIBHEIF_NUMERIC_VERSION ((1<<24) | (21<<16) | (2<<8) | 0)
|
|
32
32
|
|
|
33
33
|
/* Version string */
|
|
34
|
-
#define LIBHEIF_VERSION "1.
|
|
34
|
+
#define LIBHEIF_VERSION "1.21.2"
|
|
35
35
|
|
|
36
36
|
#define LIBHEIF_PLUGIN_DIRECTORY "/target/lib/libheif"
|
|
37
37
|
|