@revizly/sharp-libvips-dev 1.0.33 → 1.0.35
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/fontconfig/fcfreetype.h +14 -0
- package/include/fontconfig/fcprivate.h +8 -1
- package/include/fontconfig/fontconfig.h +52 -16
- 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/girepository/gi-visibility.h +34 -0
- 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/gversionmacros.h +9 -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/harfbuzz/hb-script-list.h +0 -1
- package/include/harfbuzz/hb-version.h +2 -2
- package/include/libde265/de265-version.h +2 -2
- package/include/libde265/de265.h +35 -9
- 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 +44 -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 +74 -2
- package/include/libheif/heif_tiling.h +2 -2
- package/include/libheif/heif_uncompressed.h +44 -332
- package/include/libheif/heif_version.h +2 -2
- package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
- package/include/svt-av1/EbConfigMacros.h +56 -0
- package/include/svt-av1/EbDebugMacros.h +83 -0
- package/include/svt-av1/EbSvtAv1.h +436 -0
- package/include/svt-av1/EbSvtAv1Enc.h +1082 -0
- package/include/svt-av1/EbSvtAv1ErrorCodes.h +67 -0
- package/include/svt-av1/EbSvtAv1Formats.h +126 -0
- package/include/svt-av1/EbSvtAv1Metadata.h +156 -0
- package/package.json +2 -2
- package/versions.json +8 -8
- package/include/libheif/heif_uncompressed_types.h +0 -143
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright(c) 2019 Intel Corporation
|
|
3
|
+
*
|
|
4
|
+
* This source code is subject to the terms of the BSD 2 Clause License and
|
|
5
|
+
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
|
|
6
|
+
* was not distributed with this source code in the LICENSE file, you can
|
|
7
|
+
* obtain it at https://www.aomedia.org/license/software-license. If the Alliance for Open
|
|
8
|
+
* Media Patent License 1.0 was not distributed with this source code in the
|
|
9
|
+
* PATENTS file, you can obtain it at https://www.aomedia.org/license/patent-license.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
#ifndef EbSvtAv1ErrorCodes_h
|
|
13
|
+
#define EbSvtAv1ErrorCodes_h
|
|
14
|
+
|
|
15
|
+
#ifdef __cplusplus
|
|
16
|
+
extern "C" {
|
|
17
|
+
#endif // __cplusplus
|
|
18
|
+
|
|
19
|
+
#define CHECK_REPORT_ERROR(cond, app_callback_ptr, errorCode) \
|
|
20
|
+
{ \
|
|
21
|
+
if (!(cond)) { \
|
|
22
|
+
(app_callback_ptr)->error_handler(((app_callback_ptr)->handle), (errorCode)); \
|
|
23
|
+
while (1) \
|
|
24
|
+
; \
|
|
25
|
+
} \
|
|
26
|
+
}
|
|
27
|
+
#define CHECK_REPORT_ERROR_NC(app_callback_ptr, errorCode) \
|
|
28
|
+
{ \
|
|
29
|
+
{ \
|
|
30
|
+
(app_callback_ptr)->error_handler(((app_callback_ptr)->handle), (errorCode)); \
|
|
31
|
+
while (1) \
|
|
32
|
+
; \
|
|
33
|
+
} \
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
typedef enum ENCODER_ERROR_CODES {
|
|
37
|
+
|
|
38
|
+
EB_ENC_CL_ERROR2 = 0x0501,
|
|
39
|
+
|
|
40
|
+
EB_ENC_EC_ERROR2 = 0x0701,
|
|
41
|
+
EB_ENC_EC_ERROR29 = 0x0722,
|
|
42
|
+
EB_ENC_RC_ERROR2 = 0x1401,
|
|
43
|
+
//EB_ENC_PM_ERRORS = 0x1300,
|
|
44
|
+
|
|
45
|
+
EB_ENC_PM_ERROR1 = 0x1301,
|
|
46
|
+
EB_ENC_PM_ERROR4 = 0x1304,
|
|
47
|
+
EB_ENC_PM_ERROR5 = 0x1305,
|
|
48
|
+
EB_ENC_PM_ERROR6 = 0x1306,
|
|
49
|
+
EB_ENC_PM_ERROR7 = 0x1307,
|
|
50
|
+
EB_ENC_PM_ERROR8 = 0x1308,
|
|
51
|
+
EB_ENC_PM_ERROR9 = 0x1309,
|
|
52
|
+
EB_ENC_PM_ERROR10 = 0x130a,
|
|
53
|
+
EB_ENC_ROB_OF_ERROR = 0x1601,
|
|
54
|
+
//EB_ENC_PD_ERRORS = 0x2100,
|
|
55
|
+
EB_ENC_PD_ERROR1 = 0x2100,
|
|
56
|
+
EB_ENC_PD_ERROR2 = 0x2101,
|
|
57
|
+
EB_ENC_PD_ERROR3 = 0x2102,
|
|
58
|
+
EB_ENC_PD_ERROR5 = 0x2104,
|
|
59
|
+
EB_ENC_PD_ERROR7 = 0x2106,
|
|
60
|
+
EB_ENC_PD_ERROR8 = 0x2107,
|
|
61
|
+
} ENCODER_ERROR_CODES;
|
|
62
|
+
|
|
63
|
+
#ifdef __cplusplus
|
|
64
|
+
}
|
|
65
|
+
#endif // __cplusplus
|
|
66
|
+
|
|
67
|
+
#endif // EbSvtAv1ErrorCodes_h
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright(c) 2019 Intel Corporation
|
|
3
|
+
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
|
|
4
|
+
*
|
|
5
|
+
* This source code is subject to the terms of the BSD 2 Clause License and
|
|
6
|
+
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
|
|
7
|
+
* was not distributed with this source code in the LICENSE file, you can
|
|
8
|
+
* obtain it at https://www.aomedia.org/license/software-license. If the Alliance for Open
|
|
9
|
+
* Media Patent License 1.0 was not distributed with this source code in the
|
|
10
|
+
* PATENTS file, you can obtain it at https://www.aomedia.org/license/patent-license.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
#ifndef EbSvtAv1Formats_h
|
|
14
|
+
#define EbSvtAv1Formats_h
|
|
15
|
+
|
|
16
|
+
#ifdef __cplusplus
|
|
17
|
+
extern "C" {
|
|
18
|
+
#endif // __cplusplus
|
|
19
|
+
|
|
20
|
+
/*!\brief List of supported color primaries */
|
|
21
|
+
typedef enum EbColorPrimaries {
|
|
22
|
+
EB_CICP_CP_RESERVED_0 = 0, /**< For future use */
|
|
23
|
+
EB_CICP_CP_BT_709 = 1, /**< BT.709 */
|
|
24
|
+
EB_CICP_CP_UNSPECIFIED = 2, /**< Unspecified */
|
|
25
|
+
EB_CICP_CP_RESERVED_3 = 3, /**< For future use */
|
|
26
|
+
EB_CICP_CP_BT_470_M = 4, /**< BT.470 System M (historical) */
|
|
27
|
+
EB_CICP_CP_BT_470_B_G = 5, /**< BT.470 System B, G (historical) */
|
|
28
|
+
EB_CICP_CP_BT_601 = 6, /**< BT.601 */
|
|
29
|
+
EB_CICP_CP_SMPTE_240 = 7, /**< SMPTE 240 */
|
|
30
|
+
EB_CICP_CP_GENERIC_FILM = 8, /**< Generic film (color filters using illuminant C) */
|
|
31
|
+
EB_CICP_CP_BT_2020 = 9, /**< BT.2020, BT.2100 */
|
|
32
|
+
EB_CICP_CP_XYZ = 10, /**< SMPTE 428 (CIE 1921 XYZ) */
|
|
33
|
+
EB_CICP_CP_SMPTE_431 = 11, /**< SMPTE RP 431-2 */
|
|
34
|
+
EB_CICP_CP_SMPTE_432 = 12, /**< SMPTE EG 432-1 */
|
|
35
|
+
EB_CICP_CP_RESERVED_13 = 13, /**< For future use (values 13 - 21) */
|
|
36
|
+
EB_CICP_CP_EBU_3213 = 22, /**< EBU Tech. 3213-E */
|
|
37
|
+
EB_CICP_CP_RESERVED_23 = 23, /**< For future use (values 23 - 255) */
|
|
38
|
+
EB_CICP_CP_RESERVED_24 = 24, /**< For future use (values 24 - 255) */
|
|
39
|
+
EB_CICP_CP_RESERVED_25 = 25, /**< For future use (values 25 - 255) */
|
|
40
|
+
EB_CICP_CP_RESERVED_26 = 26 /**< For future use (values 26 - 255) */
|
|
41
|
+
} EbColorPrimaries; /**< alias for enum aom_color_primaries */
|
|
42
|
+
|
|
43
|
+
/*!\brief List of supported transfer functions */
|
|
44
|
+
typedef enum EbTransferCharacteristics {
|
|
45
|
+
EB_CICP_TC_RESERVED_0 = 0, /**< For future use */
|
|
46
|
+
EB_CICP_TC_BT_709 = 1, /**< BT.709 */
|
|
47
|
+
EB_CICP_TC_UNSPECIFIED = 2, /**< Unspecified */
|
|
48
|
+
EB_CICP_TC_RESERVED_3 = 3, /**< For future use */
|
|
49
|
+
EB_CICP_TC_BT_470_M = 4, /**< BT.470 System M (historical) */
|
|
50
|
+
EB_CICP_TC_BT_470_B_G = 5, /**< BT.470 System B, G (historical) */
|
|
51
|
+
EB_CICP_TC_BT_601 = 6, /**< BT.601 */
|
|
52
|
+
EB_CICP_TC_SMPTE_240 = 7, /**< SMPTE 240 M */
|
|
53
|
+
EB_CICP_TC_LINEAR = 8, /**< Linear */
|
|
54
|
+
EB_CICP_TC_LOG_100 = 9, /**< Logarithmic (100 : 1 range) */
|
|
55
|
+
EB_CICP_TC_LOG_100_SQRT10 = 10, /**< Logarithmic (100 * Sqrt(10) : 1 range) */
|
|
56
|
+
EB_CICP_TC_IEC_61966 = 11, /**< IEC 61966-2-4 */
|
|
57
|
+
EB_CICP_TC_BT_1361 = 12, /**< BT.1361 */
|
|
58
|
+
EB_CICP_TC_SRGB = 13, /**< sRGB or sYCC*/
|
|
59
|
+
EB_CICP_TC_BT_2020_10_BIT = 14, /**< BT.2020 10-bit systems */
|
|
60
|
+
EB_CICP_TC_BT_2020_12_BIT = 15, /**< BT.2020 12-bit systems */
|
|
61
|
+
EB_CICP_TC_SMPTE_2084 = 16, /**< SMPTE ST 2084, ITU BT.2100 PQ */
|
|
62
|
+
EB_CICP_TC_SMPTE_428 = 17, /**< SMPTE ST 428 */
|
|
63
|
+
EB_CICP_TC_HLG = 18, /**< BT.2100 HLG, ARIB STD-B67 */
|
|
64
|
+
EB_CICP_TC_RESERVED_19 = 19, /**< For future use (values 19-255) */
|
|
65
|
+
EB_CICP_TC_RESERVED_20 = 20, /**< For future use (values 20-255) */
|
|
66
|
+
EB_CICP_TC_RESERVED_21 = 21, /**< For future use (values 21-255) */
|
|
67
|
+
EB_CICP_TC_RESERVED_22 = 22, /**< For future use (values 22-255) */
|
|
68
|
+
EB_CICP_TC_RESERVED_23 = 23 /**< For future use (values 23-255) */
|
|
69
|
+
} EbTransferCharacteristics; /**< alias for enum aom_transfer_function */
|
|
70
|
+
|
|
71
|
+
/*!\brief List of supported matrix coefficients */
|
|
72
|
+
typedef enum EbMatrixCoefficients {
|
|
73
|
+
EB_CICP_MC_IDENTITY = 0, /**< Identity matrix */
|
|
74
|
+
EB_CICP_MC_BT_709 = 1, /**< BT.709 */
|
|
75
|
+
EB_CICP_MC_UNSPECIFIED = 2, /**< Unspecified */
|
|
76
|
+
EB_CICP_MC_RESERVED_3 = 3, /**< For future use */
|
|
77
|
+
EB_CICP_MC_FCC = 4, /**< US FCC 73.628 */
|
|
78
|
+
EB_CICP_MC_BT_470_B_G = 5, /**< BT.470 System B, G (historical) */
|
|
79
|
+
EB_CICP_MC_BT_601 = 6, /**< BT.601 */
|
|
80
|
+
EB_CICP_MC_SMPTE_240 = 7, /**< SMPTE 240 M */
|
|
81
|
+
EB_CICP_MC_SMPTE_YCGCO = 8, /**< YCgCo */
|
|
82
|
+
EB_CICP_MC_BT_2020_NCL = 9, /**< BT.2020 non-constant luminance, BT.2100 YCbCr */
|
|
83
|
+
EB_CICP_MC_BT_2020_CL = 10, /**< BT.2020 constant luminance */
|
|
84
|
+
EB_CICP_MC_SMPTE_2085 = 11, /**< SMPTE ST 2085 YDzDx */
|
|
85
|
+
EB_CICP_MC_CHROMAT_NCL = 12, /**< Chromaticity-derived non-constant luminance */
|
|
86
|
+
EB_CICP_MC_CHROMAT_CL = 13, /**< Chromaticity-derived constant luminance */
|
|
87
|
+
EB_CICP_MC_ICTCP = 14, /**< BT.2100 ICtCp */
|
|
88
|
+
EB_CICP_MC_RESERVED_15 = 15, /**< For future use (values 15-255) */
|
|
89
|
+
EB_CICP_MC_RESERVED_16 = 16, /**< For future use (values 16-255) */
|
|
90
|
+
EB_CICP_MC_RESERVED_17 = 17, /**< For future use (values 17-255) */
|
|
91
|
+
EB_CICP_MC_RESERVED_18 = 18 /**< For future use (values 18-255) */
|
|
92
|
+
} EbMatrixCoefficients;
|
|
93
|
+
|
|
94
|
+
/*!\brief List of supported color range */
|
|
95
|
+
typedef enum EbColorRange {
|
|
96
|
+
EB_CR_STUDIO_RANGE = 0, /**< Y [16..235], UV [16..240] */
|
|
97
|
+
EB_CR_FULL_RANGE = 1 /**< YUV/RGB [0..255] */
|
|
98
|
+
} EbColorRange; /**< alias for enum aom_color_range */
|
|
99
|
+
|
|
100
|
+
/* AV1 bit depth */
|
|
101
|
+
typedef enum EbBitDepth {
|
|
102
|
+
EB_EIGHT_BIT = 8,
|
|
103
|
+
EB_TEN_BIT = 10,
|
|
104
|
+
EB_TWELVE_BIT = 12,
|
|
105
|
+
EB_FOURTEEN_BIT = 14, // Not supported
|
|
106
|
+
EB_SIXTEEN_BIT = 16, // Not supported
|
|
107
|
+
EB_THIRTYTWO_BIT = 32, // Not supported
|
|
108
|
+
} EbBitDepth;
|
|
109
|
+
|
|
110
|
+
/* AV1 Chroma Format */
|
|
111
|
+
typedef enum EbColorFormat { EB_YUV400, EB_YUV420, EB_YUV422, EB_YUV444 } EbColorFormat;
|
|
112
|
+
|
|
113
|
+
/*!\brief List of chroma sample positions */
|
|
114
|
+
typedef enum EbChromaSamplePosition {
|
|
115
|
+
EB_CSP_UNKNOWN = 0, /**< Unknown */
|
|
116
|
+
EB_CSP_VERTICAL = 1, /**< Horizontally co-located with luma(0, 0)*/
|
|
117
|
+
/**< sample, between two vertical samples */
|
|
118
|
+
EB_CSP_COLOCATED = 2, /**< Co-located with luma(0, 0) sample */
|
|
119
|
+
EB_CSP_RESERVED = 3 /**< Reserved value */
|
|
120
|
+
} EbChromaSamplePosition; /**< alias for enum aom_transfer_function */
|
|
121
|
+
|
|
122
|
+
#ifdef __cplusplus
|
|
123
|
+
}
|
|
124
|
+
#endif // __cplusplus
|
|
125
|
+
|
|
126
|
+
#endif // EbSvtAv1Formats_h
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2021, Alliance for Open Media. All rights reserved
|
|
3
|
+
*
|
|
4
|
+
* This source code is subject to the terms of the BSD 2 Clause License and
|
|
5
|
+
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
|
|
6
|
+
* was not distributed with this source code in the LICENSE file, you can
|
|
7
|
+
* obtain it at https://www.aomedia.org/license/software-license. If the Alliance for Open
|
|
8
|
+
* Media Patent License 1.0 was not distributed with this source code in the
|
|
9
|
+
* PATENTS file, you can obtain it at https://www.aomedia.org/license/patent-license.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
#ifndef EbSvtAv1Metadata_h
|
|
13
|
+
#define EbSvtAv1Metadata_h
|
|
14
|
+
|
|
15
|
+
#ifdef __cplusplus
|
|
16
|
+
extern "C" {
|
|
17
|
+
#endif // __cplusplus
|
|
18
|
+
|
|
19
|
+
#include <stdio.h>
|
|
20
|
+
#include <string.h> //for 'memcpy'
|
|
21
|
+
#include "EbSvtAv1.h"
|
|
22
|
+
#include "EbSvtAv1Enc.h"
|
|
23
|
+
|
|
24
|
+
struct EbBufferHeaderType;
|
|
25
|
+
|
|
26
|
+
typedef enum EbAv1MetadataType {
|
|
27
|
+
EB_AV1_METADATA_TYPE_AOM_RESERVED_0 = 0,
|
|
28
|
+
EB_AV1_METADATA_TYPE_HDR_CLL = 1,
|
|
29
|
+
EB_AV1_METADATA_TYPE_HDR_MDCV = 2,
|
|
30
|
+
EB_AV1_METADATA_TYPE_SCALABILITY = 3,
|
|
31
|
+
EB_AV1_METADATA_TYPE_ITUT_T35 = 4,
|
|
32
|
+
EB_AV1_METADATA_TYPE_TIMECODE = 5,
|
|
33
|
+
EB_AV1_METADATA_TYPE_FRAME_SIZE = 6,
|
|
34
|
+
} EbAv1MetadataType;
|
|
35
|
+
|
|
36
|
+
/*!\brief Metadata payload. */
|
|
37
|
+
typedef struct SvtMetadata {
|
|
38
|
+
uint32_t type; /**< Metadata type */
|
|
39
|
+
uint8_t *payload; /**< Metadata payload data */
|
|
40
|
+
size_t sz; /**< Metadata payload size */
|
|
41
|
+
} SvtMetadataT;
|
|
42
|
+
|
|
43
|
+
/*!\brief Array of aom_metadata structs for an image. */
|
|
44
|
+
typedef struct SvtMetadataArray {
|
|
45
|
+
size_t sz; /* Number of metadata structs in the list */
|
|
46
|
+
SvtMetadataT **metadata_array; /* Array of metadata structs */
|
|
47
|
+
} SvtMetadataArrayT;
|
|
48
|
+
|
|
49
|
+
/*!\brief Frame size struct in metadata. */
|
|
50
|
+
typedef struct SvtMetadataFrameSize {
|
|
51
|
+
uint16_t width; /**< pixel width of frame */
|
|
52
|
+
uint16_t height; /**< pixel height of frame */
|
|
53
|
+
uint16_t disp_width; /**< display pixel width of frame */
|
|
54
|
+
uint16_t disp_height; /**< display pixel height of frame */
|
|
55
|
+
uint16_t stride; /**< pixel stride of frame */
|
|
56
|
+
uint16_t subsampling_x; /**< subsampling of Cb/Cr in width */
|
|
57
|
+
uint16_t subsampling_y; /**< subsampling of Cb/Cr in height */
|
|
58
|
+
} SvtMetadataFrameSizeT;
|
|
59
|
+
|
|
60
|
+
/*!\brief Allocate memory for SvtMetadataT struct.
|
|
61
|
+
*
|
|
62
|
+
* Allocates storage for the metadata payload, sets its type and copies the
|
|
63
|
+
* payload data into the SvtMetadataT struct. A metadata payload buffer of size
|
|
64
|
+
* sz is allocated and sz bytes are copied from data into the payload buffer.
|
|
65
|
+
*
|
|
66
|
+
* \param[in] type Metadata type
|
|
67
|
+
* \param[in] data Metadata data pointer
|
|
68
|
+
* \param[in] sz Metadata size
|
|
69
|
+
*
|
|
70
|
+
* \return Returns the newly allocated SvtMetadataT struct. If data is NULL,
|
|
71
|
+
* sz is 0, or memory allocation fails, it returns NULL.
|
|
72
|
+
*/
|
|
73
|
+
EB_API SvtMetadataT *svt_metadata_alloc(const uint32_t type, const uint8_t *data, const size_t sz);
|
|
74
|
+
|
|
75
|
+
/*!\brief Free metadata struct.
|
|
76
|
+
*
|
|
77
|
+
* Free metadata struct and its buffer.
|
|
78
|
+
*
|
|
79
|
+
* \param[in] ptr Metadata struct pointer
|
|
80
|
+
*/
|
|
81
|
+
EB_API void svt_metadata_free(void *ptr);
|
|
82
|
+
|
|
83
|
+
/*!\brief Alloc memory for SvtMetadataArrayT struct.
|
|
84
|
+
*
|
|
85
|
+
* Allocate memory for SvtMetadataArrayT struct.
|
|
86
|
+
* If sz is 0 the SvtMetadataArrayT struct's internal buffer list will be
|
|
87
|
+
* NULL, but the SvtMetadataArrayT struct itself will still be allocated.
|
|
88
|
+
* Returns a pointer to the allocated struct or NULL on failure.
|
|
89
|
+
*
|
|
90
|
+
* \param[in] sz Size of internal metadata list buffer
|
|
91
|
+
*/
|
|
92
|
+
EB_API SvtMetadataArrayT *svt_metadata_array_alloc(const size_t sz);
|
|
93
|
+
|
|
94
|
+
/*!\brief Free metadata array struct.
|
|
95
|
+
*
|
|
96
|
+
* Free metadata array struct and all metadata structs inside.
|
|
97
|
+
*
|
|
98
|
+
* \param[in] arr Metadata array struct pointer
|
|
99
|
+
*/
|
|
100
|
+
EB_API void svt_metadata_array_free(void *arr);
|
|
101
|
+
|
|
102
|
+
/*!\brief Add metadata to image.
|
|
103
|
+
*
|
|
104
|
+
* Adds metadata to EbBufferHeaderType.
|
|
105
|
+
* Function makes a copy of the provided data parameter.
|
|
106
|
+
* Metadata insertion point is controlled by insert_flag.
|
|
107
|
+
*
|
|
108
|
+
* \param[in] buffer Buffer descriptor
|
|
109
|
+
* \param[in] type Metadata type
|
|
110
|
+
* \param[in] data Metadata contents
|
|
111
|
+
* \param[in] sz Metadata contents size
|
|
112
|
+
*
|
|
113
|
+
* \return Returns 0 on success. If buffer or data is NULL, sz is 0, or memory
|
|
114
|
+
* allocation fails, it returns -1.
|
|
115
|
+
*/
|
|
116
|
+
EB_API int svt_add_metadata(struct EbBufferHeaderType *buffer, const uint32_t type, const uint8_t *data,
|
|
117
|
+
const size_t sz);
|
|
118
|
+
|
|
119
|
+
/*!\brief Return metadata size.
|
|
120
|
+
*
|
|
121
|
+
* Returns the metadata size of the selected metadata given by type
|
|
122
|
+
*
|
|
123
|
+
* \param[in] metadata Metadata array struct pointer
|
|
124
|
+
* \param[in] type Metadata type descriptor
|
|
125
|
+
*/
|
|
126
|
+
EB_API size_t svt_metadata_size(SvtMetadataArrayT *metadata, const EbAv1MetadataType type);
|
|
127
|
+
|
|
128
|
+
/*!\brief Parse string into EbSvtAv1MasteringDisplayInfo struct.
|
|
129
|
+
*
|
|
130
|
+
* Splits a string in the format of "G(x,y)B(x,y)R(x,Y)WP(x,y)L(max,min)" into
|
|
131
|
+
* a EbSvtAv1MasteringDisplayInfo struct.
|
|
132
|
+
*
|
|
133
|
+
* \param[in] mdi Pointer to EbSvtAv1MasteringDisplayInfo struct
|
|
134
|
+
* \param[in] md_str String to parse
|
|
135
|
+
*
|
|
136
|
+
* \return Returns 1 on success. 0 on failure.
|
|
137
|
+
*/
|
|
138
|
+
EB_API int svt_aom_parse_mastering_display(struct EbSvtAv1MasteringDisplayInfo *mdi, const char *md_str);
|
|
139
|
+
|
|
140
|
+
/*!\brief Parse string into EbContentLightLevel struct.
|
|
141
|
+
*
|
|
142
|
+
* Splits a string in the format of "max_cll,max_fall" into
|
|
143
|
+
* a EbContentLightLevel struct.
|
|
144
|
+
*
|
|
145
|
+
* \param[in] cll Pointer to EbContentLightLevel struct
|
|
146
|
+
* \param[in] cll_str String to parse
|
|
147
|
+
*
|
|
148
|
+
* \return Returns 1 on success. 0 on failure.
|
|
149
|
+
*/
|
|
150
|
+
EB_API int svt_aom_parse_content_light_level(struct EbContentLightLevel *cll, const char *cll_str);
|
|
151
|
+
|
|
152
|
+
#ifdef __cplusplus
|
|
153
|
+
}
|
|
154
|
+
#endif // __cplusplus
|
|
155
|
+
|
|
156
|
+
#endif // EbSvtAv1Metadata_h
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revizly/sharp-libvips-dev",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.35",
|
|
4
4
|
"description": "Header files and C++ sources for libvips and dependencies required when compiling sharp from source",
|
|
5
5
|
"author": "Lovell Fuller <npm@lovell.info>",
|
|
6
6
|
"homepage": "https://sharp.pixelplumbing.com",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/
|
|
9
|
+
"url": "git+https://github.com/janaz/sharp-libvips.git",
|
|
10
10
|
"directory": "npm/dev"
|
|
11
11
|
},
|
|
12
12
|
"license": "LGPL-3.0-or-later",
|
package/versions.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"aom": "3.14.
|
|
2
|
+
"aom": "3.14.1",
|
|
3
3
|
"archive": "3.8.7",
|
|
4
4
|
"cairo": "1.18.4",
|
|
5
5
|
"cgif": "0.5.3",
|
|
6
|
-
"de265": "1.
|
|
6
|
+
"de265": "1.1.1",
|
|
7
7
|
"exif": "0.6.26",
|
|
8
8
|
"expat": "2.8.1",
|
|
9
9
|
"ffi": "3.5.2",
|
|
10
|
-
"fontconfig": "2.
|
|
10
|
+
"fontconfig": "2.18.1",
|
|
11
11
|
"freetype": "2.14.3",
|
|
12
12
|
"fribidi": "1.0.16",
|
|
13
|
-
"glib": "2.
|
|
14
|
-
"harfbuzz": "14.2.
|
|
15
|
-
"heif": "
|
|
13
|
+
"glib": "2.89.0",
|
|
14
|
+
"harfbuzz": "14.2.1",
|
|
15
|
+
"heif": "1.23.0",
|
|
16
16
|
"highway": "1.4.0",
|
|
17
17
|
"imagequant": "2.4.1",
|
|
18
18
|
"lcms": "2.19.1",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"pixman": "0.46.4",
|
|
22
22
|
"png": "1.6.58",
|
|
23
23
|
"proxy-libintl": "0.5",
|
|
24
|
-
"rsvg": "2.62.
|
|
25
|
-
"tiff": "
|
|
24
|
+
"rsvg": "2.62.3",
|
|
25
|
+
"tiff": "1b17963",
|
|
26
26
|
"uhdr": "82b4f6d",
|
|
27
27
|
"vips": "8.18.2",
|
|
28
28
|
"webp": "1.6.0",
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
/*6
|
|
2
|
-
* HEIF codec.
|
|
3
|
-
* Copyright (c) 2026 Dirk Farin <dirk.farin@gmail.com>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of libheif.
|
|
6
|
-
*
|
|
7
|
-
* libheif is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as
|
|
9
|
-
* published by the Free Software Foundation, either version 3 of
|
|
10
|
-
* the License, or (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* libheif is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with libheif. If not, see <http://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
#ifndef LIBHEIF_HEIF_UNCOMPRESSED_TYPES_H
|
|
22
|
-
#define LIBHEIF_HEIF_UNCOMPRESSED_TYPES_H
|
|
23
|
-
|
|
24
|
-
#include <stdint.h>
|
|
25
|
-
|
|
26
|
-
#ifdef __cplusplus
|
|
27
|
-
extern "C" {
|
|
28
|
-
#endif
|
|
29
|
-
|
|
30
|
-
// --- ISO 23001-17 component types (Table 1)
|
|
31
|
-
|
|
32
|
-
typedef enum heif_unci_component_type
|
|
33
|
-
{
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
// --- Bayer / filter array pattern
|
|
55
|
-
|
|
56
|
-
typedef struct heif_bayer_pattern_pixel
|
|
57
|
-
{
|
|
58
|
-
uint32_t component_id;
|
|
59
|
-
float component_gain;
|
|
60
|
-
} heif_bayer_pattern_pixel;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
// --- Sensor bad pixels map (ISO 23001-17, Section 6.1.7)
|
|
64
|
-
|
|
65
|
-
struct heif_bad_pixel { uint32_t row; uint32_t column; };
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
// --- Chroma sample location (ISO 23091-2 / ITU-T H.273 + ISO 23001-17)
|
|
69
|
-
|
|
70
|
-
typedef enum heif_chroma420_sample_location {
|
|
71
|
-
// values 0-5 according to ISO 23091-2 / ITU-T H.273
|
|
72
|
-
heif_chroma420_sample_location_00_05 = 0,
|
|
73
|
-
heif_chroma420_sample_location_05_05 = 1,
|
|
74
|
-
heif_chroma420_sample_location_00_00 = 2,
|
|
75
|
-
heif_chroma420_sample_location_05_00 = 3,
|
|
76
|
-
heif_chroma420_sample_location_00_10 = 4,
|
|
77
|
-
heif_chroma420_sample_location_05_10 = 5,
|
|
78
|
-
|
|
79
|
-
// value 6 according to ISO 23001-17
|
|
80
|
-
heif_chroma420_sample_location_00_00_01_00 = 6
|
|
81
|
-
} heif_chroma420_sample_location;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
// Compression methods for 'unci' (ISO 23001-17) images.
|
|
85
|
-
// This is similar to heif_metadata_compression. We should try to keep the integers compatible, but each enum will just
|
|
86
|
-
// contain the allowed values.
|
|
87
|
-
typedef enum heif_unci_compression
|
|
88
|
-
{
|
|
89
|
-
heif_unci_compression_off = 0,
|
|
90
|
-
//heif_unci_compression_auto = 1,
|
|
91
|
-
//heif_unci_compression_unknown = 2, // only used when reading unknown method from input file
|
|
92
|
-
heif_unci_compression_deflate = 3,
|
|
93
|
-
heif_unci_compression_zlib = 4,
|
|
94
|
-
heif_unci_compression_brotli = 5
|
|
95
|
-
} heif_unci_compression;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
// --- 'unci' image parameters
|
|
99
|
-
|
|
100
|
-
typedef struct heif_unci_image_parameters
|
|
101
|
-
{
|
|
102
|
-
int version;
|
|
103
|
-
|
|
104
|
-
// --- version 1
|
|
105
|
-
|
|
106
|
-
uint32_t image_width;
|
|
107
|
-
uint32_t image_height;
|
|
108
|
-
|
|
109
|
-
uint32_t tile_width;
|
|
110
|
-
uint32_t tile_height;
|
|
111
|
-
|
|
112
|
-
heif_unci_compression compression;
|
|
113
|
-
|
|
114
|
-
// TODO: interleave type, padding
|
|
115
|
-
} heif_unci_image_parameters;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
// --- pixel datatype support
|
|
119
|
-
|
|
120
|
-
typedef enum heif_component_datatype
|
|
121
|
-
{
|
|
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
|
-
|
|
129
|
-
typedef struct heif_complex32
|
|
130
|
-
{
|
|
131
|
-
float real, imaginary;
|
|
132
|
-
} heif_complex32;
|
|
133
|
-
|
|
134
|
-
typedef struct heif_complex64
|
|
135
|
-
{
|
|
136
|
-
double real, imaginary;
|
|
137
|
-
} heif_complex64;
|
|
138
|
-
|
|
139
|
-
#ifdef __cplusplus
|
|
140
|
-
}
|
|
141
|
-
#endif
|
|
142
|
-
|
|
143
|
-
#endif
|