diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-07-15 16:14:22 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-07-15 16:20:39 +0100 |
commit | 3de927cc81fe522e3f22ff014b76d1623692e736 (patch) | |
tree | f11430ddf238b2dca67b24eec5c0cbd81bfd890e /source/tools | |
parent | 510110ebdfab78c9ff5043120d8d024f8262a525 (diff) | |
download | mupdf-3de927cc81fe522e3f22ff014b76d1623692e736.tar.xz |
Add -P flag to muraster.
Diffstat (limited to 'source/tools')
-rw-r--r-- | source/tools/muraster.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/tools/muraster.c b/source/tools/muraster.c index e3d95772..3430d297 100644 --- a/source/tools/muraster.c +++ b/source/tools/muraster.c @@ -664,6 +664,7 @@ static void usage(void) "\t-M -\tmax bandmemory (e.g. 655360)\n" #if MURASTER_THREADS != 0 "\t-T -\tnumber of threads to use for rendering\n" + "\t-P\tparallel interpretation/rendering\n" #endif "\n" "\t-W -\tpage width for EPUB layout\n" @@ -1564,7 +1565,7 @@ int main(int argc, char **argv) x_resolution = X_RESOLUTION; y_resolution = Y_RESOLUTION; - while ((c = fz_getopt(argc, argv, "p:o:F:R:r:w:h:fB:M:s:A:iW:H:S:T:U:v")) != -1) + while ((c = fz_getopt(argc, argv, "p:o:F:R:r:w:h:fB:M:s:A:iW:H:S:T:U:vP")) != -1) { switch (c) { @@ -1613,6 +1614,13 @@ int main(int argc, char **argv) fprintf(stderr, "Threads not enabled in this build\n"); break; #endif + case 'P': +#if MURASTER_THREADS != 0 + bgprint.active = 1; break; +#else + fprintf(stderr, "Threads not enabled in this build\n"); + break; +#endif case 'v': fprintf(stderr, "muraster version %s\n", FZ_VERSION); return 1; } } |