diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-07-17 18:42:33 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-07-19 19:54:27 +0100 |
commit | f5f7c0e4dd83257f526b158e3998970717852a0e (patch) | |
tree | c34ee93ab7773e4fbe48506c97fb515c03707e57 /source/xps | |
parent | 3c559928d88fccfe17da4953ea1c93ceb42a90cb (diff) | |
download | mupdf-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 'source/xps')
-rw-r--r-- | source/xps/xps-doc.c | 4 | ||||
-rw-r--r-- | source/xps/xps-glyphs.c | 4 | ||||
-rw-r--r-- | source/xps/xps-image.c | 4 | ||||
-rw-r--r-- | source/xps/xps-outline.c | 2 | ||||
-rw-r--r-- | source/xps/xps-resource.c | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/source/xps/xps-doc.c b/source/xps/xps-doc.c index 9953cb37..097392e8 100644 --- a/source/xps/xps-doc.c +++ b/source/xps/xps-doc.c @@ -414,7 +414,7 @@ xps_read_page_list(xps_document *doc) } fz_catch(doc->ctx) { - /* FIXME: TryLater ? */ + fz_rethrow_if(doc->ctx, FZ_ERROR_TRYLATER); fz_warn(doc->ctx, "cannot process FixedDocument rels part"); } xps_read_and_process_metadata_part(doc, fixdoc->name, fixdoc); @@ -447,7 +447,7 @@ xps_load_fixed_page(xps_document *doc, xps_page *page) } fz_catch(ctx) { - /* FIXME: TryLater ? */ + fz_rethrow_if(ctx, FZ_ERROR_TRYLATER); root = NULL; } if (!root) diff --git a/source/xps/xps-glyphs.c b/source/xps/xps-glyphs.c index 72f37ca1..52cc0042 100644 --- a/source/xps/xps-glyphs.c +++ b/source/xps/xps-glyphs.c @@ -510,7 +510,7 @@ xps_parse_glyphs(xps_document *doc, const fz_matrix *ctm, } fz_catch(doc->ctx) { - /* FIXME: TryLater ? */ + fz_rethrow_if(doc->ctx, FZ_ERROR_TRYLATER); fz_warn(doc->ctx, "cannot find font resource part '%s'", partname); return; } @@ -527,7 +527,7 @@ xps_parse_glyphs(xps_document *doc, const fz_matrix *ctm, } fz_catch(doc->ctx) { - /* FIXME: TryLater ? */ + fz_rethrow_if(doc->ctx, FZ_ERROR_TRYLATER); fz_warn(doc->ctx, "cannot load font resource '%s'", partname); xps_free_part(doc, part); return; diff --git a/source/xps/xps-image.c b/source/xps/xps-image.c index eb0d876f..cff7860d 100644 --- a/source/xps/xps-image.c +++ b/source/xps/xps-image.c @@ -102,7 +102,7 @@ xps_parse_image_brush(xps_document *doc, const fz_matrix *ctm, const fz_rect *ar } fz_catch(doc->ctx) { - /* FIXME: TryLater ? */ + fz_rethrow_if(doc->ctx, FZ_ERROR_TRYLATER); fz_warn(doc->ctx, "cannot find image source"); return; } @@ -117,7 +117,7 @@ xps_parse_image_brush(xps_document *doc, const fz_matrix *ctm, const fz_rect *ar } fz_catch(doc->ctx) { - /* FIXME: TryLater ? */ + fz_rethrow_if(doc->ctx, FZ_ERROR_TRYLATER); fz_warn(doc->ctx, "cannot decode image resource"); return; } diff --git a/source/xps/xps-outline.c b/source/xps/xps-outline.c index b87460a4..d8b573a9 100644 --- a/source/xps/xps-outline.c +++ b/source/xps/xps-outline.c @@ -131,7 +131,7 @@ xps_load_outline(xps_document *doc) } fz_catch(doc->ctx) { - /* FIXME: TryLater ? */ + fz_rethrow_if(doc->ctx, FZ_ERROR_TRYLATER); outline = NULL; } if (!outline) diff --git a/source/xps/xps-resource.c b/source/xps/xps-resource.c index 5c927e1d..ef699619 100644 --- a/source/xps/xps-resource.c +++ b/source/xps/xps-resource.c @@ -75,7 +75,7 @@ xps_parse_remote_resource_dictionary(xps_document *doc, char *base_uri, char *so } fz_catch(ctx) { - /* FIXME: TryLater ? */ + fz_rethrow_if(ctx, FZ_ERROR_TRYLATER); xml = NULL; } |