diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-03 15:17:00 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-03 16:01:34 +0200 |
commit | 8975aec496710bb9e35a4a1cb635ee0d4eaa60cc (patch) | |
tree | 02e02a337491fd66be2c60b0c8aa2b969ca47e69 /xps/muxps.h | |
parent | 6af0abc477539365a19a4797babfd567da4d375f (diff) | |
download | mupdf-8975aec496710bb9e35a4a1cb635ee0d4eaa60cc.tar.xz |
xps: Use fz_pixmap directly instead of wrapping it in xps_image.
Diffstat (limited to 'xps/muxps.h')
-rw-r--r-- | xps/muxps.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/xps/muxps.h b/xps/muxps.h index f3f2cdf4..067d4780 100644 --- a/xps/muxps.h +++ b/xps/muxps.h @@ -112,23 +112,9 @@ void xps_free_page(xps_context *ctx, xps_page *page); * Images. */ -typedef struct xps_image xps_image; - -/* type for the information derived directly from the raster file format */ - -struct xps_image -{ - fz_pixmap *pixmap; - int xres; - int yres; -}; - -int xps_decode_jpeg(xps_image **imagep, xps_context *ctx, byte *rbuf, int rlen); -int xps_decode_png(xps_image **imagep, xps_context *ctx, byte *rbuf, int rlen); -int xps_decode_tiff(xps_image **imagep, xps_context *ctx, byte *rbuf, int rlen); -int xps_decode_jpegxr(xps_image **imagep, xps_context *ctx, byte *rbuf, int rlen); - -void xps_free_image(xps_context *ctx, xps_image *image); +int xps_decode_jpeg(fz_pixmap **imagep, byte *rbuf, int rlen); +int xps_decode_png(fz_pixmap **imagep, byte *rbuf, int rlen); +int xps_decode_tiff(fz_pixmap **imagep, byte *rbuf, int rlen); /* * Fonts. |