@revizly/sharp-libvips-dev 1.0.31 → 1.0.33
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 +15 -15
- 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/glib/gvarianttype.h +16 -16
- package/include/glib-2.0/glib/gversionmacros.h +13 -0
- package/include/harfbuzz/hb-cplusplus.hh +9 -1
- package/include/harfbuzz/hb-draw.h +52 -0
- package/include/harfbuzz/hb-paint.h +209 -2
- package/include/harfbuzz/hb-version.h +2 -2
- 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 +158 -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_context.h +13 -0
- package/include/libheif/heif_decoding.h +7 -0
- package/include/libheif/heif_sequences.h +12 -2
- package/include/libheif/heif_uncompressed.h +22 -10
- package/include/libheif/heif_uncompressed_types.h +27 -27
- package/include/libpng16/png.h +7 -7
- package/include/libpng16/pngconf.h +1 -1
- package/include/libpng16/pnglibconf.h +1 -1
- package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
- package/include/libxml2/libxml/xmlversion.h +4 -4
- 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/package.json +1 -1
- package/versions.json +13 -13
- package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +0 -235
|
@@ -123,8 +123,10 @@ T Median(T* values, const size_t num_values) {
|
|
|
123
123
|
if (num_values % 2) {
|
|
124
124
|
return values[half];
|
|
125
125
|
}
|
|
126
|
+
// For integers, round rather than truncate.
|
|
127
|
+
const T bias = hwy::IsInteger<T>() ? T{1} : T{0};
|
|
126
128
|
// Even count: return average of middle two.
|
|
127
|
-
return (values[half] + values[half - 1] +
|
|
129
|
+
return (values[half] + values[half - 1] + bias) / 2;
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
// Returns a robust measure of variability.
|
package/include/hwy/timer.h
CHANGED
|
@@ -232,6 +232,50 @@ static HWY_INLINE Ticks Stop() {
|
|
|
232
232
|
|
|
233
233
|
} // namespace timer
|
|
234
234
|
|
|
235
|
+
// Wrapper around Start/Stop that checks whether the CPU supports Stop.
|
|
236
|
+
class Timer {
|
|
237
|
+
public:
|
|
238
|
+
Timer() {
|
|
239
|
+
char cpu100[100];
|
|
240
|
+
have_timer_stop_ = platform::HaveTimerStop(cpu100);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// Before/After have fences to prevent the measured code 'leaking out'.
|
|
244
|
+
timer::Ticks Before() const { return timer::Start(); }
|
|
245
|
+
timer::Ticks After() const {
|
|
246
|
+
return have_timer_stop_ ? timer::Stop() : timer::Start();
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
private:
|
|
250
|
+
bool have_timer_stop_;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
static inline double Seconds(timer::Ticks ticks) {
|
|
254
|
+
return static_cast<double>(ticks) / platform::InvariantTicksPerSecond();
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// Measures elapsed time since construction, with automatic reset.
|
|
258
|
+
class Stopwatch {
|
|
259
|
+
public:
|
|
260
|
+
explicit Stopwatch(const Timer& timestamps) : timer_(timestamps) { Reset(); }
|
|
261
|
+
|
|
262
|
+
timer::Ticks Origin() const { return t0_; }
|
|
263
|
+
void Reset() { t0_ = timer_.Before(); }
|
|
264
|
+
|
|
265
|
+
// Also resets the start time to the current time to enable reuse without a
|
|
266
|
+
// second call to the timer.
|
|
267
|
+
timer::Ticks Elapsed() {
|
|
268
|
+
const timer::Ticks t1 = timer_.After();
|
|
269
|
+
const timer::Ticks elapsed = t1 - t0_;
|
|
270
|
+
t0_ = t1;
|
|
271
|
+
return elapsed;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
private:
|
|
275
|
+
const Timer& timer_;
|
|
276
|
+
timer::Ticks t0_;
|
|
277
|
+
};
|
|
278
|
+
|
|
235
279
|
} // namespace hwy
|
|
236
280
|
|
|
237
281
|
#endif // HIGHWAY_HWY_TIMER_H_
|
package/include/lcms2.h
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
//
|
|
24
24
|
//---------------------------------------------------------------------------------
|
|
25
25
|
//
|
|
26
|
-
// Version 2.
|
|
26
|
+
// Version 2.19
|
|
27
27
|
//
|
|
28
28
|
|
|
29
29
|
#ifndef _lcms2_H
|
|
@@ -37,6 +37,13 @@
|
|
|
37
37
|
// "long long" type.
|
|
38
38
|
// #define CMS_DONT_USE_INT64 1
|
|
39
39
|
|
|
40
|
+
// Uncomment this one to enable large file support on file/stream I/O.
|
|
41
|
+
// LittleCMS is still limited by ICC 32-bit offsets and sizes, so the
|
|
42
|
+
// practical maximum remains 4 GiB minus profile overhead. Be careful
|
|
43
|
+
// because such huge profiles have to be loaded into memory and that's
|
|
44
|
+
// usually a very bad idea.
|
|
45
|
+
// #define CMS_LARGE_FILE_SUPPORT 1
|
|
46
|
+
|
|
40
47
|
// Uncomment this if your compiler doesn't work with fast floor function
|
|
41
48
|
// #define CMS_DONT_USE_FAST_FLOOR 1
|
|
42
49
|
|
|
@@ -87,7 +94,7 @@ extern "C" {
|
|
|
87
94
|
#endif
|
|
88
95
|
|
|
89
96
|
// Version/release
|
|
90
|
-
#define LCMS_VERSION
|
|
97
|
+
#define LCMS_VERSION 2190
|
|
91
98
|
|
|
92
99
|
// I will give the chance of redefining basic types for compilers that are not fully C99 compliant
|
|
93
100
|
#ifndef CMS_BASIC_TYPES_ALREADY_DEFINED
|
|
@@ -168,6 +175,9 @@ typedef double cmsFloat64Number;
|
|
|
168
175
|
#ifdef CMS_DONT_USE_INT64
|
|
169
176
|
typedef cmsUInt32Number cmsUInt64Number[2];
|
|
170
177
|
typedef cmsInt32Number cmsInt64Number[2];
|
|
178
|
+
# if defined(CMS_LARGE_FILE_SUPPORT)
|
|
179
|
+
# error "You need int64 for large file support"
|
|
180
|
+
# endif
|
|
171
181
|
#endif
|
|
172
182
|
|
|
173
183
|
// Derivative types
|
|
@@ -504,7 +514,13 @@ typedef enum {
|
|
|
504
514
|
cmsSigLinkClass = 0x6C696E6B, // 'link'
|
|
505
515
|
cmsSigAbstractClass = 0x61627374, // 'abst'
|
|
506
516
|
cmsSigColorSpaceClass = 0x73706163, // 'spac'
|
|
507
|
-
cmsSigNamedColorClass = 0x6e6d636c
|
|
517
|
+
cmsSigNamedColorClass = 0x6e6d636c, // 'nmcl'
|
|
518
|
+
|
|
519
|
+
// iccMAX only
|
|
520
|
+
cmsSigColorEncodingSpaceClass = 0x63656E63, // 'cenc'
|
|
521
|
+
cmsSigMultiplexIdentificationClass = 0x6D696420, // 'mid '
|
|
522
|
+
cmsSigMultiplexLinkClass = 0x6d6c6e6b, // 'mlnk'
|
|
523
|
+
cmsSigMultiplexVisualizationClass = 0x6d766973 // 'mvis'
|
|
508
524
|
|
|
509
525
|
} cmsProfileClassSignature;
|
|
510
526
|
|
|
@@ -1078,8 +1094,12 @@ CMSAPI int CMSEXPORT cmsGetEncodedCMMversion(void);
|
|
|
1078
1094
|
// Support of non-standard functions --------------------------------------------------------------------------------------
|
|
1079
1095
|
|
|
1080
1096
|
CMSAPI int CMSEXPORT cmsstrcasecmp(const char* s1, const char* s2);
|
|
1081
|
-
CMSAPI long int CMSEXPORT cmsfilelength(FILE* f);
|
|
1082
1097
|
|
|
1098
|
+
#ifdef CMS_LARGE_FILE_SUPPORT
|
|
1099
|
+
CMSAPI long long int CMSEXPORT cmsfilelength(FILE* f);
|
|
1100
|
+
#else
|
|
1101
|
+
CMSAPI long int CMSEXPORT cmsfilelength(FILE* f);
|
|
1102
|
+
#endif
|
|
1083
1103
|
|
|
1084
1104
|
// Context handling --------------------------------------------------------------------------------------------------------
|
|
1085
1105
|
|
|
@@ -1502,6 +1522,7 @@ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateProfilePlaceholder(cmsContext Contex
|
|
|
1502
1522
|
CMSAPI cmsContext CMSEXPORT cmsGetProfileContextID(cmsHPROFILE hProfile);
|
|
1503
1523
|
CMSAPI cmsInt32Number CMSEXPORT cmsGetTagCount(cmsHPROFILE hProfile);
|
|
1504
1524
|
CMSAPI cmsTagSignature CMSEXPORT cmsGetTagSignature(cmsHPROFILE hProfile, cmsUInt32Number n);
|
|
1525
|
+
CMSAPI cmsBool CMSEXPORT cmsGetTagOffsetAndSize(cmsHPROFILE hProfile, cmsUInt32Number n, cmsUInt32Number* offset, cmsUInt32Number* size);
|
|
1505
1526
|
CMSAPI cmsBool CMSEXPORT cmsIsTag(cmsHPROFILE hProfile, cmsTagSignature sig);
|
|
1506
1527
|
|
|
1507
1528
|
// Read and write pre-formatted data
|
|
@@ -1525,6 +1546,8 @@ CMSAPI void CMSEXPORT cmsGetHeaderAttributes(cmsHPROFILE hProfile,
|
|
|
1525
1546
|
CMSAPI void CMSEXPORT cmsGetHeaderProfileID(cmsHPROFILE hProfile, cmsUInt8Number* ProfileID);
|
|
1526
1547
|
CMSAPI cmsBool CMSEXPORT cmsGetHeaderCreationDateTime(cmsHPROFILE hProfile, struct tm *Dest);
|
|
1527
1548
|
CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderRenderingIntent(cmsHPROFILE hProfile);
|
|
1549
|
+
CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderCMM(cmsHPROFILE hProfile);
|
|
1550
|
+
|
|
1528
1551
|
|
|
1529
1552
|
CMSAPI void CMSEXPORT cmsSetHeaderFlags(cmsHPROFILE hProfile, cmsUInt32Number Flags);
|
|
1530
1553
|
CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderManufacturer(cmsHPROFILE hProfile);
|
|
@@ -1867,6 +1890,13 @@ CMSAPI cmsContext CMSEXPORT cmsGetTransformContextID(cmsHTRANSFORM hTransf
|
|
|
1867
1890
|
CMSAPI cmsUInt32Number CMSEXPORT cmsGetTransformInputFormat(cmsHTRANSFORM hTransform);
|
|
1868
1891
|
CMSAPI cmsUInt32Number CMSEXPORT cmsGetTransformOutputFormat(cmsHTRANSFORM hTransform);
|
|
1869
1892
|
|
|
1893
|
+
// Access the optimized pipeline and gamut-check pipeline inside a transform.
|
|
1894
|
+
CMSAPI cmsPipeline* CMSEXPORT cmsGetTransformPipeline(cmsHTRANSFORM hTransform);
|
|
1895
|
+
CMSAPI cmsPipeline* CMSEXPORT cmsGetTransformGamutCheckPipeline(cmsHTRANSFORM hTransform);
|
|
1896
|
+
// Grab colorants
|
|
1897
|
+
CMSAPI cmsNAMEDCOLORLIST* CMSEXPORT cmsGetTransformInputColorants(cmsHTRANSFORM hTransform);
|
|
1898
|
+
CMSAPI cmsNAMEDCOLORLIST* CMSEXPORT cmsGetTransformOutputColorants(cmsHTRANSFORM hTransform);
|
|
1899
|
+
|
|
1870
1900
|
// For backwards compatibility
|
|
1871
1901
|
CMSAPI cmsBool CMSEXPORT cmsChangeBuffersFormat(cmsHTRANSFORM hTransform,
|
|
1872
1902
|
cmsUInt32Number InputFormat,
|
|
@@ -170,7 +170,7 @@ void exif_set_srational (unsigned char *b, ExifByteOrder order,
|
|
|
170
170
|
ExifSRational value);
|
|
171
171
|
|
|
172
172
|
/*! \internal */
|
|
173
|
-
void exif_convert_utf16_to_utf8 (char *out, const unsigned char *in, int
|
|
173
|
+
void exif_convert_utf16_to_utf8 (char *out, unsigned int outlen, const unsigned char *in, unsigned int inlen);
|
|
174
174
|
|
|
175
175
|
/* Please do not use this function outside of the library. */
|
|
176
176
|
|
|
@@ -295,6 +295,19 @@ heif_error heif_context_get_image_handle(heif_context* ctx,
|
|
|
295
295
|
LIBHEIF_API
|
|
296
296
|
void heif_context_debug_dump_boxes_to_file(heif_context* ctx, int fd);
|
|
297
297
|
|
|
298
|
+
// ====================================================================================================
|
|
299
|
+
// Mini format (experimental)
|
|
300
|
+
|
|
301
|
+
// Enable writing in the compact 'mini' box format (ISO/IEC 23008-12 DAmd2).
|
|
302
|
+
// When enabled, the output file will use a single 'mini' box instead of the standard
|
|
303
|
+
// meta+mdat box structure, if the file content is compatible with the mini format.
|
|
304
|
+
// If the content cannot be represented as a mini box, the standard format is used as fallback.
|
|
305
|
+
// Requires ENABLE_EXPERIMENTAL_MINI_FORMAT to be enabled at compile time.
|
|
306
|
+
// Default: disabled.
|
|
307
|
+
LIBHEIF_API
|
|
308
|
+
void heif_context_set_write_mini_format(heif_context*, int enable);
|
|
309
|
+
|
|
310
|
+
|
|
298
311
|
// ====================================================================================================
|
|
299
312
|
// Write the heif_context to a HEIF file
|
|
300
313
|
|
|
@@ -39,6 +39,13 @@ extern "C" {
|
|
|
39
39
|
LIBHEIF_API
|
|
40
40
|
void heif_context_set_max_decoding_threads(heif_context* ctx, int max_threads);
|
|
41
41
|
|
|
42
|
+
// Returns the current maximum number of background threads used for parallel tile decoding.
|
|
43
|
+
// This reflects either the library default or the value last passed to
|
|
44
|
+
// heif_context_set_max_decoding_threads().
|
|
45
|
+
// If 'ctx' is NULL, the library default is returned.
|
|
46
|
+
LIBHEIF_API
|
|
47
|
+
int heif_context_get_max_decoding_threads(const heif_context* ctx);
|
|
48
|
+
|
|
42
49
|
// Quick check whether there is a decoder available for the given format.
|
|
43
50
|
// Note that the decoder still may not be able to decode all variants of that format.
|
|
44
51
|
// You will have to query that further (todo) or just try to decode and check the returned error.
|
|
@@ -82,7 +82,12 @@ int heif_context_number_of_sequence_tracks(const heif_context*);
|
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
84
|
* Returns the IDs for each of the tracks stored in the HEIF file.
|
|
85
|
-
*
|
|
85
|
+
*
|
|
86
|
+
* The caller MUST allocate `out_track_id_array` with exactly
|
|
87
|
+
* heif_context_number_of_sequence_tracks() entries. The function writes
|
|
88
|
+
* that many IDs unconditionally. Passing a smaller array results in a
|
|
89
|
+
* buffer overflow (undefined behavior); there is no capacity parameter
|
|
90
|
+
* and no truncation.
|
|
86
91
|
*/
|
|
87
92
|
LIBHEIF_API
|
|
88
93
|
void heif_context_get_track_ids(const heif_context* ctx, uint32_t out_track_id_array[]);
|
|
@@ -610,7 +615,12 @@ size_t heif_track_get_number_of_track_reference_types(const heif_track*);
|
|
|
610
615
|
|
|
611
616
|
/**
|
|
612
617
|
* List the reference types used in this track.
|
|
613
|
-
*
|
|
618
|
+
*
|
|
619
|
+
* The caller MUST allocate `out_reference_types` with exactly
|
|
620
|
+
* heif_track_get_number_of_track_reference_types() entries. The function
|
|
621
|
+
* writes that many values unconditionally. Passing a smaller array
|
|
622
|
+
* results in a buffer overflow (undefined behavior); there is no
|
|
623
|
+
* capacity parameter and no truncation.
|
|
614
624
|
*/
|
|
615
625
|
LIBHEIF_API
|
|
616
626
|
void heif_track_get_track_reference_types(const heif_track*, uint32_t out_reference_types[]);
|
|
@@ -46,24 +46,32 @@ extern "C" {
|
|
|
46
46
|
// On the decoder path, they come directly from the cpat box.
|
|
47
47
|
LIBHEIF_API
|
|
48
48
|
heif_error heif_image_set_bayer_pattern(heif_image*,
|
|
49
|
+
uint32_t bayer_component_id,
|
|
49
50
|
uint16_t pattern_width,
|
|
50
51
|
uint16_t pattern_height,
|
|
51
52
|
const heif_bayer_pattern_pixel* patternPixels);
|
|
52
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
|
+
|
|
53
59
|
// Returns whether the image has a Bayer / filter array pattern.
|
|
54
60
|
// If the image has a pattern, out_pattern_width and out_pattern_height are set.
|
|
55
61
|
// Either output pointer may be NULL if the caller does not need that value.
|
|
56
62
|
LIBHEIF_API
|
|
57
|
-
int
|
|
58
|
-
|
|
59
|
-
|
|
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);
|
|
60
67
|
|
|
61
68
|
// Get the Bayer / filter array pattern pixels.
|
|
62
69
|
// The caller must provide an array large enough for pattern_width * pattern_height entries
|
|
63
|
-
// (use
|
|
70
|
+
// (use heif_image_get_bayer_pattern_size() to query the dimensions first).
|
|
64
71
|
// Returns heif_error_Ok on success, or an error if no pattern is set.
|
|
65
72
|
LIBHEIF_API
|
|
66
73
|
heif_error heif_image_get_bayer_pattern(const heif_image*,
|
|
74
|
+
uint32_t bayer_component_id,
|
|
67
75
|
heif_bayer_pattern_pixel* out_patternPixels);
|
|
68
76
|
|
|
69
77
|
// --- Polarization pattern (ISO 23001-17, Section 6.1.5)
|
|
@@ -283,14 +291,10 @@ heif_error heif_context_add_empty_unci_image(heif_context* ctx,
|
|
|
283
291
|
LIBHEIF_API
|
|
284
292
|
uint32_t heif_image_get_number_of_used_components(const heif_image*);
|
|
285
293
|
|
|
286
|
-
// Returns the total number of components declared in the cmpd box.
|
|
287
|
-
LIBHEIF_API
|
|
288
|
-
uint32_t heif_image_get_total_number_of_cmpd_components(const heif_image*);
|
|
289
|
-
|
|
290
294
|
// Fills `out_component_indices` with the valid component indices.
|
|
291
295
|
// The caller must allocate an array of at least heif_image_get_number_of_used_components() elements.
|
|
292
296
|
LIBHEIF_API
|
|
293
|
-
void
|
|
297
|
+
void heif_image_get_used_component_ids(const heif_image*, uint32_t* out_component_ids);
|
|
294
298
|
|
|
295
299
|
LIBHEIF_API
|
|
296
300
|
enum heif_channel heif_image_get_component_channel(const heif_image*, uint32_t component_idx);
|
|
@@ -307,6 +311,11 @@ int heif_image_get_component_bits_per_pixel(const heif_image*, uint32_t componen
|
|
|
307
311
|
LIBHEIF_API
|
|
308
312
|
uint16_t heif_image_get_component_type(const heif_image*, uint32_t component_idx);
|
|
309
313
|
|
|
314
|
+
// Returns the datatype (unsigned/signed integer, floating point, or complex
|
|
315
|
+
// number) of the given component.
|
|
316
|
+
LIBHEIF_API
|
|
317
|
+
heif_component_datatype heif_image_get_component_datatype(const heif_image*, uint32_t component_idx);
|
|
318
|
+
|
|
310
319
|
// TODO
|
|
311
320
|
//LIBHEIF_API
|
|
312
321
|
//heif_error heif_image_get_component_indices_of_interleaved_channel(const heif_image* image, uint32_t* component_indices, uint8_t* nComponents_in_out);
|
|
@@ -315,10 +324,13 @@ LIBHEIF_API
|
|
|
315
324
|
heif_error heif_image_add_component(heif_image* image,
|
|
316
325
|
int width, int height,
|
|
317
326
|
uint16_t component_type,
|
|
318
|
-
|
|
327
|
+
heif_component_datatype datatype,
|
|
319
328
|
int bit_depth,
|
|
320
329
|
uint32_t* out_component_idx);
|
|
321
330
|
|
|
331
|
+
// All component-data getters return the row stride in bytes via out_stride
|
|
332
|
+
// (regardless of the element type). When using a typed pointer for indexing,
|
|
333
|
+
// divide the stride by sizeof(element).
|
|
322
334
|
LIBHEIF_API
|
|
323
335
|
const uint8_t* heif_image_get_component_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
|
|
324
336
|
|
|
@@ -29,33 +29,33 @@ extern "C" {
|
|
|
29
29
|
|
|
30
30
|
// --- ISO 23001-17 component types (Table 1)
|
|
31
31
|
|
|
32
|
-
typedef enum
|
|
32
|
+
typedef enum heif_unci_component_type
|
|
33
33
|
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
34
|
+
heif_unci_component_type_monochrome = 0,
|
|
35
|
+
heif_unci_component_type_Y = 1,
|
|
36
|
+
heif_unci_component_type_Cb = 2,
|
|
37
|
+
heif_unci_component_type_Cr = 3,
|
|
38
|
+
heif_unci_component_type_red = 4,
|
|
39
|
+
heif_unci_component_type_green = 5,
|
|
40
|
+
heif_unci_component_type_blue = 6,
|
|
41
|
+
heif_unci_component_type_alpha = 7,
|
|
42
|
+
heif_unci_component_type_depth = 8,
|
|
43
|
+
heif_unci_component_type_disparity = 9,
|
|
44
|
+
heif_unci_component_type_palette = 10,
|
|
45
|
+
heif_unci_component_type_filter_array = 11,
|
|
46
|
+
heif_unci_component_type_padded = 12,
|
|
47
|
+
heif_unci_component_type_cyan = 13,
|
|
48
|
+
heif_unci_component_type_magenta = 14,
|
|
49
|
+
heif_unci_component_type_yellow = 15,
|
|
50
|
+
heif_unci_component_type_key_black = 16
|
|
51
|
+
} heif_unci_component_type;
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
// --- Bayer / filter array pattern
|
|
55
55
|
|
|
56
56
|
typedef struct heif_bayer_pattern_pixel
|
|
57
57
|
{
|
|
58
|
-
|
|
58
|
+
uint32_t component_id;
|
|
59
59
|
float component_gain;
|
|
60
60
|
} heif_bayer_pattern_pixel;
|
|
61
61
|
|
|
@@ -117,14 +117,14 @@ typedef struct heif_unci_image_parameters
|
|
|
117
117
|
|
|
118
118
|
// --- pixel datatype support
|
|
119
119
|
|
|
120
|
-
typedef enum
|
|
120
|
+
typedef enum heif_component_datatype
|
|
121
121
|
{
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
122
|
+
heif_component_datatype_undefined = 0,
|
|
123
|
+
heif_component_datatype_unsigned_integer = 1,
|
|
124
|
+
heif_component_datatype_signed_integer = 2,
|
|
125
|
+
heif_component_datatype_floating_point = 3,
|
|
126
|
+
heif_component_datatype_complex_number = 4
|
|
127
|
+
} heif_component_datatype;
|
|
128
128
|
|
|
129
129
|
typedef struct heif_complex32
|
|
130
130
|
{
|
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
|
*
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
/**
|
|
17
17
|
* the version string like "1.2.3"
|
|
18
18
|
*/
|
|
19
|
-
#define LIBXML_DOTTED_VERSION "2.15.
|
|
19
|
+
#define LIBXML_DOTTED_VERSION "2.15.3"
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* the version number: 1.2.3 value is 10203
|
|
23
23
|
*/
|
|
24
|
-
#define LIBXML_VERSION
|
|
24
|
+
#define LIBXML_VERSION 21503
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* the version number string, 1.2.3 value is "10203"
|
|
28
28
|
*/
|
|
29
|
-
#define LIBXML_VERSION_STRING "
|
|
29
|
+
#define LIBXML_VERSION_STRING "21503"
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* extra version information, used to show a git commit description
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* Macro to check that the libxml version in use is compatible with
|
|
38
38
|
* the version the software has been compiled against
|
|
39
39
|
*/
|
|
40
|
-
#define LIBXML_TEST_VERSION xmlCheckVersion(
|
|
40
|
+
#define LIBXML_TEST_VERSION xmlCheckVersion(21503);
|
|
41
41
|
|
|
42
42
|
#if 0
|
|
43
43
|
/**
|
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 int64_t
|