diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2015-08-24 20:46:52 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-07-06 13:34:37 +0200 |
commit | 40dc2fabdd3bd647c21ee4334bb81f96a2103ff5 (patch) | |
tree | 3f0812969ba5ba2a02d06becbb294fe65174e488 /source/cbz/muimg.c | |
parent | 41014a238806e5b18ffa3a62667e9950b7f1b4d0 (diff) | |
download | mupdf-40dc2fabdd3bd647c21ee4334bb81f96a2103ff5.tar.xz |
Add optional support for JPEG-XR.
Diffstat (limited to 'source/cbz/muimg.c')
-rw-r--r-- | source/cbz/muimg.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/cbz/muimg.c b/source/cbz/muimg.c index 4e0f97df..91b89dfa 100644 --- a/source/cbz/muimg.c +++ b/source/cbz/muimg.c @@ -161,7 +161,8 @@ img_recognize(fz_context *doc, const char *magic) !fz_strcasecmp(ext, ".jfif-tbnl") || !fz_strcasecmp(ext, ".jpe") || !fz_strcasecmp(ext, ".gif") || !fz_strcasecmp(ext, ".bmp") || !fz_strcasecmp(ext, ".jpx") || !fz_strcasecmp(ext, ".jp2") || - !fz_strcasecmp(ext, ".j2k")) + !fz_strcasecmp(ext, ".j2k") || !fz_strcasecmp(ext, ".wdp") || + !fz_strcasecmp(ext, ".hdp") || !fz_strcasecmp(ext, ".jxr")) return 100; } if (!strcmp(magic, "png") || !strcmp(magic, "image/png") || @@ -172,7 +173,9 @@ img_recognize(fz_context *doc, const char *magic) !strcmp(magic, "bmp") || !strcmp(magic, "image/bmp") || !strcmp(magic, "jpx") || !strcmp(magic, "image/jpx") || !strcmp(magic, "jp2") || !strcmp(magic, "image/jp2") || - !strcmp(magic, "j2k")) + !strcmp(magic, "j2k") || !strcmp(magic, "wdp") || + !strcmp(magic, "hdp") || !strcmp(magic, "image/vnd.ms-photo") || + !strcmp(magic, "jxr") || !strcmp(magic, "image/jxr")) return 100; return 0; |