From 28827a69cff9f94df72daf29a68d3ab8b26259d1 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 23 May 2016 18:33:55 +0100 Subject: Sprinkle some consts and restricts in plotters. Try and help C avoid pointer aliasing issues. Some of this may not help at all. None of it should hurt though. --- include/mupdf/fitz/pixmap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/mupdf/fitz/pixmap.h b/include/mupdf/fitz/pixmap.h index 33d127ce..c784303c 100644 --- a/include/mupdf/fitz/pixmap.h +++ b/include/mupdf/fitz/pixmap.h @@ -18,7 +18,7 @@ typedef struct fz_pixmap_s fz_pixmap; /* fz_pixmap_bbox: Return the bounding box for a pixmap. */ -fz_irect *fz_pixmap_bbox(fz_context *ctx, fz_pixmap *pix, fz_irect *bbox); +fz_irect *fz_pixmap_bbox(fz_context *ctx, const fz_pixmap *pix, fz_irect *bbox); /* fz_pixmap_width: Return the width of the pixmap in pixels. @@ -328,7 +328,7 @@ fz_pixmap *fz_scale_pixmap_cached(fz_context *ctx, const fz_pixmap *src, float x void fz_subsample_pixmap(fz_context *ctx, fz_pixmap *tile, int factor); -fz_irect *fz_pixmap_bbox_no_ctx(fz_pixmap *src, fz_irect *bbox); +fz_irect *fz_pixmap_bbox_no_ctx(const fz_pixmap *src, fz_irect *bbox); void fz_decode_tile(fz_context *ctx, fz_pixmap *pix, const float *decode); void fz_decode_indexed_tile(fz_context *ctx, fz_pixmap *pix, const float *decode, int maxval); -- cgit v1.2.3