@revizly/sharp-libvips-dev 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/include/aom/aom_decoder.h +1 -1
- package/include/aom/aom_encoder.h +7 -1
- package/include/aom/aom_image.h +24 -12
- package/include/aom/aom_integer.h +3 -3
- package/include/aom/aomcx.h +15 -0
- package/include/aom/aomdx.h +5 -2
- package/include/archive.h +7 -5
- package/include/archive_entry.h +5 -3
- package/include/cgif.h +3 -0
- package/include/fribidi/fribidi-config.h +2 -2
- package/include/fribidi/fribidi-unicode-version.h +3 -3
- package/include/harfbuzz/hb-buffer.h +6 -0
- package/include/harfbuzz/hb-common.h +5 -2
- package/include/harfbuzz/hb-cplusplus.hh +0 -3
- package/include/harfbuzz/hb-subset.h +5 -6
- package/include/harfbuzz/hb-version.h +3 -3
- package/include/hwy/abort.h +28 -0
- package/include/hwy/aligned_allocator.h +48 -1
- package/include/hwy/base.h +235 -34
- package/include/hwy/detect_compiler_arch.h +84 -10
- package/include/hwy/detect_targets.h +95 -29
- package/include/hwy/foreach_target.h +12 -1
- package/include/hwy/highway.h +205 -50
- package/include/hwy/ops/arm_neon-inl.h +841 -99
- package/include/hwy/ops/arm_sve-inl.h +413 -141
- package/include/hwy/ops/emu128-inl.h +373 -360
- package/include/hwy/ops/generic_ops-inl.h +804 -401
- package/include/hwy/ops/inside-inl.h +691 -0
- package/include/hwy/ops/ppc_vsx-inl.h +456 -166
- package/include/hwy/ops/rvv-inl.h +537 -249
- package/include/hwy/ops/scalar-inl.h +169 -79
- package/include/hwy/ops/set_macros-inl.h +106 -18
- package/include/hwy/ops/shared-inl.h +23 -0
- package/include/hwy/ops/wasm_128-inl.h +130 -108
- package/include/hwy/ops/x86_128-inl.h +1892 -577
- package/include/hwy/ops/x86_256-inl.h +625 -184
- package/include/hwy/ops/x86_512-inl.h +733 -131
- package/include/hwy/targets.h +22 -21
- package/include/hwy/timer-inl.h +3 -3
- package/include/hwy/timer.h +5 -1
- package/include/libpng16/pnglibconf.h +1 -1
- package/include/librsvg-2.0/librsvg/rsvg-cairo.h +1 -1
- package/include/librsvg-2.0/librsvg/rsvg-features.h +3 -4
- package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +235 -0
- package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
- package/include/librsvg-2.0/librsvg/rsvg.h +26 -176
- package/include/libxml2/libxml/HTMLparser.h +12 -19
- package/include/libxml2/libxml/c14n.h +1 -12
- package/include/libxml2/libxml/debugXML.h +1 -1
- package/include/libxml2/libxml/encoding.h +9 -0
- package/include/libxml2/libxml/entities.h +12 -1
- package/include/libxml2/libxml/hash.h +19 -0
- package/include/libxml2/libxml/list.h +2 -2
- package/include/libxml2/libxml/nanohttp.h +17 -0
- package/include/libxml2/libxml/parser.h +60 -54
- package/include/libxml2/libxml/parserInternals.h +9 -1
- package/include/libxml2/libxml/pattern.h +6 -0
- package/include/libxml2/libxml/tree.h +32 -12
- package/include/libxml2/libxml/uri.h +11 -0
- package/include/libxml2/libxml/valid.h +29 -2
- package/include/libxml2/libxml/xinclude.h +7 -0
- package/include/libxml2/libxml/xmlIO.h +21 -4
- package/include/libxml2/libxml/xmlerror.h +14 -0
- package/include/libxml2/libxml/xmlexports.h +111 -15
- package/include/libxml2/libxml/xmlmemory.h +8 -45
- package/include/libxml2/libxml/xmlreader.h +2 -0
- package/include/libxml2/libxml/xmlsave.h +5 -0
- package/include/libxml2/libxml/xmlunicode.h +165 -1
- package/include/libxml2/libxml/xmlversion.h +6 -170
- package/include/libxml2/libxml/xmlwriter.h +1 -0
- package/include/libxml2/libxml/xpath.h +4 -0
- package/include/pango-1.0/pango/pango-features.h +3 -3
- package/include/pango-1.0/pango/pango-item.h +4 -2
- package/include/pango-1.0/pango/pango-version-macros.h +25 -0
- package/include/pango-1.0/pango/pangofc-font.h +2 -1
- package/include/pnglibconf.h +1 -1
- package/include/webp/decode.h +58 -56
- package/include/webp/demux.h +25 -21
- package/include/webp/encode.h +44 -39
- package/include/webp/mux.h +76 -15
- package/include/webp/mux_types.h +2 -1
- package/include/webp/sharpyuv/sharpyuv.h +77 -8
- package/include/webp/types.h +29 -8
- package/include/zconf.h +1 -1
- package/include/zlib.h +14 -14
- package/package.json +1 -1
- package/versions.json +12 -13
package/include/hwy/targets.h
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
#include "hwy/detect_targets.h"
|
|
30
30
|
#include "hwy/highway_export.h"
|
|
31
31
|
|
|
32
|
-
#if !
|
|
32
|
+
#if !defined(HWY_NO_LIBCXX)
|
|
33
33
|
#include <atomic>
|
|
34
34
|
#endif
|
|
35
35
|
|
|
@@ -112,6 +112,8 @@ static inline HWY_MAYBE_UNUSED const char* TargetName(int64_t target) {
|
|
|
112
112
|
return "SVE2";
|
|
113
113
|
case HWY_SVE:
|
|
114
114
|
return "SVE";
|
|
115
|
+
case HWY_NEON_BF16:
|
|
116
|
+
return "NEON_BF16";
|
|
115
117
|
case HWY_NEON:
|
|
116
118
|
return "NEON";
|
|
117
119
|
case HWY_NEON_WITHOUT_AES:
|
|
@@ -141,7 +143,7 @@ static inline HWY_MAYBE_UNUSED const char* TargetName(int64_t target) {
|
|
|
141
143
|
return "WASM_EMU256";
|
|
142
144
|
#endif
|
|
143
145
|
|
|
144
|
-
#if
|
|
146
|
+
#if HWY_ARCH_RISCV
|
|
145
147
|
case HWY_RVV:
|
|
146
148
|
return "RVV";
|
|
147
149
|
#endif
|
|
@@ -220,24 +222,24 @@ static inline HWY_MAYBE_UNUSED const char* TargetName(int64_t target) {
|
|
|
220
222
|
// See HWY_ARCH_X86 above for details.
|
|
221
223
|
#define HWY_MAX_DYNAMIC_TARGETS 15
|
|
222
224
|
#define HWY_HIGHEST_TARGET_BIT HWY_HIGHEST_TARGET_BIT_ARM
|
|
223
|
-
#define HWY_CHOOSE_TARGET_LIST(func_name)
|
|
224
|
-
nullptr, /* reserved */
|
|
225
|
-
nullptr, /* reserved */
|
|
226
|
-
nullptr, /* reserved */
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
nullptr, /* reserved */
|
|
230
|
-
nullptr, /* reserved */
|
|
231
|
-
nullptr, /* reserved */
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
HWY_CHOOSE_NEON(func_name), /* NEON */
|
|
225
|
+
#define HWY_CHOOSE_TARGET_LIST(func_name) \
|
|
226
|
+
nullptr, /* reserved */ \
|
|
227
|
+
nullptr, /* reserved */ \
|
|
228
|
+
nullptr, /* reserved */ \
|
|
229
|
+
HWY_CHOOSE_SVE2_128(func_name), /* SVE2 128-bit */ \
|
|
230
|
+
HWY_CHOOSE_SVE_256(func_name), /* SVE 256-bit */ \
|
|
231
|
+
nullptr, /* reserved */ \
|
|
232
|
+
nullptr, /* reserved */ \
|
|
233
|
+
nullptr, /* reserved */ \
|
|
234
|
+
HWY_CHOOSE_SVE2(func_name), /* SVE2 */ \
|
|
235
|
+
HWY_CHOOSE_SVE(func_name), /* SVE */ \
|
|
236
|
+
nullptr, /* reserved */ \
|
|
237
|
+
HWY_CHOOSE_NEON_BF16(func_name), /* NEON + f16/dot/bf16 */ \
|
|
238
|
+
nullptr, /* reserved */ \
|
|
239
|
+
HWY_CHOOSE_NEON(func_name), /* NEON */ \
|
|
238
240
|
HWY_CHOOSE_NEON_WITHOUT_AES(func_name) /* NEON without AES */
|
|
239
241
|
|
|
240
|
-
#elif
|
|
242
|
+
#elif HWY_ARCH_RISCV
|
|
241
243
|
// See HWY_ARCH_X86 above for details.
|
|
242
244
|
#define HWY_MAX_DYNAMIC_TARGETS 9
|
|
243
245
|
#define HWY_HIGHEST_TARGET_BIT HWY_HIGHEST_TARGET_BIT_RVV
|
|
@@ -323,8 +325,7 @@ struct ChosenTarget {
|
|
|
323
325
|
}
|
|
324
326
|
|
|
325
327
|
private:
|
|
326
|
-
|
|
327
|
-
#if HWY_ARCH_RVV || defined(HWY_NO_LIBCXX)
|
|
328
|
+
#if defined(HWY_NO_LIBCXX)
|
|
328
329
|
int64_t LoadMask() const { return mask_; }
|
|
329
330
|
void StoreMask(int64_t mask) { mask_ = mask; }
|
|
330
331
|
|
|
@@ -334,7 +335,7 @@ struct ChosenTarget {
|
|
|
334
335
|
void StoreMask(int64_t mask) { mask_.store(mask); }
|
|
335
336
|
|
|
336
337
|
std::atomic<int64_t> mask_{1}; // Initialized to 1 so GetIndex() returns 0.
|
|
337
|
-
#endif //
|
|
338
|
+
#endif // HWY_ARCH_RISCV
|
|
338
339
|
};
|
|
339
340
|
|
|
340
341
|
// For internal use (e.g. by FunctionCache and DisableTargets).
|
package/include/hwy/timer-inl.h
CHANGED
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
#endif
|
|
25
25
|
|
|
26
26
|
#include "hwy/highway.h"
|
|
27
|
-
#include "hwy/timer.h"
|
|
28
27
|
|
|
29
28
|
#if defined(_WIN32) || defined(_WIN64)
|
|
30
29
|
#ifndef NOMINMAX
|
|
@@ -50,6 +49,7 @@
|
|
|
50
49
|
#include <intrin.h>
|
|
51
50
|
#endif
|
|
52
51
|
|
|
52
|
+
#include <stdint.h>
|
|
53
53
|
#include <time.h> // clock_gettime
|
|
54
54
|
|
|
55
55
|
HWY_BEFORE_NAMESPACE();
|
|
@@ -139,8 +139,8 @@ inline Ticks Start() {
|
|
|
139
139
|
// "memory" avoids reordering. rdx = TSC >> 32.
|
|
140
140
|
// "cc" = flags modified by SHL.
|
|
141
141
|
: "rdx", "memory", "cc");
|
|
142
|
-
#elif
|
|
143
|
-
asm volatile("rdtime %0" : "=r"(t));
|
|
142
|
+
#elif HWY_ARCH_RISCV
|
|
143
|
+
asm volatile("fence; rdtime %0" : "=r"(t));
|
|
144
144
|
#elif defined(_WIN32) || defined(_WIN64)
|
|
145
145
|
LARGE_INTEGER counter;
|
|
146
146
|
(void)QueryPerformanceCounter(&counter);
|
package/include/hwy/timer.h
CHANGED
|
@@ -36,7 +36,7 @@ HWY_DLLEXPORT double Now();
|
|
|
36
36
|
|
|
37
37
|
// Returns whether it is safe to call timer::Stop without executing an illegal
|
|
38
38
|
// instruction; if false, fills cpu100 (a pointer to a 100 character buffer)
|
|
39
|
-
//
|
|
39
|
+
// via GetCpuString().
|
|
40
40
|
HWY_DLLEXPORT bool HaveTimerStop(char* cpu100);
|
|
41
41
|
|
|
42
42
|
// Returns tick rate, useful for converting timer::Ticks to seconds. Invariant
|
|
@@ -49,6 +49,10 @@ HWY_DLLEXPORT double InvariantTicksPerSecond();
|
|
|
49
49
|
// This call is expensive, callers should cache the result.
|
|
50
50
|
HWY_DLLEXPORT uint64_t TimerResolution();
|
|
51
51
|
|
|
52
|
+
// Returns false if no detailed description is available, otherwise fills
|
|
53
|
+
// `cpu100` with up to 100 characters (including \0) identifying the CPU model.
|
|
54
|
+
HWY_DLLEXPORT bool GetCpuString(char* cpu100);
|
|
55
|
+
|
|
52
56
|
} // namespace platform
|
|
53
57
|
|
|
54
58
|
struct Timestamp {
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
#define PNG_USER_HEIGHT_MAX 1000000
|
|
215
215
|
#define PNG_USER_WIDTH_MAX 1000000
|
|
216
216
|
#define PNG_ZBUF_SIZE 8192
|
|
217
|
-
#define PNG_ZLIB_VERNUM
|
|
217
|
+
#define PNG_ZLIB_VERNUM 0x131f
|
|
218
218
|
#define PNG_Z_DEFAULT_COMPRESSION (-1)
|
|
219
219
|
#define PNG_Z_DEFAULT_NOFILTER_STRATEGY 0
|
|
220
220
|
#define PNG_Z_DEFAULT_STRATEGY 1
|
|
@@ -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-cairo.h: SAX-based renderer for SVG files using
|
|
4
|
+
rsvg-cairo.h: SAX-based renderer for SVG files using Cairo
|
|
5
5
|
|
|
6
6
|
Copyright (C) 2005 Red Hat, Inc.
|
|
7
7
|
|
|
@@ -120,12 +120,11 @@
|
|
|
120
120
|
(LIBRSVG_MAJOR_VERSION == (major) && LIBRSVG_MINOR_VERSION > (minor)) || \
|
|
121
121
|
(LIBRSVG_MAJOR_VERSION == (major) && LIBRSVG_MINOR_VERSION == (minor) && LIBRSVG_MICRO_VERSION >= (micro)))
|
|
122
122
|
|
|
123
|
-
#
|
|
124
|
-
#define
|
|
125
|
-
#define
|
|
123
|
+
#define LIBRSVG_HAVE_SVGZ (TRUE)
|
|
124
|
+
#define LIBRSVG_HAVE_CSS (TRUE)
|
|
125
|
+
#define LIBRSVG_HAVE_PIXBUF (0)
|
|
126
126
|
|
|
127
127
|
#define LIBRSVG_CHECK_FEATURE(FEATURE) (defined(LIBRSVG_HAVE_##FEATURE) && LIBRSVG_HAVE_##FEATURE)
|
|
128
|
-
#endif
|
|
129
128
|
|
|
130
129
|
#ifndef __GTK_DOC_IGNORE__
|
|
131
130
|
|
|
@@ -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 (
|
|
10
|
-
#define LIBRSVG_MICRO_VERSION (
|
|
11
|
-
#define LIBRSVG_VERSION "2.
|
|
9
|
+
#define LIBRSVG_MINOR_VERSION (58)
|
|
10
|
+
#define LIBRSVG_MICRO_VERSION (91)
|
|
11
|
+
#define LIBRSVG_VERSION "2.58.91"
|
|
12
12
|
|
|
13
13
|
#endif
|