From 1c5cc5093937b9ea68bba8200f2d71eb613e2979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Tue, 9 Nov 2021 19:42:43 +0100 Subject: Add very basic SVG support We need to refactor, so that SVGs are pre-rendered on each change of scaling by librsvg directly, because some elements may be rasterized. It would be best to also support building against resvg. --- fastiv-io.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fastiv-io.h') diff --git a/fastiv-io.h b/fastiv-io.h index 96b4929..616bfc8 100644 --- a/fastiv-io.h +++ b/fastiv-io.h @@ -23,4 +23,6 @@ extern const char *fastiv_io_supported_media_types[]; cairo_surface_t *fastiv_io_open(const gchar *path, GError **error); +cairo_surface_t *fastiv_io_open_from_data( + const char *data, size_t len, GError **error); cairo_surface_t *fastiv_io_lookup_thumbnail(const gchar *target); -- cgit v1.2.3