aboutsummaryrefslogtreecommitdiff
path: root/fastiv-io.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-01 04:40:58 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-01 05:17:26 +0100
commitab283d39889e28a6802cbec299db6a6792aebe5a (patch)
tree3a2591a0d159b65fab8b9cba3b2b7d5dd68711e2 /fastiv-io.c
parent7ca53b031e5faeb875e7e2cf042f1941bf076bb1 (diff)
downloadfiv-ab283d39889e28a6802cbec299db6a6792aebe5a.tar.gz
fiv-ab283d39889e28a6802cbec299db6a6792aebe5a.tar.xz
fiv-ab283d39889e28a6802cbec299db6a6792aebe5a.zip
Split out fastiv-io.h, move media types list
Diffstat (limited to 'fastiv-io.c')
-rw-r--r--fastiv-io.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/fastiv-io.c b/fastiv-io.c
index 9c862e3..db0efb9 100644
--- a/fastiv-io.c
+++ b/fastiv-io.c
@@ -37,6 +37,20 @@
#define WUFFS_CONFIG__MODULE__ZLIB
#include "wuffs-mirror-release-c/release/c/wuffs-v0.3.c"
+// A subset of shared-mime-info that produces an appropriate list of
+// file extensions. Chiefly motivated by the suckiness of RAW images:
+// someone else will maintain the list of file extensions for us.
+const char *fastiv_io_supported_media_types[] = {
+ "image/bmp",
+ "image/gif",
+ "image/png",
+ "image/jpeg",
+#ifdef HAVE_LIBRAW
+ "image/x-dcraw",
+#endif // HAVE_LIBRAW
+ NULL
+};
+
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#define FASTIV_IO_ERROR fastiv_io_error_quark()