aboutsummaryrefslogtreecommitdiff
path: root/fastiv-io.h
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-09 19:42:43 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-10 00:23:19 +0100
commit1c5cc5093937b9ea68bba8200f2d71eb613e2979 (patch)
treeeeb8740a898ccc16c4784e197fdef3302fc1b845 /fastiv-io.h
parent1e380f695a39db754c79126be632cbf9c5d46941 (diff)
downloadfiv-1c5cc5093937b9ea68bba8200f2d71eb613e2979.tar.gz
fiv-1c5cc5093937b9ea68bba8200f2d71eb613e2979.tar.xz
fiv-1c5cc5093937b9ea68bba8200f2d71eb613e2979.zip
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.
Diffstat (limited to 'fastiv-io.h')
-rw-r--r--fastiv-io.h2
1 files changed, 2 insertions, 0 deletions
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);