diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-02-09 02:14:34 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-02-09 02:14:34 +0100 |
commit | c96f530870d86d552007ca2e124fc3aa1f0824ac (patch) | |
tree | 66165c92397d03b84252c3b47e5a26c76ba4aafa /fitz/fitz_base.h | |
parent | 7234a549b69760b097da1985805911b338e2a5d4 (diff) | |
download | mupdf-c96f530870d86d552007ca2e124fc3aa1f0824ac.tar.xz |
Use fz_pixmap instead of fz_image and remove the subclassing in pdf_image.
Diffstat (limited to 'fitz/fitz_base.h')
-rw-r--r-- | fitz/fitz_base.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/fitz/fitz_base.h b/fitz/fitz_base.h index 67665204..8c683114 100644 --- a/fitz/fitz_base.h +++ b/fitz/fitz_base.h @@ -299,17 +299,23 @@ conversions and rescaling. */ typedef struct fz_pixmap_s fz_pixmap; -typedef unsigned char fz_sample; +typedef struct fz_colorspace_s fz_colorspace; + +extern fz_colorspace *pdf_devicegray; +extern fz_colorspace *pdf_devicergb; +extern fz_colorspace *pdf_devicecmyk; +extern fz_colorspace *pdf_devicelab; +extern fz_colorspace *pdf_devicepattern; struct fz_pixmap_s { int x, y, w, h, n; - fz_sample *samples; + fz_colorspace *colorspace; + unsigned char *samples; }; -fz_pixmap * fz_newpixmapwithrect(fz_irect bbox, int n); -fz_pixmap * fz_newpixmap(int x, int y, int w, int h, int n); -fz_pixmap * fz_newpixmapcopy(fz_pixmap *old); +fz_pixmap * fz_newpixmapwithrect(fz_colorspace *, fz_irect bbox); +fz_pixmap * fz_newpixmap(fz_colorspace *, int x, int y, int w, int h); void fz_debugpixmap(fz_pixmap *map, char *prefix); void fz_clearpixmap(fz_pixmap *map, unsigned char value); |