summaryrefslogtreecommitdiff
path: root/include/fitz/base_pixmap.h
diff options
context:
space:
mode:
authorGlenn Kennard <glenn.kennard@gmail.com>2008-03-19 15:37:36 +0100
committerGlenn Kennard <glenn.kennard@gmail.com>2008-03-19 15:37:36 +0100
commit9bc1c1f65d4a53adeff8e9eb9e926b5a37b21356 (patch)
tree0a0d0f8540565189e974100572de900ccbf21e7c /include/fitz/base_pixmap.h
parent22931638c8457d61aa91fdfa12157f62b2d45348 (diff)
downloadmupdf-9bc1c1f65d4a53adeff8e9eb9e926b5a37b21356.tar.xz
Split image decode and scaling work into bands for large images
Images larger than will fit in a typical L2 cache that need scaling are now chopped up and processed in bands. Speeds up McCue.pdf overall by 1/3. Actual decoding of stream is still done in one chunk, which now has the highest overhead.
Diffstat (limited to 'include/fitz/base_pixmap.h')
-rw-r--r--include/fitz/base_pixmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fitz/base_pixmap.h b/include/fitz/base_pixmap.h
index 9a0f2b43..ca8fa883 100644
--- a/include/fitz/base_pixmap.h
+++ b/include/fitz/base_pixmap.h
@@ -24,3 +24,7 @@ void fz_droppixmap(fz_pixmap *map);
fz_error *fz_scalepixmap(fz_pixmap **dstp, fz_pixmap *src, int xdenom, int ydenom);
+/* needed for tiled rendering */
+fz_error *fz_newscaledpixmap(fz_pixmap **dstp, int w, int h, int n, int xdenom, int ydenom);
+fz_error *fz_scalepixmaptile(fz_pixmap *dstp, int xoffs, int yoffs,
+ fz_pixmap *tile, int xdenom, int ydenom);