summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-06-26 18:42:37 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-07-06 13:34:37 +0200
commit507d31982280185fe4d3fd22d25c6d11aad480c9 (patch)
tree01de723dabb55ea69de4e3586a79fc09578f5f01 /include
parent40dc2fabdd3bd647c21ee4334bb81f96a2103ff5 (diff)
downloadmupdf-507d31982280185fe4d3fd22d25c6d11aad480c9.tar.xz
Add support for decoding pbm/pgm/ppm/pam 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 ab9961bb..fce3be29 100644
--- a/include/mupdf/fitz/compressed-buffer.h
+++ b/include/mupdf/fitz/compressed-buffer.h
@@ -31,6 +31,7 @@ enum
FZ_IMAGE_JXR = 11,
FZ_IMAGE_GIF = 12,
FZ_IMAGE_BMP = 13,
+ FZ_IMAGE_PNM = 14,
};
struct fz_compression_params_s
diff --git a/include/mupdf/fitz/image.h b/include/mupdf/fitz/image.h
index bc2879d9..6482e80e 100644
--- a/include/mupdf/fitz/image.h
+++ b/include/mupdf/fitz/image.h
@@ -113,6 +113,7 @@ fz_pixmap *fz_load_tiff(fz_context *ctx, unsigned char *data, size_t size);
fz_pixmap *fz_load_jxr(fz_context *ctx, unsigned char *data, size_t size);
fz_pixmap *fz_load_gif(fz_context *ctx, unsigned char *data, size_t size);
fz_pixmap *fz_load_bmp(fz_context *ctx, unsigned char *data, size_t size);
+fz_pixmap *fz_load_pnm(fz_context *ctx, unsigned char *data, size_t size);
void fz_load_jpeg_info(fz_context *ctx, unsigned char *data, size_t size, int *w, int *h, int *xres, int *yres, fz_colorspace **cspace);
void fz_load_jpx_info(fz_context *ctx, unsigned char *data, size_t size, int *w, int *h, int *xres, int *yres, fz_colorspace **cspace);
@@ -121,6 +122,7 @@ void fz_load_tiff_info(fz_context *ctx, unsigned char *data, size_t size, int *w
void fz_load_jxr_info(fz_context *ctx, unsigned char *data, size_t size, int *w, int *h, int *xres, int *yres, fz_colorspace **cspace);
void fz_load_gif_info(fz_context *ctx, unsigned char *data, size_t size, int *w, int *h, int *xres, int *yres, fz_colorspace **cspace);
void fz_load_bmp_info(fz_context *ctx, unsigned char *data, size_t size, int *w, int *h, int *xres, int *yres, fz_colorspace **cspace);
+void fz_load_pnm_info(fz_context *ctx, unsigned char *data, size_t size, int *w, int *h, int *xres, int *yres, fz_colorspace **cspace);
int fz_load_tiff_subimage_count(fz_context *ctx, unsigned char *buf, size_t len);
fz_pixmap *fz_load_tiff_subimage(fz_context *ctx, unsigned char *buf, size_t len, int subimage);