diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-11-19 16:40:51 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-11-19 16:49:29 +0000 |
commit | b1e3f310637a22c6b4c5e142e3582f90ff467ddf (patch) | |
tree | 09fa46ac420806bb23d0c7d247d03f956a97e27d /fitz/fitz-internal.h | |
parent | a8560c74b6b655386c4530383eebda4e7cc239c2 (diff) | |
download | mupdf-b1e3f310637a22c6b4c5e142e3582f90ff467ddf.tar.xz |
Add image subsampling function.
When drawing images, if they are much bigger than we need, quickly
subsample them. Makes images much more cachable, reduces time spent
in expensive smooth scaler.
Diffstat (limited to 'fitz/fitz-internal.h')
-rw-r--r-- | fitz/fitz-internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h index 528fb50a..2f1d137e 100644 --- a/fitz/fitz-internal.h +++ b/fitz/fitz-internal.h @@ -836,6 +836,7 @@ fz_pixmap *fz_alpha_from_gray(fz_context *ctx, fz_pixmap *gray, int luminosity); unsigned int fz_pixmap_size(fz_context *ctx, fz_pixmap *pix); fz_pixmap *fz_scale_pixmap(fz_context *ctx, fz_pixmap *src, float x, float y, float w, float h, fz_bbox *clip); +void fz_subsample_pixmap(fz_context *ctx, fz_pixmap *tile, int factor); fz_bbox fz_pixmap_bbox_no_ctx(fz_pixmap *src); |