@img/sharp-libvips-dev 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/README.md +1 -2
  2. package/include/aom/aom_decoder.h +1 -1
  3. package/include/aom/aom_encoder.h +7 -1
  4. package/include/aom/aom_image.h +24 -12
  5. package/include/aom/aom_integer.h +3 -3
  6. package/include/aom/aomcx.h +15 -0
  7. package/include/aom/aomdx.h +5 -2
  8. package/include/archive.h +7 -5
  9. package/include/archive_entry.h +5 -3
  10. package/include/cgif.h +3 -0
  11. package/include/expat.h +21 -10
  12. package/include/expat_config.h +11 -5
  13. package/include/ffi.h +12 -25
  14. package/include/freetype2/freetype/config/ftoption.h +2 -2
  15. package/include/fribidi/fribidi-config.h +2 -2
  16. package/include/fribidi/fribidi-unicode-version.h +3 -3
  17. package/include/gio-unix-2.0/gio/gfiledescriptorbased.h +3 -2
  18. package/include/glib-2.0/gio/gappinfo.h +40 -25
  19. package/include/glib-2.0/gio/gapplication.h +6 -0
  20. package/include/glib-2.0/gio/gasyncresult.h +1 -1
  21. package/include/glib-2.0/gio/gconverter.h +5 -0
  22. package/include/glib-2.0/gio/gdbusintrospection.h +1 -1
  23. package/include/glib-2.0/gio/gfile.h +16 -0
  24. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  25. package/include/glib-2.0/gio/giotypes.h +0 -1
  26. package/include/glib-2.0/gio/gsettings.h +8 -0
  27. package/include/glib-2.0/gio/gvfs.h +2 -2
  28. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  29. package/include/glib-2.0/girepository/giarginfo.h +23 -6
  30. package/include/glib-2.0/girepository/gibaseinfo.h +44 -18
  31. package/include/glib-2.0/girepository/gicallableinfo.h +26 -16
  32. package/include/glib-2.0/girepository/gicallbackinfo.h +17 -2
  33. package/include/glib-2.0/girepository/giconstantinfo.h +19 -4
  34. package/include/glib-2.0/girepository/gienuminfo.h +20 -21
  35. package/include/glib-2.0/girepository/gifieldinfo.h +22 -7
  36. package/include/glib-2.0/girepository/giflagsinfo.h +60 -0
  37. package/include/glib-2.0/girepository/gifunctioninfo.h +22 -7
  38. package/include/glib-2.0/girepository/giinterfaceinfo.h +33 -18
  39. package/include/glib-2.0/girepository/giobjectinfo.h +41 -26
  40. package/include/glib-2.0/girepository/gipropertyinfo.h +18 -3
  41. package/include/glib-2.0/girepository/giregisteredtypeinfo.h +22 -11
  42. package/include/glib-2.0/girepository/girepository-autocleanups.h +56 -0
  43. package/include/glib-2.0/girepository/girepository.h +53 -62
  44. package/include/glib-2.0/girepository/girffi.h +8 -7
  45. package/include/glib-2.0/girepository/gisignalinfo.h +18 -3
  46. package/include/glib-2.0/girepository/gistructinfo.h +26 -11
  47. package/include/glib-2.0/girepository/gitypeinfo.h +29 -16
  48. package/include/glib-2.0/girepository/gitypelib.h +9 -13
  49. package/include/glib-2.0/girepository/gitypes.h +52 -104
  50. package/include/glib-2.0/girepository/giunioninfo.h +28 -12
  51. package/include/glib-2.0/girepository/giunresolvedinfo.h +17 -2
  52. package/include/glib-2.0/girepository/givalueinfo.h +65 -0
  53. package/include/glib-2.0/girepository/givfuncinfo.h +23 -8
  54. package/include/glib-2.0/glib/deprecated/gthread.h +9 -5
  55. package/include/glib-2.0/glib/gbitlock.h +31 -0
  56. package/include/glib-2.0/glib/gbookmarkfile.h +1 -1
  57. package/include/glib-2.0/glib/giochannel.h +2 -2
  58. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  59. package/include/glib-2.0/glib/gmacros.h +12 -5
  60. package/include/glib-2.0/glib/gmain.h +93 -7
  61. package/include/glib-2.0/glib/gmessages.h +8 -0
  62. package/include/glib-2.0/glib/gqsort.h +8 -1
  63. package/include/glib-2.0/glib/gslice.h +2 -0
  64. package/include/glib-2.0/glib/gstrfuncs.h +24 -30
  65. package/include/glib-2.0/glib/gstrvbuilder.h +3 -0
  66. package/include/glib-2.0/glib/gthread.h +191 -3
  67. package/include/glib-2.0/glib/gunicode.h +1 -1
  68. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  69. package/include/glib-2.0/glib-unix.h +7 -1
  70. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  71. package/include/glib-2.0/gobject/genums.h +6 -6
  72. package/include/glib-2.0/gobject/glib-types.h +11 -0
  73. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  74. package/include/glib-2.0/gobject/gsignal.h +16 -6
  75. package/include/glib-2.0/gobject/gtype.h +6 -6
  76. package/include/harfbuzz/hb-buffer.h +6 -0
  77. package/include/harfbuzz/hb-common.h +6 -9
  78. package/include/harfbuzz/hb-cplusplus.hh +8 -11
  79. package/include/harfbuzz/hb-subset.h +17 -4
  80. package/include/harfbuzz/hb-version.h +3 -3
  81. package/include/hwy/abort.h +28 -0
  82. package/include/hwy/aligned_allocator.h +218 -6
  83. package/include/hwy/base.h +1935 -512
  84. package/include/hwy/cache_control.h +24 -6
  85. package/include/hwy/detect_compiler_arch.h +105 -10
  86. package/include/hwy/detect_targets.h +146 -37
  87. package/include/hwy/foreach_target.h +36 -1
  88. package/include/hwy/highway.h +222 -50
  89. package/include/hwy/ops/arm_neon-inl.h +2055 -894
  90. package/include/hwy/ops/arm_sve-inl.h +1476 -348
  91. package/include/hwy/ops/emu128-inl.h +711 -623
  92. package/include/hwy/ops/generic_ops-inl.h +4431 -2157
  93. package/include/hwy/ops/inside-inl.h +691 -0
  94. package/include/hwy/ops/ppc_vsx-inl.h +2186 -673
  95. package/include/hwy/ops/rvv-inl.h +1556 -536
  96. package/include/hwy/ops/scalar-inl.h +353 -233
  97. package/include/hwy/ops/set_macros-inl.h +171 -23
  98. package/include/hwy/ops/shared-inl.h +198 -56
  99. package/include/hwy/ops/wasm_128-inl.h +283 -244
  100. package/include/hwy/ops/x86_128-inl.h +3673 -1357
  101. package/include/hwy/ops/x86_256-inl.h +1737 -663
  102. package/include/hwy/ops/x86_512-inl.h +1697 -500
  103. package/include/hwy/per_target.h +4 -0
  104. package/include/hwy/profiler.h +648 -0
  105. package/include/hwy/robust_statistics.h +2 -2
  106. package/include/hwy/targets.h +40 -32
  107. package/include/hwy/timer-inl.h +3 -3
  108. package/include/hwy/timer.h +16 -1
  109. package/include/libheif/heif.h +170 -15
  110. package/include/libheif/heif_items.h +237 -0
  111. package/include/libheif/heif_properties.h +38 -2
  112. package/include/libheif/heif_regions.h +1 -1
  113. package/include/libheif/heif_version.h +2 -2
  114. package/include/libpng16/png.h +32 -29
  115. package/include/libpng16/pngconf.h +2 -2
  116. package/include/libpng16/pnglibconf.h +8 -3
  117. package/include/librsvg-2.0/librsvg/rsvg-cairo.h +1 -1
  118. package/include/librsvg-2.0/librsvg/rsvg-features.h +3 -4
  119. package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +235 -0
  120. package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
  121. package/include/librsvg-2.0/librsvg/rsvg.h +55 -176
  122. package/include/libxml2/libxml/HTMLparser.h +12 -19
  123. package/include/libxml2/libxml/c14n.h +1 -12
  124. package/include/libxml2/libxml/debugXML.h +1 -1
  125. package/include/libxml2/libxml/encoding.h +9 -0
  126. package/include/libxml2/libxml/entities.h +12 -1
  127. package/include/libxml2/libxml/hash.h +19 -0
  128. package/include/libxml2/libxml/list.h +2 -2
  129. package/include/libxml2/libxml/nanohttp.h +17 -0
  130. package/include/libxml2/libxml/parser.h +73 -58
  131. package/include/libxml2/libxml/parserInternals.h +9 -1
  132. package/include/libxml2/libxml/pattern.h +6 -0
  133. package/include/libxml2/libxml/tree.h +32 -12
  134. package/include/libxml2/libxml/uri.h +11 -0
  135. package/include/libxml2/libxml/valid.h +29 -2
  136. package/include/libxml2/libxml/xinclude.h +7 -0
  137. package/include/libxml2/libxml/xmlIO.h +21 -5
  138. package/include/libxml2/libxml/xmlerror.h +14 -0
  139. package/include/libxml2/libxml/xmlexports.h +111 -15
  140. package/include/libxml2/libxml/xmlmemory.h +8 -45
  141. package/include/libxml2/libxml/xmlreader.h +2 -0
  142. package/include/libxml2/libxml/xmlsave.h +5 -0
  143. package/include/libxml2/libxml/xmlunicode.h +165 -1
  144. package/include/libxml2/libxml/xmlversion.h +15 -179
  145. package/include/libxml2/libxml/xmlwriter.h +1 -0
  146. package/include/libxml2/libxml/xpath.h +4 -0
  147. package/include/pango-1.0/pango/pango-features.h +2 -2
  148. package/include/pango-1.0/pango/pango-fontmap.h +7 -0
  149. package/include/pango-1.0/pango/pango-item.h +4 -2
  150. package/include/pango-1.0/pango/pango-version-macros.h +25 -0
  151. package/include/pango-1.0/pango/pangofc-font.h +2 -1
  152. package/include/pixman-1/pixman-version.h +2 -2
  153. package/include/png.h +32 -29
  154. package/include/pngconf.h +2 -2
  155. package/include/pnglibconf.h +8 -3
  156. package/include/vips/connection.h +9 -3
  157. package/include/vips/util.h +1 -11
  158. package/include/vips/version.h +4 -4
  159. package/include/webp/decode.h +58 -56
  160. package/include/webp/demux.h +25 -21
  161. package/include/webp/encode.h +44 -39
  162. package/include/webp/mux.h +76 -15
  163. package/include/webp/mux_types.h +2 -1
  164. package/include/webp/sharpyuv/sharpyuv.h +77 -8
  165. package/include/webp/types.h +29 -8
  166. package/include/zconf.h +1 -1
  167. package/include/zlib.h +12 -12
  168. package/package.json +1 -1
  169. package/versions.json +18 -19
@@ -0,0 +1,235 @@
1
+ /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
+ /* vim: set sw=4 sts=4 expandtab: */
3
+ /*
4
+ rsvg-pixbuf.h: SAX-based renderer for SVG files using GDK-Pixbuf.
5
+
6
+ Copyright (C) 2000 Eazel, Inc.
7
+
8
+ This library is free software; you can redistribute it and/or
9
+ modify it under the terms of the GNU Lesser General Public
10
+ License as published by the Free Software Foundation; either
11
+ version 2.1 of the License, or (at your option) any later version.
12
+
13
+ This library is distributed in the hope that it will be useful,
14
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
+ Lesser General Public License for more details.
17
+
18
+ You should have received a copy of the GNU Lesser General Public
19
+ License along with this library; if not, write to the Free Software
20
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
+
22
+ Author: Raph Levien <raph@artofcode.com>
23
+ */
24
+
25
+ #if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)
26
+ #warning "Including <librsvg/rsvg-pixbuf.h> directly is deprecated."
27
+ #endif
28
+
29
+ #ifndef RSVG_PIXBUF_H
30
+ #define RSVG_PIXBUF_H
31
+
32
+ #include <gdk-pixbuf/gdk-pixbuf.h>
33
+
34
+ G_BEGIN_DECLS
35
+
36
+ /**
37
+ * rsvg_handle_get_pixbuf:
38
+ * @handle: An [class@Rsvg.Handle]
39
+ *
40
+ * Returns the pixbuf loaded by @handle. The pixbuf returned will be reffed, so
41
+ * the caller of this function must assume that ref.
42
+ *
43
+ * API ordering: This function must be called on a fully-loaded @handle. See
44
+ * the section "[API ordering](class.Handle.html#api-ordering)" for details.
45
+ *
46
+ * This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
47
+ * "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
48
+ * beforehand.
49
+ *
50
+ * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error
51
+ * during rendering.
52
+ * Deprecated: 2.58. Use [method@Rsvg.Handle.get_pixbuf_and_error].
53
+ **/
54
+ RSVG_DEPRECATED_FOR(rsvg_handle_get_pixbuf_and_error)
55
+ GdkPixbuf *rsvg_handle_get_pixbuf (RsvgHandle *handle);
56
+
57
+ /**
58
+ * rsvg_handle_get_pixbuf_and_error:
59
+ * @handle: An [class@Rsvg.Handle]
60
+ * @error: return location for a `GError`
61
+ *
62
+ * Returns the pixbuf loaded by @handle. The pixbuf returned will be reffed, so
63
+ * the caller of this function must assume that ref.
64
+ *
65
+ * API ordering: This function must be called on a fully-loaded @handle. See
66
+ * the section "[API ordering](class.Handle.html#api-ordering)" for details.
67
+ *
68
+ * This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
69
+ * "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
70
+ * beforehand.
71
+ *
72
+ * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error
73
+ * during rendering.
74
+ *
75
+ * Since: 2.58
76
+ **/
77
+ RSVG_API
78
+ GdkPixbuf *rsvg_handle_get_pixbuf_and_error (RsvgHandle *handle, GError **error);
79
+
80
+ /**
81
+ * rsvg_handle_get_pixbuf_sub:
82
+ * @handle: An #RsvgHandle
83
+ * @id: (nullable): An element's id within the SVG, starting with "#" (a single
84
+ * hash character), for example, `#layer1`. This notation corresponds to a
85
+ * URL's fragment ID. Alternatively, pass `NULL` to use the whole SVG.
86
+ *
87
+ * Creates a `GdkPixbuf` the same size as the entire SVG loaded into @handle, but
88
+ * only renders the sub-element that has the specified @id (and all its
89
+ * sub-sub-elements recursively). If @id is `NULL`, this function renders the
90
+ * whole SVG.
91
+ *
92
+ * This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
93
+ * "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
94
+ * beforehand.
95
+ *
96
+ * If you need to render an image which is only big enough to fit a particular
97
+ * sub-element of the SVG, consider using [method@Rsvg.Handle.render_element].
98
+ *
99
+ * Element IDs should look like an URL fragment identifier; for example, pass
100
+ * `#foo` (hash `foo`) to get the geometry of the element that
101
+ * has an `id="foo"` attribute.
102
+ *
103
+ * API ordering: This function must be called on a fully-loaded @handle. See
104
+ * the section "[API ordering](class.Handle.html#api-ordering)" for details.
105
+ *
106
+ * Returns: (transfer full) (nullable): a pixbuf, or `NULL` if an error occurs
107
+ * during rendering.
108
+ *
109
+ * Since: 2.14
110
+ **/
111
+ RSVG_API
112
+ GdkPixbuf *rsvg_handle_get_pixbuf_sub (RsvgHandle *handle, const char *id);
113
+
114
+ /* BEGIN deprecated APIs. Do not use! */
115
+
116
+ /**
117
+ * rsvg-pixbuf:
118
+ *
119
+ * Years ago, GNOME and GTK used the gdk-pixbuf library as a general mechanism to load
120
+ * raster images into memory (PNG, JPEG, etc.) and pass them around. The general idiom
121
+ * was, "load this image file and give me a `GdkPixbuf` object", which is basically a pixel
122
+ * buffer. Librsvg supports this kind of interface to load and render SVG documents, but
123
+ * it is deprecated in favor of rendering to Cairo contexts.
124
+ */
125
+
126
+ /**
127
+ * rsvg_pixbuf_from_file:
128
+ * @filename: A file name
129
+ * @error: return location for a `GError`
130
+ *
131
+ * Loads a new `GdkPixbuf` from @filename and returns it. The caller must
132
+ * assume the reference to the reurned pixbuf. If an error occurred, @error is
133
+ * set and `NULL` is returned.
134
+ *
135
+ * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
136
+ * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
137
+ **/
138
+ RSVG_DEPRECATED
139
+ GdkPixbuf *rsvg_pixbuf_from_file (const gchar *filename,
140
+ GError **error);
141
+
142
+ /**
143
+ * rsvg_pixbuf_from_file_at_zoom:
144
+ * @filename: A file name
145
+ * @x_zoom: The horizontal zoom factor
146
+ * @y_zoom: The vertical zoom factor
147
+ * @error: return location for a `GError`
148
+ *
149
+ * Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
150
+ * from the size indicated by the file by a factor of @x_zoom and @y_zoom. The
151
+ * caller must assume the reference to the returned pixbuf. If an error
152
+ * occurred, @error is set and `NULL` is returned.
153
+ *
154
+ * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
155
+ * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
156
+ **/
157
+ RSVG_DEPRECATED
158
+ GdkPixbuf *rsvg_pixbuf_from_file_at_zoom (const gchar *filename,
159
+ double x_zoom,
160
+ double y_zoom,
161
+ GError **error);
162
+
163
+ /**
164
+ * rsvg_pixbuf_from_file_at_size:
165
+ * @filename: A file name
166
+ * @width: The new width, or -1
167
+ * @height: The new height, or -1
168
+ * @error: return location for a `GError`
169
+ *
170
+ * Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
171
+ * from the size indicated to the new size indicated by @width and @height. If
172
+ * both of these are -1, then the default size of the image being loaded is
173
+ * used. The caller must assume the reference to the returned pixbuf. If an
174
+ * error occurred, @error is set and `NULL` is returned.
175
+ *
176
+ * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
177
+ * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
178
+ **/
179
+ RSVG_DEPRECATED
180
+ GdkPixbuf *rsvg_pixbuf_from_file_at_size (const gchar *filename,
181
+ gint width,
182
+ gint height,
183
+ GError **error);
184
+
185
+ /**
186
+ * rsvg_pixbuf_from_file_at_max_size:
187
+ * @filename: A file name
188
+ * @max_width: The requested max width
189
+ * @max_height: The requested max height
190
+ * @error: return location for a `GError`
191
+ *
192
+ * Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is uniformly
193
+ * scaled so that the it fits into a rectangle of size `max_width * max_height`. The
194
+ * caller must assume the reference to the returned pixbuf. If an error occurred,
195
+ * @error is set and `NULL` is returned.
196
+ *
197
+ * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
198
+ * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
199
+ **/
200
+ RSVG_DEPRECATED
201
+ GdkPixbuf *rsvg_pixbuf_from_file_at_max_size (const gchar *filename,
202
+ gint max_width,
203
+ gint max_height,
204
+ GError **error);
205
+ /**
206
+ * rsvg_pixbuf_from_file_at_zoom_with_max:
207
+ * @filename: A file name
208
+ * @x_zoom: The horizontal zoom factor
209
+ * @y_zoom: The vertical zoom factor
210
+ * @max_width: The requested max width
211
+ * @max_height: The requested max height
212
+ * @error: return location for a `GError`
213
+ *
214
+ * Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
215
+ * from the size indicated by the file by a factor of @x_zoom and @y_zoom. If the
216
+ * resulting pixbuf would be larger than max_width/max_heigh it is uniformly scaled
217
+ * down to fit in that rectangle. The caller must assume the reference to the
218
+ * returned pixbuf. If an error occurred, @error is set and `NULL` is returned.
219
+ *
220
+ * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
221
+ * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
222
+ **/
223
+ RSVG_DEPRECATED
224
+ GdkPixbuf *rsvg_pixbuf_from_file_at_zoom_with_max (const gchar *filename,
225
+ double x_zoom,
226
+ double y_zoom,
227
+ gint max_width,
228
+ gint max_height,
229
+ GError **error);
230
+
231
+ /* END deprecated APIs. */
232
+
233
+ G_END_DECLS
234
+
235
+ #endif
@@ -6,8 +6,8 @@
6
6
  #define RSVG_VERSION_H
7
7
 
8
8
  #define LIBRSVG_MAJOR_VERSION (2)
9
- #define LIBRSVG_MINOR_VERSION (57)
10
- #define LIBRSVG_MICRO_VERSION (1)
11
- #define LIBRSVG_VERSION "2.57.1"
9
+ #define LIBRSVG_MINOR_VERSION (58)
10
+ #define LIBRSVG_MICRO_VERSION (93)
11
+ #define LIBRSVG_VERSION "2.58.93"
12
12
 
13
13
  #endif
@@ -1,7 +1,7 @@
1
1
  /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
2
  /* vim: set sw=4 sts=4 expandtab: */
3
3
  /*
4
- rsvg.h: SAX-based renderer for SVG files into a GdkPixbuf.
4
+ rsvg.h: SAX-based renderer for SVG files using Cairo or GDK-Pixbuf.
5
5
 
6
6
  Copyright (C) 2000 Eazel, Inc.
7
7
 
@@ -30,9 +30,6 @@
30
30
  #include <glib-object.h>
31
31
  #include <gio/gio.h>
32
32
 
33
- #include <cairo.h>
34
- #include <gdk-pixbuf/gdk-pixbuf.h>
35
-
36
33
  G_BEGIN_DECLS
37
34
 
38
35
  #ifndef __GTK_DOC_IGNORE__
@@ -207,6 +204,10 @@ GType rsvg_error_get_type (void);
207
204
  * [method@Rsvg.Handle.set_dpi_x_y] on an [class@Rsvg.Handle] to set the DPI before rendering
208
205
  * it.
209
206
  *
207
+ * For historical reasons, the default DPI is 90. Current CSS assumes a default DPI of 96, so
208
+ * you may want to set the DPI of a [class@Rsvg.Handle] immediately after creating it with
209
+ * [method@Rsvg.Handle.set_dpi].
210
+ *
210
211
  * # Rendering
211
212
  *
212
213
  * The preferred way to render a whole SVG document is to use
@@ -255,12 +256,18 @@ GType rsvg_error_get_type (void);
255
256
  * RsvgHandle:dpi-x:
256
257
  *
257
258
  * Horizontal resolution in dots per inch.
259
+ *
260
+ * The default is 90. Note that current CSS assumes a default of 96,
261
+ * so you may want to set it to `96.0` before rendering the handle.
258
262
  */
259
263
 
260
264
  /**
261
265
  * RsvgHandle:dpi-y:
262
266
  *
263
267
  * Horizontal resolution in dots per inch.
268
+ *
269
+ * The default is 90. Note that current CSS assumes a default of 96,
270
+ * so you may want to set it to `96.0` before rendering the handle.
264
271
  */
265
272
 
266
273
  /**
@@ -606,60 +613,6 @@ gboolean rsvg_handle_write (RsvgHandle *handle,
606
613
  RSVG_DEPRECATED_FOR(rsvg_handle_read_stream_sync)
607
614
  gboolean rsvg_handle_close (RsvgHandle *handle, GError **error);
608
615
 
609
- /**
610
- * rsvg_handle_get_pixbuf:
611
- * @handle: An [class@Rsvg.Handle]
612
- *
613
- * Returns the pixbuf loaded by @handle. The pixbuf returned will be reffed, so
614
- * the caller of this function must assume that ref.
615
- *
616
- * API ordering: This function must be called on a fully-loaded @handle. See
617
- * the section "[API ordering](class.Handle.html#api-ordering)" for details.
618
- *
619
- * This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
620
- * "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
621
- * beforehand.
622
- *
623
- * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
624
- * during rendering.
625
- **/
626
- RSVG_API
627
- GdkPixbuf *rsvg_handle_get_pixbuf (RsvgHandle *handle);
628
-
629
- /**
630
- * rsvg_handle_get_pixbuf_sub:
631
- * @handle: An #RsvgHandle
632
- * @id: (nullable): An element's id within the SVG, starting with "#" (a single
633
- * hash character), for example, `#layer1`. This notation corresponds to a
634
- * URL's fragment ID. Alternatively, pass `NULL` to use the whole SVG.
635
- *
636
- * Creates a `GdkPixbuf` the same size as the entire SVG loaded into @handle, but
637
- * only renders the sub-element that has the specified @id (and all its
638
- * sub-sub-elements recursively). If @id is `NULL`, this function renders the
639
- * whole SVG.
640
- *
641
- * This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
642
- * "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
643
- * beforehand.
644
- *
645
- * If you need to render an image which is only big enough to fit a particular
646
- * sub-element of the SVG, consider using [method@Rsvg.Handle.render_element].
647
- *
648
- * Element IDs should look like an URL fragment identifier; for example, pass
649
- * `#foo` (hash `foo`) to get the geometry of the element that
650
- * has an `id="foo"` attribute.
651
- *
652
- * API ordering: This function must be called on a fully-loaded @handle. See
653
- * the section "[API ordering](class.Handle.html#api-ordering)" for details.
654
- *
655
- * Returns: (transfer full) (nullable): a pixbuf, or `NULL` if an error occurs
656
- * during rendering.
657
- *
658
- * Since: 2.14
659
- **/
660
- RSVG_API
661
- GdkPixbuf *rsvg_handle_get_pixbuf_sub (RsvgHandle *handle, const char *id);
662
-
663
616
  /**
664
617
  * rsvg_handle_get_base_uri: (attributes org.gtk.Method.get_property=base-uri)
665
618
  * @handle: A [class@Rsvg.Handle]
@@ -798,9 +751,22 @@ gboolean rsvg_handle_has_sub (RsvgHandle *handle, const char *id);
798
751
  * @RSVG_UNIT_MM: millimeters
799
752
  * @RSVG_UNIT_PT: points, or 1/72 inch
800
753
  * @RSVG_UNIT_PC: picas, or 1/6 inch (12 points)
754
+ * @RSVG_UNIT_CH:
801
755
  *
802
756
  * Units for the `RsvgLength` struct. These have the same meaning as [CSS length
803
757
  * units](https://www.w3.org/TR/CSS21/syndata.html#length-units).
758
+ *
759
+ * If you test for the values of this enum, please note that librsvg may add other units in the future
760
+ * as its support for CSS improves. Please make your code handle unknown units gracefully (e.g. with
761
+ * a `default` case in a `switch()` statement).
762
+ *
763
+ */
764
+ /**
765
+ * RSVG_UNIT_CH:
766
+ *
767
+ * advance measure of a '0' character (depends on the text orientation)
768
+ *
769
+ * Since: 2.58
804
770
  */
805
771
  typedef enum {
806
772
  RSVG_UNIT_PERCENT,
@@ -811,7 +777,8 @@ typedef enum {
811
777
  RSVG_UNIT_CM,
812
778
  RSVG_UNIT_MM,
813
779
  RSVG_UNIT_PT,
814
- RSVG_UNIT_PC
780
+ RSVG_UNIT_PC,
781
+ RSVG_UNIT_CH,
815
782
  } RsvgUnit;
816
783
 
817
784
  /**
@@ -919,6 +886,10 @@ void rsvg_handle_get_intrinsic_dimensions (RsvgHandle *handle,
919
886
  * uses the computed value of the `font-size` property for the toplevel
920
887
  * `<svg>` element. In those cases, this function returns `TRUE`.
921
888
  *
889
+ * For historical reasons, the default DPI is 90. Current CSS assumes a default DPI of 96, so
890
+ * you may want to set the DPI of a [class@Rsvg.Handle] immediately after creating it with
891
+ * [method@Rsvg.Handle.set_dpi].
892
+ *
922
893
  * This function is not able to extract the size in pixels directly from the intrinsic
923
894
  * dimensions of the SVG document if the `width` or
924
895
  * `height` are in percentage units (or if they do not exist, in which
@@ -1186,6 +1157,27 @@ gboolean rsvg_handle_set_stylesheet (RsvgHandle *handle,
1186
1157
  gsize css_len,
1187
1158
  GError **error);
1188
1159
 
1160
+ /**
1161
+ * rsvg_handle_set_cancellable_for_rendering:
1162
+ * @handle: A [class@Rsvg.Handle].
1163
+ * @cancellable: A [class@Gio.Cancellable] or `NULL`.
1164
+ *
1165
+ * Sets a cancellable object that can be used to interrupt rendering
1166
+ * while the handle is being rendered in another thread. For example,
1167
+ * you can set a cancellable from your main thread, spawn a thread to
1168
+ * do the rendering, and interrupt the rendering from the main thread
1169
+ * by calling g_cancellable_cancel().
1170
+ *
1171
+ * If rendering is interrupted, the corresponding call to
1172
+ * rsvg_handle_render_document() (or any of the other rendering
1173
+ * functions) will return an error with domain `G_IO_ERROR`, and code
1174
+ * `G_IO_ERROR_CANCELLED`.
1175
+ */
1176
+ RSVG_API
1177
+ void rsvg_handle_set_cancellable_for_rendering (RsvgHandle *handle,
1178
+ GCancellable *cancellable);
1179
+
1180
+
1189
1181
  #ifndef __GTK_DOC_IGNORE__
1190
1182
  /**
1191
1183
  * rsvg_handle_internal_set_testing:
@@ -1284,123 +1276,6 @@ void rsvg_handle_set_size_callback (RsvgHandle *handle,
1284
1276
  gpointer user_data,
1285
1277
  GDestroyNotify user_data_destroy);
1286
1278
 
1287
- /* GdkPixbuf convenience API */
1288
-
1289
- /**
1290
- * rsvg-pixbuf:
1291
- *
1292
- * Years ago, GNOME and GTK used the gdk-pixbuf library as a general mechanism to load
1293
- * raster images into memory (PNG, JPEG, etc.) and pass them around. The general idiom
1294
- * was, "load this image file and give me a `GdkPixbuf` object", which is basically a pixel
1295
- * buffer. Librsvg supports this kind of interface to load and render SVG documents, but
1296
- * it is deprecated in favor of rendering to Cairo contexts.
1297
- */
1298
-
1299
- /**
1300
- * rsvg_pixbuf_from_file:
1301
- * @filename: A file name
1302
- * @error: return location for a `GError`
1303
- *
1304
- * Loads a new `GdkPixbuf` from @filename and returns it. The caller must
1305
- * assume the reference to the reurned pixbuf. If an error occurred, @error is
1306
- * set and `NULL` is returned.
1307
- *
1308
- * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
1309
- * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
1310
- **/
1311
- RSVG_DEPRECATED
1312
- GdkPixbuf *rsvg_pixbuf_from_file (const gchar *filename,
1313
- GError **error);
1314
-
1315
- /**
1316
- * rsvg_pixbuf_from_file_at_zoom:
1317
- * @filename: A file name
1318
- * @x_zoom: The horizontal zoom factor
1319
- * @y_zoom: The vertical zoom factor
1320
- * @error: return location for a `GError`
1321
- *
1322
- * Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
1323
- * from the size indicated by the file by a factor of @x_zoom and @y_zoom. The
1324
- * caller must assume the reference to the returned pixbuf. If an error
1325
- * occurred, @error is set and `NULL` is returned.
1326
- *
1327
- * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
1328
- * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
1329
- **/
1330
- RSVG_DEPRECATED
1331
- GdkPixbuf *rsvg_pixbuf_from_file_at_zoom (const gchar *filename,
1332
- double x_zoom,
1333
- double y_zoom,
1334
- GError **error);
1335
-
1336
- /**
1337
- * rsvg_pixbuf_from_file_at_size:
1338
- * @filename: A file name
1339
- * @width: The new width, or -1
1340
- * @height: The new height, or -1
1341
- * @error: return location for a `GError`
1342
- *
1343
- * Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
1344
- * from the size indicated to the new size indicated by @width and @height. If
1345
- * both of these are -1, then the default size of the image being loaded is
1346
- * used. The caller must assume the reference to the returned pixbuf. If an
1347
- * error occurred, @error is set and `NULL` is returned.
1348
- *
1349
- * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
1350
- * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
1351
- **/
1352
- RSVG_DEPRECATED
1353
- GdkPixbuf *rsvg_pixbuf_from_file_at_size (const gchar *filename,
1354
- gint width,
1355
- gint height,
1356
- GError **error);
1357
-
1358
- /**
1359
- * rsvg_pixbuf_from_file_at_max_size:
1360
- * @filename: A file name
1361
- * @max_width: The requested max width
1362
- * @max_height: The requested max height
1363
- * @error: return location for a `GError`
1364
- *
1365
- * Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is uniformly
1366
- * scaled so that the it fits into a rectangle of size `max_width * max_height`. The
1367
- * caller must assume the reference to the returned pixbuf. If an error occurred,
1368
- * @error is set and `NULL` is returned.
1369
- *
1370
- * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
1371
- * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
1372
- **/
1373
- RSVG_DEPRECATED
1374
- GdkPixbuf *rsvg_pixbuf_from_file_at_max_size (const gchar *filename,
1375
- gint max_width,
1376
- gint max_height,
1377
- GError **error);
1378
- /**
1379
- * rsvg_pixbuf_from_file_at_zoom_with_max:
1380
- * @filename: A file name
1381
- * @x_zoom: The horizontal zoom factor
1382
- * @y_zoom: The vertical zoom factor
1383
- * @max_width: The requested max width
1384
- * @max_height: The requested max height
1385
- * @error: return location for a `GError`
1386
- *
1387
- * Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
1388
- * from the size indicated by the file by a factor of @x_zoom and @y_zoom. If the
1389
- * resulting pixbuf would be larger than max_width/max_heigh it is uniformly scaled
1390
- * down to fit in that rectangle. The caller must assume the reference to the
1391
- * returned pixbuf. If an error occurred, @error is set and `NULL` is returned.
1392
- *
1393
- * Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
1394
- * Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
1395
- **/
1396
- RSVG_DEPRECATED
1397
- GdkPixbuf *rsvg_pixbuf_from_file_at_zoom_with_max (const gchar *filename,
1398
- double x_zoom,
1399
- double y_zoom,
1400
- gint max_width,
1401
- gint max_height,
1402
- GError **error);
1403
-
1404
1279
  /**
1405
1280
  * rsvg_handle_get_title:
1406
1281
  * @handle: An [class@Rsvg.Handle]
@@ -1451,6 +1326,10 @@ G_END_DECLS
1451
1326
  #include <librsvg/rsvg-version.h>
1452
1327
  #include <librsvg/rsvg-cairo.h>
1453
1328
 
1329
+ #if LIBRSVG_CHECK_FEATURE(PIXBUF)
1330
+ #include <librsvg/rsvg-pixbuf.h>
1331
+ #endif
1332
+
1454
1333
  #undef __RSVG_RSVG_H_INSIDE__
1455
1334
 
1456
1335
  #endif /* RSVG_H */
@@ -80,22 +80,17 @@ struct _htmlEntityDesc {
80
80
  const char *desc; /* the description */
81
81
  };
82
82
 
83
- /** DOC_DISABLE */
84
83
  #ifdef LIBXML_SAX1_ENABLED
85
- #define XML_GLOBALS_HTML \
86
- XML_OP(htmlDefaultSAXHandler, xmlSAXHandlerV1, XML_DEPRECATED)
87
- #else
88
- #define XML_GLOBALS_HTML
89
- #endif
90
84
 
91
- #define XML_OP XML_DECLARE_GLOBAL
92
- XML_GLOBALS_HTML
93
- #undef XML_OP
85
+ XML_DEPRECATED
86
+ XMLPUBVAR const xmlSAXHandlerV1 htmlDefaultSAXHandler;
94
87
 
95
- #if defined(LIBXML_THREAD_ENABLED) && !defined(XML_GLOBALS_NO_REDEFINITION)
96
- #define htmlDefaultSAXHandler XML_GLOBAL_MACRO(htmlDefaultSAXHandler)
88
+ #ifdef LIBXML_THREAD_ENABLED
89
+ XML_DEPRECATED
90
+ XMLPUBFUN const xmlSAXHandlerV1 *__htmlDefaultSAXHandler(void);
97
91
  #endif
98
- /** DOC_ENABLE */
92
+
93
+ #endif /* LIBXML_SAX1_ENABLED */
99
94
 
100
95
  /*
101
96
  * There is only few public functions.
@@ -173,6 +168,7 @@ XMLPUBFUN int
173
168
  int *inlen, int quoteChar);
174
169
  XMLPUBFUN int
175
170
  htmlIsScriptAttribute(const xmlChar *name);
171
+ XML_DEPRECATED
176
172
  XMLPUBFUN int
177
173
  htmlHandleOmittedElem(int val);
178
174
 
@@ -251,6 +247,9 @@ XMLPUBFUN htmlDocPtr
251
247
  const char *URL,
252
248
  const char *encoding,
253
249
  int options);
250
+ XMLPUBFUN htmlDocPtr
251
+ htmlCtxtParseDocument (htmlParserCtxtPtr ctxt,
252
+ xmlParserInputPtr input);
254
253
  XMLPUBFUN htmlDocPtr
255
254
  htmlCtxtReadDoc (xmlParserCtxtPtr ctxt,
256
255
  const xmlChar *cur,
@@ -300,7 +299,7 @@ typedef enum {
300
299
  XMLPUBFUN htmlStatus htmlAttrAllowed(const htmlElemDesc*, const xmlChar*, int) ;
301
300
  XMLPUBFUN int htmlElementAllowedHere(const htmlElemDesc*, const xmlChar*) ;
302
301
  XMLPUBFUN htmlStatus htmlElementStatusHere(const htmlElemDesc*, const htmlElemDesc*) ;
303
- XMLPUBFUN htmlStatus htmlNodeStatus(const htmlNodePtr, int) ;
302
+ XMLPUBFUN htmlStatus htmlNodeStatus(htmlNodePtr, int) ;
304
303
  /**
305
304
  * htmlDefaultSubelement:
306
305
  * @elt: HTML element
@@ -333,11 +332,5 @@ XMLPUBFUN htmlStatus htmlNodeStatus(const htmlNodePtr, int) ;
333
332
  }
334
333
  #endif
335
334
 
336
- #else /* LIBXML_HTML_ENABLED */
337
-
338
- /** DOC_DISABLE */
339
- #define XML_GLOBALS_HTML
340
- /** DOC_ENABLE */
341
-
342
335
  #endif /* LIBXML_HTML_ENABLED */
343
336
  #endif /* __HTML_PARSER_H__ */
@@ -39,18 +39,7 @@ extern "C" {
39
39
  * a) default attributes (if any) are added to all nodes
40
40
  * b) all character and parsed entity references are resolved
41
41
  * In order to achieve this in libxml2 the document MUST be loaded with
42
- * following global settings:
43
- *
44
- * xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
45
- * xmlSubstituteEntitiesDefault(1);
46
- *
47
- * or corresponding parser context setting:
48
- * xmlParserCtxtPtr ctxt;
49
- *
50
- * ...
51
- * ctxt->loadsubset = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
52
- * ctxt->replaceEntities = 1;
53
- * ...
42
+ * following options: XML_PARSE_DTDATTR | XML_PARSE_NOENT
54
43
  */
55
44
 
56
45
  /*
@@ -203,7 +203,7 @@ XMLPUBFUN int
203
203
  */
204
204
  XMLPUBFUN void
205
205
  xmlShell (xmlDocPtr doc,
206
- char *filename,
206
+ const char *filename,
207
207
  xmlShellReadlineFunc input,
208
208
  FILE *output);
209
209
 
@@ -162,6 +162,13 @@ XMLPUBFUN void
162
162
  xmlCleanupCharEncodingHandlers (void);
163
163
  XMLPUBFUN void
164
164
  xmlRegisterCharEncodingHandler (xmlCharEncodingHandlerPtr handler);
165
+ XMLPUBFUN int
166
+ xmlLookupCharEncodingHandler (xmlCharEncoding enc,
167
+ xmlCharEncodingHandlerPtr *out);
168
+ XMLPUBFUN int
169
+ xmlOpenCharEncodingHandler (const char *name,
170
+ int output,
171
+ xmlCharEncodingHandlerPtr *out);
165
172
  XMLPUBFUN xmlCharEncodingHandlerPtr
166
173
  xmlGetCharEncodingHandler (xmlCharEncoding enc);
167
174
  XMLPUBFUN xmlCharEncodingHandlerPtr
@@ -195,7 +202,9 @@ XMLPUBFUN xmlCharEncoding
195
202
  xmlDetectCharEncoding (const unsigned char *in,
196
203
  int len);
197
204
 
205
+ /** DOC_DISABLE */
198
206
  struct _xmlBuffer;
207
+ /** DOC_ENABLE */
199
208
  XMLPUBFUN int
200
209
  xmlCharEncOutFunc (xmlCharEncodingHandler *handler,
201
210
  struct _xmlBuffer *out,