diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-04-05 15:49:10 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-04-11 19:00:39 +0100 |
commit | 53b5ede268394d651df1f12da490884bf870006a (patch) | |
tree | 72145964ff775415674c73b1e05ea18669238278 /pdf/mupdf-internal.h | |
parent | 05f9887c211fff4195b5959bc71d2ef4b773fdc2 (diff) | |
download | mupdf-53b5ede268394d651df1f12da490884bf870006a.tar.xz |
Move pdf_image to fz_image.
In order to be able to output images (either in the pdfwrite device or
in the html conversion), we need to be able to get to the original
compressed data stream (or else we're going to end up recompressing
images). To do that, we need to expose all of the contents of pdf_image
into fz_image, so it makes sense to just amalgamate the two.
This has knock on effects for the creation of indexed colorspaces,
requiring some of that logic to be moved.
Also, we need to make xps use the same structures; this means pushing
PNG and TIFF support into the decoding code. Also we need to be able
to load just the headers from PNG/TIFF/JPEGs as xps doesn't include
dimension/resolution information.
Also, separate out all the fz_image stuff into fitz/res_image.c rather
than having it in res_pixmap.
Diffstat (limited to 'pdf/mupdf-internal.h')
-rw-r--r-- | pdf/mupdf-internal.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/pdf/mupdf-internal.h b/pdf/mupdf-internal.h index 9dbbd714..d064f71c 100644 --- a/pdf/mupdf-internal.h +++ b/pdf/mupdf-internal.h @@ -9,25 +9,6 @@ void *pdf_get_indirect_document(pdf_obj *obj); void pdf_set_int(pdf_obj *obj, int i); /* - * PDF Images - */ - -typedef struct pdf_image_s pdf_image; - -struct pdf_image_s -{ - fz_image base; - fz_pixmap *tile; - int n; - fz_compressed_buffer *buffer; - int colorkey[FZ_MAX_COLORS * 2]; - float decode[FZ_MAX_COLORS * 2]; - int imagemask; - int interpolate; - int usecolorkey; -}; - -/* * tokenizer and low-level object parser */ @@ -228,7 +209,6 @@ void pdf_print_crypt(pdf_crypt *crypt); fz_function *pdf_load_function(pdf_document *doc, pdf_obj *ref, int in, int out); fz_colorspace *pdf_load_colorspace(pdf_document *doc, pdf_obj *obj); -fz_pixmap *pdf_expand_indexed_pixmap(fz_context *ctx, fz_pixmap *src); fz_shade *pdf_load_shading(pdf_document *doc, pdf_obj *obj); |