From 805c6109967059ee2dc9574923ceb9e89cae57ef Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Mon, 7 Sep 2015 01:47:08 +0200 Subject: Add support for BMP images. --- include/mupdf/fitz/compressed-buffer.h | 1 + include/mupdf/fitz/image.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'include') 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); -- cgit v1.2.3