@img/sharp-libvips-dev-wasm32 1.3.0-rc.6 → 1.3.0-rc.8
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/README.md +23 -23
- package/include/aom/aom_codec.h +1 -1
- package/include/aom/aom_decoder.h +4 -0
- package/include/aom/aom_encoder.h +19 -8
- package/include/aom/aom_ext_ratectrl.h +664 -0
- package/include/aom/aom_image.h +93 -30
- package/include/aom/aom_tpl.h +99 -0
- package/include/aom/aomcx.h +89 -16
- package/include/aom/aomdx.h +12 -0
- package/include/expat.h +14 -2
- package/include/expat_config.h +6 -3
- package/include/expat_external.h +3 -2
- package/include/glib-2.0/gio/gdbusconnection.h +2 -8
- package/include/glib-2.0/gio/gio-visibility.h +34 -0
- package/include/glib-2.0/gio/gioenums.h +5 -4
- package/include/glib-2.0/glib/glib-visibility.h +34 -0
- package/include/glib-2.0/glib/gmacros.h +3 -3
- package/include/glib-2.0/glib/gmarkup.h +10 -0
- package/include/glib-2.0/glib/gmem.h +4 -4
- package/include/glib-2.0/glib/gmessages.h +6 -8
- package/include/glib-2.0/glib/gsequence.h +2 -2
- package/include/glib-2.0/glib/gstrfuncs.h +190 -0
- package/include/glib-2.0/glib/gutils.h +9 -0
- package/include/glib-2.0/glib/gvarianttype.h +16 -16
- package/include/glib-2.0/glib/gversionmacros.h +22 -0
- package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
- package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
- package/include/glib-2.0/gobject/gsignal.h +5 -5
- package/include/glib-2.0/gobject/gtype.h +14 -14
- package/include/hwy/aligned_allocator.h +44 -2
- package/include/hwy/auto_tune.h +22 -6
- package/include/hwy/base.h +60 -90
- package/include/hwy/bit_set.h +410 -0
- package/include/hwy/cache_control.h +3 -2
- package/include/hwy/detect_compiler_arch.h +134 -14
- package/include/hwy/detect_targets.h +82 -36
- package/include/hwy/highway.h +15 -0
- package/include/hwy/nanobenchmark.h +12 -3
- package/include/hwy/ops/arm_neon-inl.h +96 -25
- package/include/hwy/ops/arm_sve-inl.h +250 -95
- package/include/hwy/ops/emu128-inl.h +12 -7
- package/include/hwy/ops/generic_ops-inl.h +271 -131
- package/include/hwy/ops/loongarch_lasx-inl.h +31 -9
- package/include/hwy/ops/loongarch_lsx-inl.h +33 -12
- package/include/hwy/ops/ppc_vsx-inl.h +99 -19
- package/include/hwy/ops/rvv-inl.h +239 -130
- package/include/hwy/ops/scalar-inl.h +22 -7
- package/include/hwy/ops/set_macros-inl.h +163 -107
- package/include/hwy/ops/wasm_128-inl.h +13 -22
- package/include/hwy/ops/x86_128-inl.h +223 -120
- package/include/hwy/ops/x86_256-inl.h +70 -134
- package/include/hwy/ops/x86_512-inl.h +130 -134
- package/include/hwy/print-inl.h +2 -0
- package/include/hwy/profiler.h +355 -264
- package/include/hwy/robust_statistics.h +3 -1
- package/include/hwy/timer.h +44 -0
- package/include/lcms2.h +34 -4
- package/include/libexif/exif-utils.h +1 -1
- package/include/libheif/heif.h +2 -0
- package/include/libheif/heif_color.h +127 -11
- package/include/libheif/heif_components.h +264 -0
- package/include/libheif/heif_context.h +2 -1
- package/include/libheif/heif_cxx.h +10 -10
- package/include/libheif/heif_decoding.h +51 -7
- package/include/libheif/heif_encoding.h +15 -9
- package/include/libheif/heif_error.h +9 -2
- package/include/libheif/heif_export.h +48 -0
- package/include/libheif/heif_image.h +81 -66
- package/include/libheif/heif_image_handle.h +2 -2
- package/include/libheif/heif_items.h +1 -1
- package/include/libheif/heif_library.h +8 -16
- package/include/libheif/heif_omaf.h +104 -0
- package/include/libheif/heif_plugin.h +16 -9
- package/include/libheif/heif_properties.h +250 -12
- package/include/libheif/heif_security.h +16 -4
- package/include/libheif/heif_sequences.h +86 -4
- package/include/libheif/heif_tiling.h +2 -2
- package/include/libheif/heif_uncompressed.h +44 -324
- package/include/libheif/heif_version.h +2 -2
- package/include/libpng16/png.h +7 -7
- package/include/libpng16/pngconf.h +1 -1
- package/include/libpng16/pnglibconf.h +1 -1
- package/include/png.h +7 -7
- package/include/pngconf.h +1 -1
- package/include/pnglibconf.h +1 -1
- package/include/tiffconf.h +9 -10
- package/include/tiffio.h +10 -9
- package/include/tiffvers.h +1 -1
- package/include/ultrahdr_api.h +5 -11
- package/include/vips/version.h +4 -4
- package/lib/glib-2.0/include/glibconfig.h +1 -3
- package/lib/libaom.a +0 -0
- package/lib/libcgif.a +0 -0
- package/lib/libexif.a +0 -0
- package/lib/libexif.la +1 -1
- package/lib/libexpat.a +0 -0
- package/lib/libexpat.la +3 -3
- 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/libpng.la +2 -2
- package/lib/libpng16.a +0 -0
- package/lib/libpng16.la +2 -2
- 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/gio-2.0.pc +1 -1
- package/lib/pkgconfig/glib-2.0.pc +1 -1
- package/lib/pkgconfig/gmodule-2.0.pc +1 -1
- package/lib/pkgconfig/gmodule-export-2.0.pc +1 -1
- package/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
- package/lib/pkgconfig/gobject-2.0.pc +1 -1
- package/lib/pkgconfig/gthread-2.0.pc +1 -1
- package/lib/pkgconfig/lcms2.pc +1 -1
- package/lib/pkgconfig/libexif.pc +1 -1
- package/lib/pkgconfig/libheif.pc +2 -2
- package/lib/pkgconfig/libhwy.pc +3 -4
- package/lib/pkgconfig/libpng.pc +1 -1
- package/lib/pkgconfig/libpng16.pc +1 -1
- package/lib/pkgconfig/libsharpyuv.pc +1 -1
- package/lib/pkgconfig/libtiff-4.pc +2 -2
- package/lib/pkgconfig/libwebp.pc +1 -1
- package/lib/pkgconfig/libwebpdecoder.pc +11 -0
- package/lib/pkgconfig/libwebpmux.pc +1 -1
- package/lib/pkgconfig/vips-cpp.pc +1 -1
- package/lib/pkgconfig/vips.pc +1 -1
- package/package.json +1 -1
- package/versions.json +12 -12
- package/include/libheif/heif_uncompressed_types.h +0 -143
- package/lib/libsharpyuv.la +0 -41
- package/lib/libtiff.la +0 -41
- package/lib/libwebp.la +0 -41
- package/lib/libwebpdemux.la +0 -41
- package/lib/libwebpmux.la +0 -41
|
@@ -85,8 +85,8 @@ typedef struct heif_decoding_options heif_decoding_options;
|
|
|
85
85
|
LIBHEIF_API
|
|
86
86
|
heif_error heif_image_handle_decode_image_tile(const heif_image_handle* in_handle,
|
|
87
87
|
heif_image** out_img,
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
heif_colorspace colorspace,
|
|
89
|
+
heif_chroma chroma,
|
|
90
90
|
const heif_decoding_options* options,
|
|
91
91
|
uint32_t tile_x, uint32_t tile_y);
|
|
92
92
|
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
#ifndef LIBHEIF_HEIF_UNCOMPRESSED_H
|
|
22
22
|
#define LIBHEIF_HEIF_UNCOMPRESSED_H
|
|
23
23
|
|
|
24
|
-
#include "libheif/
|
|
24
|
+
#include "libheif/heif_components.h"
|
|
25
|
+
#include "libheif/heif_properties.h"
|
|
25
26
|
#include "libheif/heif.h"
|
|
26
27
|
|
|
27
28
|
#ifdef __cplusplus
|
|
@@ -33,219 +34,48 @@ extern "C" {
|
|
|
33
34
|
* Despite its name, this is not limited to uncompressed images.
|
|
34
35
|
* It is also possible to add images with lossless compression methods.
|
|
35
36
|
* See heif_metadata_compression for more information.
|
|
37
|
+
*
|
|
38
|
+
* ISO/IEC 23001-17 metadata properties (Bayer / polarization / sensor bad
|
|
39
|
+
* pixels / NUC / chroma sample location) live in heif_properties.h, which is
|
|
40
|
+
* included above for back-compat.
|
|
36
41
|
*/
|
|
37
42
|
|
|
38
|
-
// heif_uncompressed_component_type and heif_bayer_pattern_pixel are defined in heif_uncompressed_types.h.
|
|
39
|
-
|
|
40
|
-
// Set a Bayer / filter array pattern on an image.
|
|
41
|
-
// The pattern is a 2D array of component indices with dimensions pattern_width x pattern_height.
|
|
42
|
-
// The number of entries in patternPixels must be pattern_width * pattern_height.
|
|
43
|
-
// The component_index values are indices into the cmpd component definition table.
|
|
44
|
-
// On the encoder path, these indices are generated by heif_image_add_component() and the
|
|
45
|
-
// encoder adds reference components to cmpd for pattern entries that don't have image planes.
|
|
46
|
-
// On the decoder path, they come directly from the cpat box.
|
|
47
|
-
LIBHEIF_API
|
|
48
|
-
heif_error heif_image_set_bayer_pattern(heif_image*,
|
|
49
|
-
uint32_t bayer_component_id,
|
|
50
|
-
uint16_t pattern_width,
|
|
51
|
-
uint16_t pattern_height,
|
|
52
|
-
const heif_bayer_pattern_pixel* patternPixels);
|
|
53
|
-
|
|
54
|
-
LIBHEIF_API
|
|
55
|
-
heif_error heif_image_add_bayer_component(heif_image*,
|
|
56
|
-
uint16_t component_type,
|
|
57
|
-
uint32_t* out_component_id);
|
|
58
|
-
|
|
59
|
-
// Returns whether the image has a Bayer / filter array pattern.
|
|
60
|
-
// If the image has a pattern, out_pattern_width and out_pattern_height are set.
|
|
61
|
-
// Either output pointer may be NULL if the caller does not need that value.
|
|
62
|
-
LIBHEIF_API
|
|
63
|
-
int heif_image_get_bayer_pattern_size(const heif_image*,
|
|
64
|
-
uint32_t bayer_component_id,
|
|
65
|
-
uint16_t* out_pattern_width,
|
|
66
|
-
uint16_t* out_pattern_height);
|
|
67
|
-
|
|
68
|
-
// Get the Bayer / filter array pattern pixels.
|
|
69
|
-
// The caller must provide an array large enough for pattern_width * pattern_height entries
|
|
70
|
-
// (use heif_image_get_bayer_pattern_size() to query the dimensions first).
|
|
71
|
-
// Returns heif_error_Ok on success, or an error if no pattern is set.
|
|
72
|
-
LIBHEIF_API
|
|
73
|
-
heif_error heif_image_get_bayer_pattern(const heif_image*,
|
|
74
|
-
uint32_t bayer_component_id,
|
|
75
|
-
heif_bayer_pattern_pixel* out_patternPixels);
|
|
76
|
-
|
|
77
|
-
// --- Polarization pattern (ISO 23001-17, Section 6.1.5)
|
|
78
|
-
|
|
79
|
-
// Special float value indicating "no polarization filter" at a pattern position.
|
|
80
|
-
// On the wire this is the IEEE 754 bit pattern 0xFFFFFFFF (a signaling NaN).
|
|
81
|
-
// Test with heif_polarization_angle_is_no_filter() below, or with isnan()/std::isnan().
|
|
82
|
-
|
|
83
|
-
// Returns a float with the 0xFFFFFFFF bit pattern (NaN) representing "no polarization filter".
|
|
84
|
-
LIBHEIF_API
|
|
85
|
-
float heif_polarization_angle_no_filter(void);
|
|
86
|
-
|
|
87
|
-
// Returns non-zero if the given angle has the "no filter" bit pattern (0xFFFFFFFF).
|
|
88
|
-
LIBHEIF_API
|
|
89
|
-
int heif_polarization_angle_is_no_filter(float angle);
|
|
90
|
-
|
|
91
|
-
// Add a polarization pattern to an image.
|
|
92
|
-
// component_indices: array of component indices this pattern applies to (may be NULL if num_component_indices == 0,
|
|
93
|
-
// meaning the pattern applies to all components).
|
|
94
|
-
// polarization_angles: array of pattern_width * pattern_height float values.
|
|
95
|
-
// Each is an angle in degrees [0.0, 360.0), or heif_polarization_angle_no_filter() for "no filter".
|
|
96
|
-
// Multiple patterns can be added (one per distinct component group).
|
|
97
|
-
LIBHEIF_API
|
|
98
|
-
heif_error heif_image_add_polarization_pattern(heif_image*,
|
|
99
|
-
uint32_t num_component_indices,
|
|
100
|
-
const uint32_t* component_indices,
|
|
101
|
-
uint16_t pattern_width,
|
|
102
|
-
uint16_t pattern_height,
|
|
103
|
-
const float* polarization_angles);
|
|
104
|
-
|
|
105
|
-
// Returns the number of polarization patterns on this image (0 if none).
|
|
106
|
-
LIBHEIF_API
|
|
107
|
-
int heif_image_get_number_of_polarization_patterns(const heif_image*);
|
|
108
|
-
|
|
109
|
-
// Get the sizes/dimensions of a polarization pattern (to allocate arrays for the data query).
|
|
110
|
-
LIBHEIF_API
|
|
111
|
-
heif_error heif_image_get_polarization_pattern_info(const heif_image*,
|
|
112
|
-
int pattern_index,
|
|
113
|
-
uint32_t* out_num_component_indices,
|
|
114
|
-
uint16_t* out_pattern_width,
|
|
115
|
-
uint16_t* out_pattern_height);
|
|
116
|
-
|
|
117
|
-
// Get the actual data of a polarization pattern.
|
|
118
|
-
// Caller must provide pre-allocated arrays:
|
|
119
|
-
// out_component_indices: num_component_indices entries (may be NULL if num_component_indices == 0)
|
|
120
|
-
// out_polarization_angles: pattern_width * pattern_height entries
|
|
121
|
-
LIBHEIF_API
|
|
122
|
-
heif_error heif_image_get_polarization_pattern_data(const heif_image*,
|
|
123
|
-
int pattern_index,
|
|
124
|
-
uint32_t* out_component_indices,
|
|
125
|
-
float* out_polarization_angles);
|
|
126
|
-
|
|
127
|
-
// Find the polarization pattern index that applies to a given component index.
|
|
128
|
-
// Returns the pattern index (>= 0), or -1 if no pattern matches.
|
|
129
|
-
// A pattern with an empty component list (component_count == 0) matches all components.
|
|
130
|
-
LIBHEIF_API
|
|
131
|
-
int heif_image_get_polarization_pattern_index_for_component(const heif_image*,
|
|
132
|
-
uint32_t component_index);
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
// --- Sensor bad pixels map (ISO 23001-17, Section 6.1.7)
|
|
136
|
-
|
|
137
|
-
// struct heif_bad_pixel is defined in heif_uncompressed_types.h.
|
|
138
|
-
|
|
139
|
-
// Add a sensor bad pixels map to an image.
|
|
140
|
-
// component_indices: array of component indices this map applies to (may be NULL if num_component_indices == 0,
|
|
141
|
-
// meaning the map applies to all components).
|
|
142
|
-
// Multiple maps can be added (one per distinct component group with different defects).
|
|
143
|
-
LIBHEIF_API
|
|
144
|
-
heif_error heif_image_add_sensor_bad_pixels_map(heif_image*,
|
|
145
|
-
uint32_t num_component_indices,
|
|
146
|
-
const uint32_t* component_indices,
|
|
147
|
-
int correction_applied,
|
|
148
|
-
uint32_t num_bad_rows,
|
|
149
|
-
const uint32_t* bad_rows,
|
|
150
|
-
uint32_t num_bad_columns,
|
|
151
|
-
const uint32_t* bad_columns,
|
|
152
|
-
uint32_t num_bad_pixels,
|
|
153
|
-
const heif_bad_pixel* bad_pixels);
|
|
154
|
-
|
|
155
|
-
// Returns the number of sensor bad pixels maps on this image (0 if none).
|
|
156
|
-
LIBHEIF_API
|
|
157
|
-
int heif_image_get_number_of_sensor_bad_pixels_maps(const heif_image*);
|
|
158
|
-
|
|
159
|
-
// Get the sizes of a sensor bad pixels map (to allocate arrays for the data query).
|
|
160
|
-
LIBHEIF_API
|
|
161
|
-
heif_error heif_image_get_sensor_bad_pixels_map_info(const heif_image*,
|
|
162
|
-
int map_index,
|
|
163
|
-
uint32_t* out_num_component_indices,
|
|
164
|
-
int* out_correction_applied,
|
|
165
|
-
uint32_t* out_num_bad_rows,
|
|
166
|
-
uint32_t* out_num_bad_columns,
|
|
167
|
-
uint32_t* out_num_bad_pixels);
|
|
168
|
-
|
|
169
|
-
// Get the actual data of a sensor bad pixels map.
|
|
170
|
-
// Caller must provide pre-allocated arrays:
|
|
171
|
-
// out_component_indices: num_component_indices entries (may be NULL if num_component_indices == 0)
|
|
172
|
-
// out_bad_rows: num_bad_rows entries (may be NULL if num_bad_rows == 0)
|
|
173
|
-
// out_bad_columns: num_bad_columns entries (may be NULL if num_bad_columns == 0)
|
|
174
|
-
// out_bad_pixels: num_bad_pixels entries (may be NULL if num_bad_pixels == 0)
|
|
175
|
-
LIBHEIF_API
|
|
176
|
-
heif_error heif_image_get_sensor_bad_pixels_map_data(const heif_image*,
|
|
177
|
-
int map_index,
|
|
178
|
-
uint32_t* out_component_indices,
|
|
179
|
-
uint32_t* out_bad_rows,
|
|
180
|
-
uint32_t* out_bad_columns,
|
|
181
|
-
struct heif_bad_pixel* out_bad_pixels);
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
// --- Sensor non-uniformity correction (ISO 23001-17, Section 6.1.6)
|
|
185
43
|
|
|
186
|
-
//
|
|
187
|
-
// component_indices: array of component indices this NUC applies to (may be NULL if num_component_indices == 0,
|
|
188
|
-
// meaning it applies to all components).
|
|
189
|
-
// nuc_gains and nuc_offsets: arrays of image_width * image_height float values.
|
|
190
|
-
// Correction equation: y = nuc_gain * x + nuc_offset.
|
|
191
|
-
// Multiple NUC tables can be added (one per distinct component group).
|
|
192
|
-
LIBHEIF_API
|
|
193
|
-
heif_error heif_image_add_sensor_nuc(heif_image*,
|
|
194
|
-
uint32_t num_component_indices,
|
|
195
|
-
const uint32_t* component_indices,
|
|
196
|
-
int nuc_is_applied,
|
|
197
|
-
uint32_t image_width,
|
|
198
|
-
uint32_t image_height,
|
|
199
|
-
const float* nuc_gains,
|
|
200
|
-
const float* nuc_offsets);
|
|
201
|
-
|
|
202
|
-
// Returns the number of sensor NUC tables on this image (0 if none).
|
|
203
|
-
LIBHEIF_API
|
|
204
|
-
int heif_image_get_number_of_sensor_nucs(const heif_image*);
|
|
205
|
-
|
|
206
|
-
// Get the sizes of a sensor NUC table (to allocate arrays for the data query).
|
|
207
|
-
LIBHEIF_API
|
|
208
|
-
heif_error heif_image_get_sensor_nuc_info(const heif_image*,
|
|
209
|
-
int nuc_index,
|
|
210
|
-
uint32_t* out_num_component_indices,
|
|
211
|
-
int* out_nuc_is_applied,
|
|
212
|
-
uint32_t* out_image_width,
|
|
213
|
-
uint32_t* out_image_height);
|
|
44
|
+
// --- 'unci' images
|
|
214
45
|
|
|
215
|
-
//
|
|
216
|
-
//
|
|
217
|
-
//
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
46
|
+
// Compression methods for 'unci' (ISO 23001-17) images.
|
|
47
|
+
// This is similar to heif_metadata_compression. We should try to keep the integers compatible, but each enum will just
|
|
48
|
+
// contain the allowed values.
|
|
49
|
+
typedef enum heif_unci_compression
|
|
50
|
+
{
|
|
51
|
+
heif_unci_compression_off = 0,
|
|
52
|
+
//heif_unci_compression_auto = 1,
|
|
53
|
+
//heif_unci_compression_unknown = 2, // only used when reading unknown method from input file
|
|
54
|
+
heif_unci_compression_deflate = 3,
|
|
55
|
+
heif_unci_compression_zlib = 4,
|
|
56
|
+
heif_unci_compression_brotli = 5
|
|
57
|
+
} heif_unci_compression;
|
|
226
58
|
|
|
227
59
|
|
|
228
|
-
//
|
|
60
|
+
// --- 'unci' image parameters
|
|
229
61
|
|
|
230
|
-
|
|
62
|
+
typedef struct heif_unci_image_parameters
|
|
63
|
+
{
|
|
64
|
+
int version;
|
|
231
65
|
|
|
232
|
-
//
|
|
233
|
-
// chroma_location must be in the range 0-6 (see heif_chroma420_sample_location).
|
|
234
|
-
LIBHEIF_API
|
|
235
|
-
heif_error heif_image_set_chroma_location(heif_image*, uint8_t chroma_location);
|
|
66
|
+
// --- version 1
|
|
236
67
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
int heif_image_has_chroma_location(const heif_image*);
|
|
68
|
+
uint32_t image_width;
|
|
69
|
+
uint32_t image_height;
|
|
240
70
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
uint8_t heif_image_get_chroma_location(const heif_image*);
|
|
71
|
+
uint32_t tile_width;
|
|
72
|
+
uint32_t tile_height;
|
|
244
73
|
|
|
74
|
+
heif_unci_compression compression;
|
|
245
75
|
|
|
246
|
-
//
|
|
76
|
+
// TODO: interleave type, padding
|
|
77
|
+
} heif_unci_image_parameters;
|
|
247
78
|
|
|
248
|
-
// heif_unci_compression and heif_unci_image_parameters are defined in heif_uncompressed_types.h.
|
|
249
79
|
|
|
250
80
|
LIBHEIF_API
|
|
251
81
|
heif_unci_image_parameters* heif_unci_image_parameters_alloc(void);
|
|
@@ -265,9 +95,17 @@ void heif_unci_image_parameters_release(heif_unci_image_parameters*);
|
|
|
265
95
|
* However, this will by default disable any compression and any control about
|
|
266
96
|
* the data layout.
|
|
267
97
|
*
|
|
98
|
+
* The function also accepts a direct heif_unci_image_parameters argument and
|
|
99
|
+
* indirectly through encoding_options. At least one of the two must be non-null.
|
|
100
|
+
* If both are non-null and differ, the direct argument takes precedence.
|
|
101
|
+
*
|
|
268
102
|
* @param ctx The file context
|
|
269
|
-
* @param parameters The parameters for the image
|
|
270
|
-
*
|
|
103
|
+
* @param parameters The parameters for the image. May be NULL if
|
|
104
|
+
* heif_encoding_options::unci_parameters is set instead. If both this
|
|
105
|
+
* argument and encoding_options->unci_parameters are non-null and
|
|
106
|
+
* differ, this argument takes precedence.
|
|
107
|
+
* @param encoding_options Optional, may be NULL. If non-null and unci_parameters is set,
|
|
108
|
+
* it may carry the unci parameters in place of the direct argument.
|
|
271
109
|
* @param prototype An image with the same channel configuration as the image data
|
|
272
110
|
* that will be later inserted. The image size need not match this.
|
|
273
111
|
* Must not be NULL.
|
|
@@ -283,128 +121,10 @@ heif_error heif_context_add_empty_unci_image(heif_context* ctx,
|
|
|
283
121
|
const heif_image* prototype,
|
|
284
122
|
heif_image_handle** out_unci_image_handle);
|
|
285
123
|
|
|
286
|
-
//
|
|
287
|
-
|
|
288
|
-
//
|
|
289
|
-
|
|
290
|
-
// Returns the number of components that have pixel data (planes) in this image.
|
|
291
|
-
LIBHEIF_API
|
|
292
|
-
uint32_t heif_image_get_number_of_used_components(const heif_image*);
|
|
124
|
+
// Multi-component access functions (heif_image_get/add_component_*,
|
|
125
|
+
// heif_image_handle_get_component_*, heif_image_set_gimi_component_content_id)
|
|
126
|
+
// live in heif_components.h, which is included above.
|
|
293
127
|
|
|
294
|
-
// Fills `out_component_indices` with the valid component indices.
|
|
295
|
-
// The caller must allocate an array of at least heif_image_get_number_of_used_components() elements.
|
|
296
|
-
LIBHEIF_API
|
|
297
|
-
void heif_image_get_used_component_ids(const heif_image*, uint32_t* out_component_ids);
|
|
298
|
-
|
|
299
|
-
LIBHEIF_API
|
|
300
|
-
enum heif_channel heif_image_get_component_channel(const heif_image*, uint32_t component_idx);
|
|
301
|
-
|
|
302
|
-
LIBHEIF_API
|
|
303
|
-
uint32_t heif_image_get_component_width(const heif_image*, uint32_t component_idx);
|
|
304
|
-
|
|
305
|
-
LIBHEIF_API
|
|
306
|
-
uint32_t heif_image_get_component_height(const heif_image*, uint32_t component_idx);
|
|
307
|
-
|
|
308
|
-
LIBHEIF_API
|
|
309
|
-
int heif_image_get_component_bits_per_pixel(const heif_image*, uint32_t component_idx);
|
|
310
|
-
|
|
311
|
-
LIBHEIF_API
|
|
312
|
-
uint16_t heif_image_get_component_type(const heif_image*, uint32_t component_idx);
|
|
313
|
-
|
|
314
|
-
// TODO
|
|
315
|
-
//LIBHEIF_API
|
|
316
|
-
//heif_error heif_image_get_component_indices_of_interleaved_channel(const heif_image* image, uint32_t* component_indices, uint8_t* nComponents_in_out);
|
|
317
|
-
|
|
318
|
-
LIBHEIF_API
|
|
319
|
-
heif_error heif_image_add_component(heif_image* image,
|
|
320
|
-
int width, int height,
|
|
321
|
-
uint16_t component_type,
|
|
322
|
-
heif_component_datatype datatype,
|
|
323
|
-
int bit_depth,
|
|
324
|
-
uint32_t* out_component_idx);
|
|
325
|
-
|
|
326
|
-
LIBHEIF_API
|
|
327
|
-
const uint8_t* heif_image_get_component_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
328
|
-
|
|
329
|
-
LIBHEIF_API
|
|
330
|
-
uint8_t* heif_image_get_component(heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
331
|
-
|
|
332
|
-
LIBHEIF_API
|
|
333
|
-
const uint16_t* heif_image_get_component_uint16_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
334
|
-
|
|
335
|
-
LIBHEIF_API
|
|
336
|
-
uint16_t* heif_image_get_component_uint16(heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
337
|
-
|
|
338
|
-
LIBHEIF_API
|
|
339
|
-
const uint32_t* heif_image_get_component_uint32_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
340
|
-
|
|
341
|
-
LIBHEIF_API
|
|
342
|
-
uint32_t* heif_image_get_component_uint32(heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
343
|
-
|
|
344
|
-
LIBHEIF_API
|
|
345
|
-
const uint64_t* heif_image_get_component_uint64_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
346
|
-
|
|
347
|
-
LIBHEIF_API
|
|
348
|
-
uint64_t* heif_image_get_component_uint64(heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
349
|
-
|
|
350
|
-
LIBHEIF_API
|
|
351
|
-
const int8_t* heif_image_get_component_int8_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
352
|
-
|
|
353
|
-
LIBHEIF_API
|
|
354
|
-
int8_t* heif_image_get_component_int8(heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
355
|
-
|
|
356
|
-
LIBHEIF_API
|
|
357
|
-
const int16_t* heif_image_get_component_int16_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
358
|
-
|
|
359
|
-
LIBHEIF_API
|
|
360
|
-
int16_t* heif_image_get_component_int16(heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
361
|
-
|
|
362
|
-
LIBHEIF_API
|
|
363
|
-
const int32_t* heif_image_get_component_int32_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
364
|
-
|
|
365
|
-
LIBHEIF_API
|
|
366
|
-
int32_t* heif_image_get_component_int32(heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
367
|
-
|
|
368
|
-
LIBHEIF_API
|
|
369
|
-
const int64_t* heif_image_get_component_int64_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
370
|
-
|
|
371
|
-
LIBHEIF_API
|
|
372
|
-
int64_t* heif_image_get_component_int64(heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
373
|
-
|
|
374
|
-
LIBHEIF_API
|
|
375
|
-
const float* heif_image_get_component_float32_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
376
|
-
|
|
377
|
-
LIBHEIF_API
|
|
378
|
-
float* heif_image_get_component_float32(heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
379
|
-
|
|
380
|
-
LIBHEIF_API
|
|
381
|
-
const double* heif_image_get_component_float64_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
382
|
-
|
|
383
|
-
LIBHEIF_API
|
|
384
|
-
double* heif_image_get_component_float64(heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
385
|
-
|
|
386
|
-
LIBHEIF_API
|
|
387
|
-
const heif_complex32* heif_image_get_component_complex32_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
388
|
-
|
|
389
|
-
LIBHEIF_API
|
|
390
|
-
heif_complex32* heif_image_get_component_complex32(heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
391
|
-
|
|
392
|
-
LIBHEIF_API
|
|
393
|
-
const heif_complex64* heif_image_get_component_complex64_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
394
|
-
|
|
395
|
-
LIBHEIF_API
|
|
396
|
-
heif_complex64* heif_image_get_component_complex64(heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
// --- GIMI component content IDs (set before encoding)
|
|
400
|
-
|
|
401
|
-
// Set a GIMI component content ID for a single cmpd component.
|
|
402
|
-
// If the internal array is too small, it will be resized (new entries default to empty strings).
|
|
403
|
-
// These are written into an ItemComponentContentIDProperty box during encoding.
|
|
404
|
-
LIBHEIF_API
|
|
405
|
-
void heif_image_set_gimi_component_content_id(heif_image*,
|
|
406
|
-
uint32_t component_idx,
|
|
407
|
-
const char* content_id);
|
|
408
128
|
|
|
409
129
|
#ifdef __cplusplus
|
|
410
130
|
}
|
|
@@ -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) | (23<<16) | (0<<8) | 0)
|
|
32
32
|
|
|
33
33
|
/* Version string */
|
|
34
|
-
#define LIBHEIF_VERSION "1.
|
|
34
|
+
#define LIBHEIF_VERSION "1.23.0"
|
|
35
35
|
|
|
36
36
|
#define LIBHEIF_PLUGIN_DIRECTORY "/src/build/target/lib/libheif"
|
|
37
37
|
|
package/include/libpng16/png.h
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* png.h - header file for PNG reference library
|
|
2
2
|
*
|
|
3
|
-
* libpng version 1.6.
|
|
3
|
+
* libpng version 1.6.58
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2018-2026 Cosmin Truta
|
|
6
6
|
* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* libpng versions 0.89, June 1996, through 0.96, May 1997: Andreas Dilger
|
|
15
15
|
* libpng versions 0.97, January 1998, through 1.6.35, July 2018:
|
|
16
16
|
* Glenn Randers-Pehrson
|
|
17
|
-
* libpng versions 1.6.36, December 2018, through 1.6.
|
|
17
|
+
* libpng versions 1.6.36, December 2018, through 1.6.58, April 2026:
|
|
18
18
|
* Cosmin Truta
|
|
19
19
|
* See also "Contributing Authors", below.
|
|
20
20
|
*/
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
* ...
|
|
239
239
|
* 1.5.30 15 10530 15.so.15.30[.0]
|
|
240
240
|
* ...
|
|
241
|
-
* 1.6.
|
|
241
|
+
* 1.6.58 16 10658 16.so.16.58[.0]
|
|
242
242
|
*
|
|
243
243
|
* Henceforth the source version will match the shared-library major and
|
|
244
244
|
* minor numbers; the shared-library major version number will be used for
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
*/
|
|
275
275
|
|
|
276
276
|
/* Version information for png.h - this should match the version in png.c */
|
|
277
|
-
#define PNG_LIBPNG_VER_STRING "1.6.
|
|
277
|
+
#define PNG_LIBPNG_VER_STRING "1.6.58"
|
|
278
278
|
#define PNG_HEADER_VERSION_STRING " libpng version " PNG_LIBPNG_VER_STRING "\n"
|
|
279
279
|
|
|
280
280
|
/* The versions of shared library builds should stay in sync, going forward */
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
/* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
|
|
286
286
|
#define PNG_LIBPNG_VER_MAJOR 1
|
|
287
287
|
#define PNG_LIBPNG_VER_MINOR 6
|
|
288
|
-
#define PNG_LIBPNG_VER_RELEASE
|
|
288
|
+
#define PNG_LIBPNG_VER_RELEASE 58
|
|
289
289
|
|
|
290
290
|
/* This should be zero for a public release, or non-zero for a
|
|
291
291
|
* development version.
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
* From version 1.0.1 it is:
|
|
317
317
|
* XXYYZZ, where XX=major, YY=minor, ZZ=release
|
|
318
318
|
*/
|
|
319
|
-
#define PNG_LIBPNG_VER
|
|
319
|
+
#define PNG_LIBPNG_VER 10658 /* 1.6.58 */
|
|
320
320
|
|
|
321
321
|
/* Library configuration: these options cannot be changed after
|
|
322
322
|
* the library has been built.
|
|
@@ -426,7 +426,7 @@ extern "C" {
|
|
|
426
426
|
/* This triggers a compiler error in png.c, if png.c and png.h
|
|
427
427
|
* do not agree upon the version number.
|
|
428
428
|
*/
|
|
429
|
-
typedef char *
|
|
429
|
+
typedef char *png_libpng_version_1_6_58;
|
|
430
430
|
|
|
431
431
|
/* Basic control structions. Read libpng-manual.txt or libpng.3 for more info.
|
|
432
432
|
*
|
package/include/png.h
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* png.h - header file for PNG reference library
|
|
2
2
|
*
|
|
3
|
-
* libpng version 1.6.
|
|
3
|
+
* libpng version 1.6.58
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2018-2026 Cosmin Truta
|
|
6
6
|
* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* libpng versions 0.89, June 1996, through 0.96, May 1997: Andreas Dilger
|
|
15
15
|
* libpng versions 0.97, January 1998, through 1.6.35, July 2018:
|
|
16
16
|
* Glenn Randers-Pehrson
|
|
17
|
-
* libpng versions 1.6.36, December 2018, through 1.6.
|
|
17
|
+
* libpng versions 1.6.36, December 2018, through 1.6.58, April 2026:
|
|
18
18
|
* Cosmin Truta
|
|
19
19
|
* See also "Contributing Authors", below.
|
|
20
20
|
*/
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
* ...
|
|
239
239
|
* 1.5.30 15 10530 15.so.15.30[.0]
|
|
240
240
|
* ...
|
|
241
|
-
* 1.6.
|
|
241
|
+
* 1.6.58 16 10658 16.so.16.58[.0]
|
|
242
242
|
*
|
|
243
243
|
* Henceforth the source version will match the shared-library major and
|
|
244
244
|
* minor numbers; the shared-library major version number will be used for
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
*/
|
|
275
275
|
|
|
276
276
|
/* Version information for png.h - this should match the version in png.c */
|
|
277
|
-
#define PNG_LIBPNG_VER_STRING "1.6.
|
|
277
|
+
#define PNG_LIBPNG_VER_STRING "1.6.58"
|
|
278
278
|
#define PNG_HEADER_VERSION_STRING " libpng version " PNG_LIBPNG_VER_STRING "\n"
|
|
279
279
|
|
|
280
280
|
/* The versions of shared library builds should stay in sync, going forward */
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
/* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
|
|
286
286
|
#define PNG_LIBPNG_VER_MAJOR 1
|
|
287
287
|
#define PNG_LIBPNG_VER_MINOR 6
|
|
288
|
-
#define PNG_LIBPNG_VER_RELEASE
|
|
288
|
+
#define PNG_LIBPNG_VER_RELEASE 58
|
|
289
289
|
|
|
290
290
|
/* This should be zero for a public release, or non-zero for a
|
|
291
291
|
* development version.
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
* From version 1.0.1 it is:
|
|
317
317
|
* XXYYZZ, where XX=major, YY=minor, ZZ=release
|
|
318
318
|
*/
|
|
319
|
-
#define PNG_LIBPNG_VER
|
|
319
|
+
#define PNG_LIBPNG_VER 10658 /* 1.6.58 */
|
|
320
320
|
|
|
321
321
|
/* Library configuration: these options cannot be changed after
|
|
322
322
|
* the library has been built.
|
|
@@ -426,7 +426,7 @@ extern "C" {
|
|
|
426
426
|
/* This triggers a compiler error in png.c, if png.c and png.h
|
|
427
427
|
* do not agree upon the version number.
|
|
428
428
|
*/
|
|
429
|
-
typedef char *
|
|
429
|
+
typedef char *png_libpng_version_1_6_58;
|
|
430
430
|
|
|
431
431
|
/* Basic control structions. Read libpng-manual.txt or libpng.3 for more info.
|
|
432
432
|
*
|
package/include/pngconf.h
CHANGED
package/include/pnglibconf.h
CHANGED
package/include/tiffconf.h
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* libtiff/tiffconf.h. Generated from tiffconf.h.in by configure. */
|
|
2
1
|
/*
|
|
3
2
|
Configuration defines for installed libtiff.
|
|
4
3
|
This file maintained for backward compatibility. Do not use definitions
|
|
@@ -7,7 +6,7 @@
|
|
|
7
6
|
|
|
8
7
|
/* clang-format off */
|
|
9
8
|
/* clang-format disabled because CMake scripts are very sensitive to the
|
|
10
|
-
* formatting of this file. configure_file variables of type "
|
|
9
|
+
* formatting of this file. configure_file variables of type "" are
|
|
11
10
|
* modified by clang-format and won't be substituted.
|
|
12
11
|
*/
|
|
13
12
|
|
|
@@ -21,28 +20,28 @@
|
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
/* Signed 16-bit type */
|
|
24
|
-
|
|
23
|
+
#define TIFF_INT16_T int16_t
|
|
25
24
|
|
|
26
25
|
/* Signed 32-bit type */
|
|
27
|
-
|
|
26
|
+
#define TIFF_INT32_T int32_t
|
|
28
27
|
|
|
29
28
|
/* Signed 64-bit type */
|
|
30
|
-
|
|
29
|
+
#define TIFF_INT64_T int64_t
|
|
31
30
|
|
|
32
31
|
/* Signed 8-bit type */
|
|
33
|
-
|
|
32
|
+
#define TIFF_INT8_T int8_t
|
|
34
33
|
|
|
35
34
|
/* Unsigned 16-bit type */
|
|
36
|
-
|
|
35
|
+
#define TIFF_UINT16_T uint16_t
|
|
37
36
|
|
|
38
37
|
/* Unsigned 32-bit type */
|
|
39
|
-
|
|
38
|
+
#define TIFF_UINT32_T uint32_t
|
|
40
39
|
|
|
41
40
|
/* Unsigned 64-bit type */
|
|
42
|
-
|
|
41
|
+
#define TIFF_UINT64_T uint64_t
|
|
43
42
|
|
|
44
43
|
/* Unsigned 8-bit type */
|
|
45
|
-
|
|
44
|
+
#define TIFF_UINT8_T uint8_t
|
|
46
45
|
|
|
47
46
|
/* Signed size type */
|
|
48
47
|
#define TIFF_SSIZE_T int32_t
|