aboutsummaryrefslogtreecommitdiff
path: root/fastiv-io.c
diff options
context:
space:
mode:
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()