aboutsummaryrefslogtreecommitdiff
path: root/fiv-io.h
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-07-09 09:46:31 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-07-09 10:40:32 +0200
commit840e7f172ce3b805dc5c3e4889e1166159942dc3 (patch)
tree8f99f8ae164b8039621d287ac7de7726ab9dd141 /fiv-io.h
parent9b99de99bbe2d87ee62bb72931a22f2551fa470e (diff)
downloadfiv-840e7f172ce3b805dc5c3e4889e1166159942dc3.tar.gz
fiv-840e7f172ce3b805dc5c3e4889e1166159942dc3.tar.xz
fiv-840e7f172ce3b805dc5c3e4889e1166159942dc3.zip
Colour-manage SVGs
Diffstat (limited to 'fiv-io.h')
-rw-r--r--fiv-io.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fiv-io.h b/fiv-io.h
index 224aec0..ea9c6c4 100644
--- a/fiv-io.h
+++ b/fiv-io.h
@@ -56,9 +56,11 @@ enum _FivIoOrientation {
FivIoOrientation270 = 8
};
+// TODO(p): Maybe make FivIoProfile a referencable type,
+// then loaders could store it in their closures.
struct _FivIoRenderClosure {
/// The rendering is allowed to fail, returning NULL.
- FivIoImage *(*render)(FivIoRenderClosure *, double scale);
+ FivIoImage *(*render)(FivIoRenderClosure *, FivIoProfile, double scale);
void (*destroy)(FivIoRenderClosure *);
};