@revizly/sharp-libvips-dev 1.0.27 → 1.0.29

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.
Files changed (101) hide show
  1. package/include/archive.h +2 -2
  2. package/include/archive_entry.h +1 -1
  3. package/include/expat.h +1 -1
  4. package/include/expat_config.h +3 -3
  5. package/include/expat_external.h +1 -1
  6. package/include/freetype2/freetype/config/ftconfig.h +1 -1
  7. package/include/freetype2/freetype/config/ftheader.h +1 -1
  8. package/include/freetype2/freetype/config/ftoption.h +8 -2
  9. package/include/freetype2/freetype/config/ftstdlib.h +1 -1
  10. package/include/freetype2/freetype/config/integer-types.h +1 -1
  11. package/include/freetype2/freetype/config/mac-support.h +3 -1
  12. package/include/freetype2/freetype/config/public-macros.h +1 -1
  13. package/include/freetype2/freetype/freetype.h +9 -18
  14. package/include/freetype2/freetype/ftadvanc.h +1 -1
  15. package/include/freetype2/freetype/ftbbox.h +1 -1
  16. package/include/freetype2/freetype/ftbdf.h +10 -4
  17. package/include/freetype2/freetype/ftbitmap.h +1 -1
  18. package/include/freetype2/freetype/ftbzip2.h +1 -1
  19. package/include/freetype2/freetype/ftcache.h +1 -1
  20. package/include/freetype2/freetype/ftcid.h +1 -1
  21. package/include/freetype2/freetype/ftcolor.h +1 -1
  22. package/include/freetype2/freetype/ftdriver.h +1 -1
  23. package/include/freetype2/freetype/fterrdef.h +1 -1
  24. package/include/freetype2/freetype/fterrors.h +1 -1
  25. package/include/freetype2/freetype/ftfntfmt.h +1 -1
  26. package/include/freetype2/freetype/ftgasp.h +1 -1
  27. package/include/freetype2/freetype/ftglyph.h +1 -1
  28. package/include/freetype2/freetype/ftgxval.h +1 -1
  29. package/include/freetype2/freetype/ftgzip.h +1 -1
  30. package/include/freetype2/freetype/ftimage.h +2 -2
  31. package/include/freetype2/freetype/ftincrem.h +1 -1
  32. package/include/freetype2/freetype/ftlcdfil.h +3 -9
  33. package/include/freetype2/freetype/ftlist.h +1 -1
  34. package/include/freetype2/freetype/ftlogging.h +1 -1
  35. package/include/freetype2/freetype/ftlzw.h +1 -1
  36. package/include/freetype2/freetype/ftmac.h +1 -1
  37. package/include/freetype2/freetype/ftmm.h +1 -1
  38. package/include/freetype2/freetype/ftmodapi.h +1 -1
  39. package/include/freetype2/freetype/ftmoderr.h +1 -1
  40. package/include/freetype2/freetype/ftotval.h +1 -1
  41. package/include/freetype2/freetype/ftoutln.h +1 -1
  42. package/include/freetype2/freetype/ftparams.h +3 -6
  43. package/include/freetype2/freetype/ftpfr.h +1 -1
  44. package/include/freetype2/freetype/ftrender.h +1 -1
  45. package/include/freetype2/freetype/ftsizes.h +1 -1
  46. package/include/freetype2/freetype/ftsnames.h +1 -1
  47. package/include/freetype2/freetype/ftstroke.h +1 -1
  48. package/include/freetype2/freetype/ftsynth.h +1 -1
  49. package/include/freetype2/freetype/ftsystem.h +1 -1
  50. package/include/freetype2/freetype/fttrigon.h +1 -1
  51. package/include/freetype2/freetype/fttypes.h +1 -1
  52. package/include/freetype2/freetype/ftwinfnt.h +1 -1
  53. package/include/freetype2/freetype/otsvg.h +1 -1
  54. package/include/freetype2/freetype/t1tables.h +3 -3
  55. package/include/freetype2/freetype/ttnameid.h +2 -2
  56. package/include/freetype2/freetype/tttables.h +1 -1
  57. package/include/freetype2/freetype/tttags.h +1 -1
  58. package/include/freetype2/ft2build.h +1 -1
  59. package/include/glib-2.0/gio/gfileinfo.h +5 -0
  60. package/include/glib-2.0/gio/gio-autocleanups.h +0 -1
  61. package/include/glib-2.0/gio/gio.h +2 -0
  62. package/include/glib-2.0/gio/gioenums.h +21 -0
  63. package/include/glib-2.0/gio/gioenumtypes.h +2 -0
  64. package/include/glib-2.0/gio/giptosmessage.h +46 -0
  65. package/include/glib-2.0/gio/gipv6tclassmessage.h +46 -0
  66. package/include/glib-2.0/gio/gsocketcontrolmessage.h +2 -0
  67. package/include/glib-2.0/glib/gatomic.h +26 -2
  68. package/include/glib-2.0/glib/gmain.h +4 -0
  69. package/include/glib-2.0/glib/gmarkup.h +7 -0
  70. package/include/glib-2.0/glib/gslice.h +12 -4
  71. package/include/glib-2.0/glib/gtestutils.h +2 -0
  72. package/include/glib-2.0/glib/gtimer.h +1 -0
  73. package/include/harfbuzz/hb-buffer.h +11 -3
  74. package/include/harfbuzz/hb-cplusplus.hh +31 -27
  75. package/include/harfbuzz/hb-features.h +21 -0
  76. package/include/harfbuzz/hb-ot-color.h +14 -0
  77. package/include/harfbuzz/hb-ot-shape.h +15 -0
  78. package/include/harfbuzz/hb-paint.h +19 -18
  79. package/include/harfbuzz/hb-version.h +4 -4
  80. package/include/libde265/de265-version.h +3 -3
  81. package/include/libde265/de265.h +41 -40
  82. package/include/libpng16/png.h +7 -7
  83. package/include/libpng16/pngconf.h +1 -1
  84. package/include/libpng16/pnglibconf.h +1 -1
  85. package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
  86. package/include/libxml2/libxml/catalog.h +2 -0
  87. package/include/libxml2/libxml/relaxng.h +4 -0
  88. package/include/libxml2/libxml/xmlversion.h +4 -4
  89. package/include/pango-1.0/pango/pango-features.h +2 -2
  90. package/include/pango-1.0/pango/pango-script.h +2 -0
  91. package/include/png.h +7 -7
  92. package/include/pngconf.h +1 -1
  93. package/include/pnglibconf.h +1 -1
  94. package/include/vips/colour.h +2 -2
  95. package/include/vips/memory.h +1 -1
  96. package/include/vips/version.h +4 -4
  97. package/package.json +1 -1
  98. package/versions.json +13 -13
  99. package/include/harfbuzz/hb-subset-serialize.h +0 -83
  100. package/include/harfbuzz/hb-subset.h +0 -297
  101. package/include/libde265/en265.h +0 -218
package/versions.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
- "aom": "3.13.1",
3
- "archive": "3.8.5",
2
+ "aom": "3.13.2",
3
+ "archive": "3.8.6",
4
4
  "cairo": "1.18.4",
5
- "cgif": "0.5.1",
6
- "de265": "1.0.16",
5
+ "cgif": "0.5.2",
6
+ "de265": "1.0.18",
7
7
  "exif": "0.6.25",
8
- "expat": "2.7.4",
8
+ "expat": "2.7.5",
9
9
  "ffi": "3.5.2",
10
10
  "fontconfig": "2.17.1",
11
- "freetype": "2.14.1",
11
+ "freetype": "2.14.3",
12
12
  "fribidi": "1.0.16",
13
- "glib": "2.87.2",
14
- "harfbuzz": "12.3.2",
13
+ "glib": "2.88.0",
14
+ "harfbuzz": "13.2.1",
15
15
  "heif": "1.21.2",
16
16
  "highway": "1.3.0",
17
17
  "imagequant": "2.4.1",
18
18
  "lcms": "2.18",
19
19
  "mozjpeg": "0826579",
20
- "pango": "1.57.0",
20
+ "pango": "1.57.1",
21
21
  "pixman": "0.46.4",
22
- "png": "1.6.54",
22
+ "png": "1.6.55",
23
23
  "proxy-libintl": "0.5",
24
- "rsvg": "2.61.91",
24
+ "rsvg": "2.62.1",
25
25
  "tiff": "4.7.1",
26
26
  "uhdr": "8cbc983",
27
- "vips": "8.18.0",
27
+ "vips": "8.18.1",
28
28
  "webp": "1.6.0",
29
- "xml2": "2.15.1",
29
+ "xml2": "2.15.2",
30
30
  "zlib-ng": "2.3.3"
31
31
  }
@@ -1,83 +0,0 @@
1
- /*
2
- * Copyright © 2022 Google, Inc.
3
- *
4
- * This is part of HarfBuzz, a text shaping library.
5
- *
6
- * Permission is hereby granted, without written agreement and without
7
- * license or royalty fees, to use, copy, modify, and distribute this
8
- * software and its documentation for any purpose, provided that the
9
- * above copyright notice and the following two paragraphs appear in
10
- * all copies of this software.
11
- *
12
- * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
13
- * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
14
- * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
15
- * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
16
- * DAMAGE.
17
- *
18
- * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
19
- * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20
- * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
21
- * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
22
- * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
23
- *
24
- */
25
-
26
- #ifndef HB_SUBSET_SERIALIZE_H
27
- #define HB_SUBSET_SERIALIZE_H
28
-
29
- #include "hb.h"
30
-
31
- HB_BEGIN_DECLS
32
-
33
- /**
34
- * hb_subset_serialize_link_t:
35
- * @width: offsetSize in bytes
36
- * @position: position of the offset field in bytes from
37
- * beginning of subtable
38
- * @objidx: index of subtable
39
- *
40
- * Represents a link between two objects in the object graph
41
- * to be serialized.
42
- *
43
- * Since: 10.2.0
44
- */
45
- typedef struct hb_subset_serialize_link_t {
46
- unsigned int width;
47
- unsigned int position;
48
- unsigned int objidx;
49
- } hb_subset_serialize_link_t;
50
-
51
- /**
52
- * hb_subset_serialize_object_t:
53
- * @head: start of object data
54
- * @tail: end of object data
55
- * @num_real_links: number of offset field in the object
56
- * @real_links: array of offset info
57
- * @num_virtual_links: number of objects that must be packed
58
- * after current object in the final
59
- * serialized order
60
- * @virtual_links: array of virtual link info
61
- *
62
- * Represents an object in the object graph to be serialized.
63
- *
64
- * Since: 10.2.0
65
- */
66
- typedef struct hb_subset_serialize_object_t {
67
- char *head;
68
- char *tail;
69
- unsigned int num_real_links;
70
- hb_subset_serialize_link_t *real_links;
71
- unsigned int num_virtual_links;
72
- hb_subset_serialize_link_t *virtual_links;
73
- } hb_subset_serialize_object_t;
74
-
75
- HB_EXTERN hb_blob_t *
76
- hb_subset_serialize_or_fail (hb_tag_t table_tag,
77
- hb_subset_serialize_object_t *hb_objects,
78
- unsigned num_hb_objs);
79
-
80
-
81
- HB_END_DECLS
82
-
83
- #endif /* HB_SUBSET_SERIALIZE_H */
@@ -1,297 +0,0 @@
1
- /*
2
- * Copyright © 2018 Google, Inc.
3
- *
4
- * This is part of HarfBuzz, a text shaping library.
5
- *
6
- * Permission is hereby granted, without written agreement and without
7
- * license or royalty fees, to use, copy, modify, and distribute this
8
- * software and its documentation for any purpose, provided that the
9
- * above copyright notice and the following two paragraphs appear in
10
- * all copies of this software.
11
- *
12
- * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
13
- * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
14
- * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
15
- * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
16
- * DAMAGE.
17
- *
18
- * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
19
- * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20
- * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
21
- * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
22
- * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
23
- *
24
- * Google Author(s): Rod Sheeter
25
- */
26
-
27
- #ifndef HB_SUBSET_H
28
- #define HB_SUBSET_H
29
-
30
- #include "hb.h"
31
- #include "hb-ot.h"
32
-
33
- HB_BEGIN_DECLS
34
-
35
- /**
36
- * hb_subset_input_t:
37
- *
38
- * Things that change based on the input. Characters to keep, etc.
39
- */
40
-
41
- typedef struct hb_subset_input_t hb_subset_input_t;
42
-
43
- /**
44
- * hb_subset_plan_t:
45
- *
46
- * Contains information about how the subset operation will be executed.
47
- * Such as mappings from the old glyph ids to the new ones in the subset.
48
- */
49
-
50
- typedef struct hb_subset_plan_t hb_subset_plan_t;
51
-
52
- /**
53
- * hb_subset_flags_t:
54
- * @HB_SUBSET_FLAGS_DEFAULT: all flags at their default value of false.
55
- * @HB_SUBSET_FLAGS_NO_HINTING: If set hinting instructions will be dropped in
56
- * the produced subset. Otherwise hinting instructions will be retained.
57
- * @HB_SUBSET_FLAGS_RETAIN_GIDS: If set glyph indices will not be modified in
58
- * the produced subset. If glyphs are dropped their indices will be retained
59
- * as an empty glyph.
60
- * @HB_SUBSET_FLAGS_DESUBROUTINIZE: If set and subsetting a CFF font the
61
- * subsetter will attempt to remove subroutines from the CFF glyphs.
62
- * @HB_SUBSET_FLAGS_NAME_LEGACY: If set non-unicode name records will be
63
- * retained in the subset.
64
- * @HB_SUBSET_FLAGS_SET_OVERLAPS_FLAG: If set the subsetter will set the
65
- * OVERLAP_SIMPLE flag on each simple glyph.
66
- * @HB_SUBSET_FLAGS_PASSTHROUGH_UNRECOGNIZED: If set the subsetter will not
67
- * drop unrecognized tables and instead pass them through untouched.
68
- * @HB_SUBSET_FLAGS_NOTDEF_OUTLINE: If set the notdef glyph outline will be
69
- * retained in the final subset.
70
- * @HB_SUBSET_FLAGS_GLYPH_NAMES: If set the PS glyph names will be retained
71
- * in the final subset.
72
- * @HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES: If set then the unicode ranges in
73
- * OS/2 will not be recalculated.
74
- * @HB_SUBSET_FLAGS_NO_LAYOUT_CLOSURE: If set do not perform glyph closure on layout
75
- * substitution rules (GSUB). Since: 7.2.0.
76
- * @HB_SUBSET_FLAGS_OPTIMIZE_IUP_DELTAS: If set perform IUP delta optimization on the
77
- * remaining gvar table's deltas. Since: 8.5.0
78
- * @HB_SUBSET_FLAGS_NO_BIDI_CLOSURE: If set do not pull mirrored versions of input
79
- * codepoints into the subset. Since: 11.1.0
80
- * @HB_SUBSET_FLAGS_IFTB_REQUIREMENTS: If set enforce requirements on the output subset
81
- * to allow it to be used with incremental font transfer IFTB patches. Primarily,
82
- * this forces all outline data to use long (32 bit) offsets. Since: EXPERIMENTAL
83
- * @HB_SUBSET_FLAGS_RETAIN_NUM_GLYPHS: If this flag is set along side
84
- * HB_SUBSET_FLAGS_RETAIN_GIDS then the number of glyphs in the font won't
85
- * be reduced as a result of subsetting. If necessary empty glyphs will be
86
- * included at the end of the font to keep the number of glyphs unchanged.
87
- *
88
- * List of boolean properties that can be configured on the subset input.
89
- *
90
- * Since: 2.9.0
91
- **/
92
- typedef enum { /*< flags >*/
93
- HB_SUBSET_FLAGS_DEFAULT = 0x00000000u,
94
- HB_SUBSET_FLAGS_NO_HINTING = 0x00000001u,
95
- HB_SUBSET_FLAGS_RETAIN_GIDS = 0x00000002u,
96
- HB_SUBSET_FLAGS_DESUBROUTINIZE = 0x00000004u,
97
- HB_SUBSET_FLAGS_NAME_LEGACY = 0x00000008u,
98
- HB_SUBSET_FLAGS_SET_OVERLAPS_FLAG = 0x00000010u,
99
- HB_SUBSET_FLAGS_PASSTHROUGH_UNRECOGNIZED = 0x00000020u,
100
- HB_SUBSET_FLAGS_NOTDEF_OUTLINE = 0x00000040u,
101
- HB_SUBSET_FLAGS_GLYPH_NAMES = 0x00000080u,
102
- HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES = 0x00000100u,
103
- HB_SUBSET_FLAGS_NO_LAYOUT_CLOSURE = 0x00000200u,
104
- HB_SUBSET_FLAGS_OPTIMIZE_IUP_DELTAS = 0x00000400u,
105
- HB_SUBSET_FLAGS_NO_BIDI_CLOSURE = 0x00000800u,
106
- #ifdef HB_EXPERIMENTAL_API
107
- HB_SUBSET_FLAGS_IFTB_REQUIREMENTS = 0x00001000u,
108
- HB_SUBSET_FLAGS_RETAIN_NUM_GLYPHS = 0x00002000u,
109
- #endif
110
- } hb_subset_flags_t;
111
-
112
- /**
113
- * hb_subset_sets_t:
114
- * @HB_SUBSET_SETS_GLYPH_INDEX: the set of glyph indexes to retain in the subset.
115
- * @HB_SUBSET_SETS_UNICODE: the set of unicode codepoints to retain in the subset.
116
- * @HB_SUBSET_SETS_NO_SUBSET_TABLE_TAG: the set of table tags which specifies tables that should not be
117
- * subsetted.
118
- * @HB_SUBSET_SETS_DROP_TABLE_TAG: the set of table tags which specifies tables which will be dropped
119
- * in the subset.
120
- * @HB_SUBSET_SETS_NAME_ID: the set of name ids that will be retained.
121
- * @HB_SUBSET_SETS_NAME_LANG_ID: the set of name lang ids that will be retained.
122
- * @HB_SUBSET_SETS_LAYOUT_FEATURE_TAG: the set of layout feature tags that will be retained
123
- * in the subset.
124
- * @HB_SUBSET_SETS_LAYOUT_SCRIPT_TAG: the set of layout script tags that will be retained
125
- * in the subset. Defaults to all tags. Since: 5.0.0
126
- *
127
- * List of sets that can be configured on the subset input.
128
- *
129
- * Since: 2.9.1
130
- **/
131
- typedef enum {
132
- HB_SUBSET_SETS_GLYPH_INDEX = 0,
133
- HB_SUBSET_SETS_UNICODE,
134
- HB_SUBSET_SETS_NO_SUBSET_TABLE_TAG,
135
- HB_SUBSET_SETS_DROP_TABLE_TAG,
136
- HB_SUBSET_SETS_NAME_ID,
137
- HB_SUBSET_SETS_NAME_LANG_ID,
138
- HB_SUBSET_SETS_LAYOUT_FEATURE_TAG,
139
- HB_SUBSET_SETS_LAYOUT_SCRIPT_TAG,
140
- } hb_subset_sets_t;
141
-
142
- HB_EXTERN hb_subset_input_t *
143
- hb_subset_input_create_or_fail (void);
144
-
145
- HB_EXTERN hb_subset_input_t *
146
- hb_subset_input_reference (hb_subset_input_t *input);
147
-
148
- HB_EXTERN void
149
- hb_subset_input_destroy (hb_subset_input_t *input);
150
-
151
- HB_EXTERN hb_bool_t
152
- hb_subset_input_set_user_data (hb_subset_input_t *input,
153
- hb_user_data_key_t *key,
154
- void * data,
155
- hb_destroy_func_t destroy,
156
- hb_bool_t replace);
157
-
158
- HB_EXTERN void *
159
- hb_subset_input_get_user_data (const hb_subset_input_t *input,
160
- hb_user_data_key_t *key);
161
-
162
- HB_EXTERN void
163
- hb_subset_input_keep_everything (hb_subset_input_t *input);
164
-
165
- HB_EXTERN hb_set_t *
166
- hb_subset_input_unicode_set (hb_subset_input_t *input);
167
-
168
- HB_EXTERN hb_set_t *
169
- hb_subset_input_glyph_set (hb_subset_input_t *input);
170
-
171
- HB_EXTERN hb_set_t *
172
- hb_subset_input_set (hb_subset_input_t *input, hb_subset_sets_t set_type);
173
-
174
- HB_EXTERN hb_map_t*
175
- hb_subset_input_old_to_new_glyph_mapping (hb_subset_input_t *input);
176
-
177
- HB_EXTERN hb_subset_flags_t
178
- hb_subset_input_get_flags (hb_subset_input_t *input);
179
-
180
- HB_EXTERN void
181
- hb_subset_input_set_flags (hb_subset_input_t *input,
182
- unsigned value);
183
-
184
- HB_EXTERN hb_bool_t
185
- hb_subset_input_pin_all_axes_to_default (hb_subset_input_t *input,
186
- hb_face_t *face);
187
-
188
- HB_EXTERN hb_bool_t
189
- hb_subset_input_pin_axis_to_default (hb_subset_input_t *input,
190
- hb_face_t *face,
191
- hb_tag_t axis_tag);
192
-
193
- HB_EXTERN hb_bool_t
194
- hb_subset_input_pin_axis_location (hb_subset_input_t *input,
195
- hb_face_t *face,
196
- hb_tag_t axis_tag,
197
- float axis_value);
198
-
199
- HB_EXTERN hb_bool_t
200
- hb_subset_input_get_axis_range (hb_subset_input_t *input,
201
- hb_tag_t axis_tag,
202
- float *axis_min_value,
203
- float *axis_max_value,
204
- float *axis_def_value);
205
-
206
- HB_EXTERN hb_bool_t
207
- hb_subset_input_set_axis_range (hb_subset_input_t *input,
208
- hb_face_t *face,
209
- hb_tag_t axis_tag,
210
- float axis_min_value,
211
- float axis_max_value,
212
- float axis_def_value);
213
-
214
- HB_EXTERN hb_bool_t
215
- hb_subset_axis_range_from_string (const char *str, int len,
216
- float *axis_min_value,
217
- float *axis_max_value,
218
- float *axis_def_value);
219
-
220
- HB_EXTERN void
221
- hb_subset_axis_range_to_string (hb_subset_input_t *input,
222
- hb_tag_t axis_tag,
223
- char *buf,
224
- unsigned size);
225
-
226
- #ifdef HB_EXPERIMENTAL_API
227
- HB_EXTERN hb_bool_t
228
- hb_subset_input_override_name_table (hb_subset_input_t *input,
229
- hb_ot_name_id_t name_id,
230
- unsigned platform_id,
231
- unsigned encoding_id,
232
- unsigned language_id,
233
- const char *name_str,
234
- int str_len);
235
-
236
-
237
- /*
238
- * Raw outline data access
239
- */
240
-
241
- HB_EXTERN hb_blob_t*
242
- hb_subset_cff_get_charstring_data (hb_face_t* face, hb_codepoint_t glyph_index);
243
-
244
- HB_EXTERN hb_blob_t*
245
- hb_subset_cff_get_charstrings_index (hb_face_t* face);
246
-
247
- HB_EXTERN hb_blob_t*
248
- hb_subset_cff2_get_charstring_data (hb_face_t* face, hb_codepoint_t glyph_index);
249
-
250
- HB_EXTERN hb_blob_t*
251
- hb_subset_cff2_get_charstrings_index (hb_face_t* face);
252
- #endif
253
-
254
- HB_EXTERN hb_face_t *
255
- hb_subset_preprocess (hb_face_t *source);
256
-
257
- HB_EXTERN hb_face_t *
258
- hb_subset_or_fail (hb_face_t *source, const hb_subset_input_t *input);
259
-
260
- HB_EXTERN hb_face_t *
261
- hb_subset_plan_execute_or_fail (hb_subset_plan_t *plan);
262
-
263
- HB_EXTERN hb_subset_plan_t *
264
- hb_subset_plan_create_or_fail (hb_face_t *face,
265
- const hb_subset_input_t *input);
266
-
267
- HB_EXTERN void
268
- hb_subset_plan_destroy (hb_subset_plan_t *plan);
269
-
270
- HB_EXTERN hb_map_t *
271
- hb_subset_plan_old_to_new_glyph_mapping (const hb_subset_plan_t *plan);
272
-
273
- HB_EXTERN hb_map_t *
274
- hb_subset_plan_new_to_old_glyph_mapping (const hb_subset_plan_t *plan);
275
-
276
- HB_EXTERN hb_map_t *
277
- hb_subset_plan_unicode_to_old_glyph_mapping (const hb_subset_plan_t *plan);
278
-
279
-
280
- HB_EXTERN hb_subset_plan_t *
281
- hb_subset_plan_reference (hb_subset_plan_t *plan);
282
-
283
- HB_EXTERN hb_bool_t
284
- hb_subset_plan_set_user_data (hb_subset_plan_t *plan,
285
- hb_user_data_key_t *key,
286
- void *data,
287
- hb_destroy_func_t destroy,
288
- hb_bool_t replace);
289
-
290
- HB_EXTERN void *
291
- hb_subset_plan_get_user_data (const hb_subset_plan_t *plan,
292
- hb_user_data_key_t *key);
293
-
294
-
295
- HB_END_DECLS
296
-
297
- #endif /* HB_SUBSET_H */
@@ -1,218 +0,0 @@
1
- /*
2
- * H.265 video codec.
3
- * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de>
4
- *
5
- * Authors: Dirk Farin <farin@struktur.de>
6
- *
7
- * This file is part of libde265.
8
- *
9
- * libde265 is free software: you can redistribute it and/or modify
10
- * it under the terms of the GNU Lesser General Public License as
11
- * published by the Free Software Foundation, either version 3 of
12
- * the License, or (at your option) any later version.
13
- *
14
- * libde265 is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU Lesser General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU Lesser General Public License
20
- * along with libde265. If not, see <http://www.gnu.org/licenses/>.
21
- */
22
-
23
- #ifndef EN265_H
24
- #define EN265_H
25
-
26
- #ifdef __cplusplus
27
- extern "C" {
28
- #endif
29
-
30
- #include <libde265/de265.h>
31
-
32
-
33
- // ========== encoder context ==========
34
-
35
- struct en265_encoder_context; // private structure
36
-
37
- /* Get a new encoder context. Must be freed with en265_free_encoder(). */
38
- LIBDE265_API en265_encoder_context* en265_new_encoder(void);
39
-
40
- /* Free encoder context. May only be called once on a context. */
41
- LIBDE265_API de265_error en265_free_encoder(en265_encoder_context*);
42
-
43
- /* The alloc_userdata pointer will be given to the release_func(). */
44
- /*
45
- LIBDE265_API void en265_set_image_release_function(en265_encoder_context*,
46
- void (*release_func)(en265_encoder_context*,
47
- struct de265_image*,
48
- void* userdata),
49
- void* alloc_userdata);
50
- */
51
-
52
- // ========== encoder parameters ==========
53
-
54
- LIBDE265_API de265_error en265_set_parameter_bool(en265_encoder_context*,
55
- const char* parametername,int value);
56
- LIBDE265_API de265_error en265_set_parameter_int(en265_encoder_context*,
57
- const char* parametername,int value);
58
- LIBDE265_API de265_error en265_set_parameter_string(en265_encoder_context*,
59
- const char* parametername,const char* value);
60
- LIBDE265_API de265_error en265_set_parameter_choice(en265_encoder_context*,
61
- const char* parametername,const char* value);
62
-
63
-
64
- LIBDE265_API const char** en265_list_parameters(en265_encoder_context*);
65
-
66
- enum en265_parameter_type {
67
- en265_parameter_bool,
68
- en265_parameter_int,
69
- en265_parameter_string,
70
- en265_parameter_choice
71
- };
72
-
73
- LIBDE265_API enum en265_parameter_type en265_get_parameter_type(en265_encoder_context*,
74
- const char* parametername);
75
-
76
- LIBDE265_API const char** en265_list_parameter_choices(en265_encoder_context*,
77
- const char* parametername);
78
-
79
-
80
- // --- convenience functions for command-line parameters ---
81
-
82
- LIBDE265_API de265_error en265_parse_command_line_parameters(en265_encoder_context*,
83
- int* argc, char** argv);
84
- LIBDE265_API void en265_show_parameters(en265_encoder_context*);
85
-
86
-
87
-
88
- // ========== encoding loop ==========
89
-
90
- LIBDE265_API de265_error en265_start_encoder(en265_encoder_context*, int number_of_threads);
91
-
92
- // If we have provided our own memory release function, no image memory will be allocated.
93
- LIBDE265_API struct de265_image* en265_allocate_image(en265_encoder_context*,
94
- int width, int height,
95
- enum de265_chroma chroma,
96
- de265_PTS pts, void* image_userdata);
97
-
98
- LIBDE265_API void* de265_alloc_image_plane(struct de265_image* img, int cIdx,
99
- void* inputdata, int inputstride, void *userdata);
100
- LIBDE265_API void de265_free_image_plane(struct de265_image* img, int cIdx);
101
-
102
-
103
- // Request a specification of the image memory layout for an image of the specified dimensions.
104
- LIBDE265_API void en265_get_image_spec(en265_encoder_context*,
105
- int width, int height, enum de265_chroma chroma,
106
- struct de265_image_spec* out_spec);
107
-
108
- // Image memory layout specification for an image returned by en265_allocate_image().
109
- /* TODO: do we need this?
110
- LIBDE265_API void de265_get_image_spec_from_image(de265_image* img, struct de265_image_spec* spec);
111
- */
112
-
113
-
114
- LIBDE265_API de265_error en265_push_image(en265_encoder_context*,
115
- struct de265_image*); // non-blocking
116
-
117
- LIBDE265_API de265_error en265_push_eof(en265_encoder_context*);
118
-
119
- // block when there are more than max_input_images in the input queue
120
- LIBDE265_API de265_error en265_block_on_input_queue_length(en265_encoder_context*,
121
- int max_pending_images,
122
- int timeout_ms);
123
-
124
- LIBDE265_API de265_error en265_trim_input_queue(en265_encoder_context*, int max_pending_images);
125
-
126
- LIBDE265_API int en265_current_input_queue_length(en265_encoder_context*);
127
-
128
- // Run encoder in main thread. Only use this when not using background threads.
129
- LIBDE265_API de265_error en265_encode(en265_encoder_context*);
130
-
131
- enum en265_encoder_state
132
- {
133
- EN265_STATE_IDLE,
134
- EN265_STATE_WAITING_FOR_INPUT,
135
- EN265_STATE_WORKING,
136
- EN265_STATE_OUTPUT_QUEUE_FULL,
137
- EN265_STATE_EOS
138
- };
139
-
140
-
141
- LIBDE265_API enum en265_encoder_state en265_get_encoder_state(en265_encoder_context*);
142
-
143
-
144
- enum en265_packet_content_type {
145
- EN265_PACKET_VPS,
146
- EN265_PACKET_SPS,
147
- EN265_PACKET_PPS,
148
- EN265_PACKET_SEI,
149
- EN265_PACKET_SLICE,
150
- EN265_PACKET_SKIPPED_IMAGE
151
- };
152
-
153
-
154
- enum en265_nal_unit_type {
155
- EN265_NUT_TRAIL_N = 0,
156
- EN265_NUT_TRAIL_R = 1,
157
- EN265_NUT_TSA_N = 2,
158
- EN265_NUT_TSA_R = 3,
159
- EN265_NUT_STSA_N = 4,
160
- EN265_NUT_STSA_R = 5,
161
- EN265_NUT_RADL_N = 6,
162
- EN265_NUT_RADL_R = 7,
163
- EN265_NUT_RASL_N = 8,
164
- EN265_NUT_RASL_R = 9,
165
- EN265_NUT_BLA_W_LP = 16,
166
- EN265_NUT_BLA_W_RADL= 17,
167
- EN265_NUT_BLA_N_LP = 18,
168
- EN265_NUT_IDR_W_RADL= 19,
169
- EN265_NUT_IDR_N_LP = 20,
170
- EN265_NUT_CRA = 21,
171
- EN265_NUT_VPS = 32,
172
- EN265_NUT_SPS = 33,
173
- EN265_NUT_PPS = 34,
174
- EN265_NUT_AUD = 35,
175
- EN265_NUT_EOS = 36,
176
- EN265_NUT_EOB = 37,
177
- EN265_NUT_FD = 38,
178
- EN265_NUT_PREFIX_SEI = 39,
179
- EN265_NUT_SUFFIX_SEI = 40
180
- };
181
-
182
-
183
- struct en265_packet
184
- {
185
- int version; // currently: 1
186
-
187
- const uint8_t* data;
188
- int length;
189
-
190
- int frame_number;
191
-
192
- enum en265_packet_content_type content_type;
193
- char complete_picture : 1;
194
- char final_slice : 1;
195
- char dependent_slice : 1;
196
-
197
- enum en265_nal_unit_type nal_unit_type;
198
- unsigned char nuh_layer_id;
199
- unsigned char nuh_temporal_id;
200
-
201
- en265_encoder_context* encoder_context;
202
-
203
- const struct de265_image* input_image;
204
- const struct de265_image* reconstruction;
205
- };
206
-
207
- // timeout_ms - timeout in milliseconds. 0 - no timeout, -1 - block forever
208
- LIBDE265_API struct en265_packet* en265_get_packet(en265_encoder_context*, int timeout_ms);
209
- LIBDE265_API void en265_free_packet(en265_encoder_context*, struct en265_packet*);
210
-
211
- LIBDE265_API int en265_number_of_queued_packets(en265_encoder_context*);
212
-
213
- #ifdef __cplusplus
214
- }
215
- #endif
216
-
217
-
218
- #endif