summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2015-09-07 01:47:08 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-03-23 15:58:47 +0100
commit805c6109967059ee2dc9574923ceb9e89cae57ef (patch)
tree4283be9feefbc892dedd74d2ef74214771a6a6e3 /include
parentf457923b92ad0a6d9fe736bf8021c652bc654d72 (diff)
downloadmupdf-805c6109967059ee2dc9574923ceb9e89cae57ef.tar.xz
Add support for BMP images.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/compressed-buffer.h1
-rw-r--r--include/mupdf/fitz/image.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/mupdf/fitz/compressed-buffer.h b/include/mupdf/fitz/compressed-buffer.h
index 4fec2293..eccfe8c7 100644
--- a/include/mupdf/fitz/compressed-buffer.h
+++ b/include/mupdf/fitz/compressed-buffer.h
@@ -30,6 +30,7 @@ enum
FZ_IMAGE_TIFF = 10,
FZ_IMAGE_JXR = 11, /* Placeholder until supported */
FZ_IMAGE_GIF = 12,
+ FZ_IMAGE_BMP = 13,
};
struct fz_compression_params_s
diff --git a/include/mupdf/fitz/image.h b/include/mupdf/fitz/image.h
index e88318d8..b2d7ec53 100644
--- a/include/mupdf/fitz/image.h
+++ b/include/mupdf/fitz/image.h
@@ -88,12 +88,14 @@ fz_pixmap *fz_load_png(fz_context *ctx, unsigned char *data, int size);
fz_pixmap *fz_load_tiff(fz_context *ctx, unsigned char *data, int size);
fz_pixmap *fz_load_jxr(fz_context *ctx, unsigned char *data, int size);
fz_pixmap *fz_load_gif(fz_context *ctx, unsigned char *data, int size);
+fz_pixmap *fz_load_bmp(fz_context *ctx, unsigned char *data, int size);
void fz_load_jpeg_info(fz_context *ctx, unsigned char *data, int size, int *w, int *h, int *xres, int *yres, fz_colorspace **cspace);
void fz_load_png_info(fz_context *ctx, unsigned char *data, int size, int *w, int *h, int *xres, int *yres, fz_colorspace **cspace);
void fz_load_tiff_info(fz_context *ctx, unsigned char *data, int size, int *w, int *h, int *xres, int *yres, fz_colorspace **cspace);
void fz_load_jxr_info(fz_context *ctx, unsigned char *data, int size, int *w, int *h, int *xres, int *yres, fz_colorspace **cspace);
void fz_load_gif_info(fz_context *ctx, unsigned char *data, int size, int *w, int *h, int *xres, int *yres, fz_colorspace **cspace);
+void fz_load_bmp_info(fz_context *ctx, unsigned char *data, int size, int *w, int *h, int *xres, int *yres, fz_colorspace **cspace);
int fz_load_tiff_subimage_count(fz_context *ctx, unsigned char *buf, int len);
fz_pixmap *fz_load_tiff_subimage(fz_context *ctx, unsigned char *buf, int len, int subimage);