summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/device.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-07-17 18:42:33 +0100
committerRobin Watts <robin.watts@artifex.com>2013-07-19 19:54:27 +0100
commitf5f7c0e4dd83257f526b158e3998970717852a0e (patch)
treec34ee93ab7773e4fbe48506c97fb515c03707e57 /include/mupdf/fitz/device.h
parent3c559928d88fccfe17da4953ea1c93ceb42a90cb (diff)
downloadmupdf-f5f7c0e4dd83257f526b158e3998970717852a0e.tar.xz
Initial work on progressive loading
We are testing this using a new -p flag to mupdf that sets a bitrate at which data will appear to arrive progressively as time goes on. For example: mupdf -p 102400 pdf_reference17.pdf Details of the scheme used here are presented in docs/progressive.txt
Diffstat (limited to 'include/mupdf/fitz/device.h')
-rw-r--r--include/mupdf/fitz/device.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/mupdf/fitz/device.h b/include/mupdf/fitz/device.h
index 7c64c8b8..b39ff4ee 100644
--- a/include/mupdf/fitz/device.h
+++ b/include/mupdf/fitz/device.h
@@ -218,6 +218,16 @@ typedef struct fz_cookie_s fz_cookie;
value of progress to that of progress_max.
errors: count of errors during current rendering.
+
+ incomplete_ok: If this is set to 1 by the caller, then TRYLATER
+ errors are swallowed as they occur, setting the 'incomplete' flag.
+ Rendering continues as much as possible ignoring errors. The caller
+ is expected to check the 'incomplete' flag at the end to see if the
+ rendering may be considered final or not.
+
+ incomplete: Initially should be set to 0. Will be set to non-zero
+ if a TRYLATER error is thrown during rendering and the incomplete_ok
+ flag is set.
*/
struct fz_cookie_s
{
@@ -225,6 +235,8 @@ struct fz_cookie_s
int progress;
int progress_max; /* -1 for unknown */
int errors;
+ int incomplete_ok;
+ int incomplete;
};
/*