summaryrefslogtreecommitdiff
path: root/fitz/fitz.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-11-08 17:46:48 +0000
committerRobin Watts <robin.watts@artifex.com>2011-11-14 16:32:45 +0000
commit5c4ff53fb89b5068bc901fd5909be9e5d2d0cb0b (patch)
tree8dc1faaa37e23192dc586a00d7e7e95a1439366f /fitz/fitz.h
parenta6e91235376900869f74673caf7bf17fc257bdd7 (diff)
downloadmupdf-5c4ff53fb89b5068bc901fd5909be9e5d2d0cb0b.tar.xz
Grid fitting tweaks.
Extract the grid fitting code from the scaling code and the affine image drawing code into it's own separate function. This reduces code duplication. It also allows us to make better allowance for rounding errors. Add a voodoo offset in the draw_affine.c code for painting interpolated images. This gives us the best possible match between all the different combinations of scaled/unscaled and interpolated/uninterpolated images.
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r--fitz/fitz.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h
index 5529384d..a1235c05 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -273,6 +273,8 @@ fz_point fz_transform_vector(fz_matrix m, fz_point p);
fz_rect fz_transform_rect(fz_matrix m, fz_rect r);
fz_bbox fz_transform_bbox(fz_matrix m, fz_bbox b);
+void fz_gridfit_matrix(fz_matrix *m);
+
/*
* Basic crypto functions.
* Independent of the rest of fitz.
@@ -629,7 +631,6 @@ void fz_invert_pixmap(fz_pixmap *pix);
void fz_gamma_pixmap(fz_pixmap *pix, float gamma);
fz_pixmap *fz_scale_pixmap(fz_pixmap *src, float x, float y, float w, float h);
-fz_pixmap *fz_scale_pixmap_gridfit(fz_pixmap *src, float x, float y, float w, float h, int gridfit);
fz_error fz_write_pnm(fz_pixmap *pixmap, char *filename);
fz_error fz_write_pam(fz_pixmap *pixmap, char *filename, int savealpha);