diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-04-24 16:36:46 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-04-27 15:12:03 +0200 |
commit | ce680b96e207c90429eb702c5ee4b9bec177fdfd (patch) | |
tree | 2794e8a3efc8ad08d5ca976db4adc3ef10c512a8 /include/mupdf/fitz/image.h | |
parent | 9a725130b9b16daa332f8502e24eac9cab4cf9b2 (diff) | |
download | mupdf-ce680b96e207c90429eb702c5ee4b9bec177fdfd.tar.xz |
Typedef function pointers consistently.
Diffstat (limited to 'include/mupdf/fitz/image.h')
-rw-r--r-- | include/mupdf/fitz/image.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/mupdf/fitz/image.h b/include/mupdf/fitz/image.h index a853f4ec..5d363332 100644 --- a/include/mupdf/fitz/image.h +++ b/include/mupdf/fitz/image.h @@ -147,7 +147,22 @@ typedef size_t (fz_image_get_size_fn)(fz_context *, fz_image *); with the first sizeof(fz_image) bytes initialised as appropriate given the supplied parameters, and the other bytes set to zero. */ -fz_image *fz_new_image_of_size(fz_context *ctx, int w, int h, int bpc, fz_colorspace *colorspace, int xres, int yres, int interpolate, int imagemask, float *decode, int *colorkey, fz_image *mask, int size, fz_image_get_pixmap_fn *get, fz_image_get_size_fn *get_size, fz_drop_image_fn *drop); +fz_image *fz_new_image_of_size(fz_context *ctx, + int w, + int h, + int bpc, + fz_colorspace *colorspace, + int xres, + int yres, + int interpolate, + int imagemask, + float *decode, + int *colorkey, + fz_image *mask, + int size, + fz_image_get_pixmap_fn *get_pixmap, + fz_image_get_size_fn *get_size, + fz_drop_image_fn *drop); #define fz_new_derived_image(CTX,W,H,B,CS,X,Y,I,IM,D,C,M,T,G,S,Z) \ ((T*)Memento_label(fz_new_image_of_size(CTX,W,H,B,CS,X,Y,I,IM,D,C,M,sizeof(T),G,S,Z),#T)) |