From ab283d39889e28a6802cbec299db6a6792aebe5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Mon, 1 Nov 2021 04:40:58 +0100 Subject: Split out fastiv-io.h, move media types list --- fastiv-io.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'fastiv-io.c') 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() -- cgit v1.2.3