Age | Commit message (Collapse) | Author |
|
MuPDF needs access to the original file when saving, and in any case
directly overwritting the original file has much more potential for
data loss than use of a temporary file.
|
|
Missed from previous commit.
|
|
Was missed in previous commit.
|
|
|
|
|
|
|
|
New accessor xml_text() will return NULL or text content of a node.
Tag names for text nodes is the empty string "".
Fix bug 692191.
|
|
We still need to have the callback for type 3 fonts that are uncacheable.
With this change the callback is only ever called directly from the
interpreter in fz_prepare_t3_glyph and fz_render_t3_glyph_direct.
|
|
|
|
This means that repeated scaling of the same pixmap (or scales of
'stacked' pixmaps) will do less needless recalculation.
|
|
By manually inserting a literal pool, we can avoid the need to
split draw_simple_scale.c out.
|
|
Once again, thanks to zeniko for pointing this out. With non-monochrome
scales, the 'stray' cases at the end of the line will loop 0 times on x.
resulting in a skewed result.
|
|
Thanks to zeniko for pointing this out. Non monochrome subsamples
would have gone wrong in the last line.
|
|
Thanks to zeniko for pointing out these places that I'd missed updating
the old code.
|
|
09+20computer+20fx-fo-dx-adr-mx.pdf has a "PROJECT TITLE" field that appears
on every page, but needs setting only on one page. This commit makes that
field update correctly.
|
|
Move the assembly macros into fitz-internal.h.
|
|
|
|
Silly slip in my optimised code that results in failing to find
differences at the ends of lines.
|
|
|
|
A slip up in the previous whitespace fix commit removed a {. Put
it back.
|
|
|
|
No longer needed because apparently the lastest AsyncTask implementation,
that we've included from the android source, has an unbounded queue.
This wont lead to us doing unbounded renders before the one we actually
want because we cancel all but the ones we want.
|
|
We need this because only later version of AsyncTask supported
executeOnExecutor. We have one task that must not be sequentialised
with others, so we need to be able to garantee it gets its own thread
|
|
Forgot to add a new file to git.
|
|
to avoid clashes, especially on systems where "tolower" is declared as a
macro, for example Cygwin.
|
|
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.
|
|
When calculating the factor to use for image downscales, calculate it
as a shift rather than a divisor.
|
|
This avoids a stall, and saves time on repeated loops.
|
|
Requires android-ndk-profiler to be copied into android and android/jni.
Also requires r8c of the NDK.
|
|
A huge number of calls are made to getbit from find_changing in fax
decompression. On Android profiling shows that this accounts for 25%
of time in handling page 2 of IA3Z0845.pdf.
Rewrite code to deal with bytes at a time for speed. Profiling
now shows 5% in this function.
|
|
|
|
|
|
Same algorithm, just implemented in fixed point with a 1 place cache
and checks for trivial black/white rather than floating point.
|
|
Avoid repeated muls by reusing intermediates. Speed generation
of those intermediates by using adds/subs rather than muls.
|
|
|
|
|
|
|
|
|
|
|
|
Requires GNU make and gcc.
|
|
|
|
1) Check before attempting to perform a partion update that the
current view area corresponds to the recorded one. Otherwise the
held bitmap will not be suitable for the basis of an update
2) When performing a complete update, reallocate the bitmap holder
to avoid risk of another task (possibly drawing for a different area)
interacting with the about-to-be-started task.
|
|
|
|
|
|
The page number was being cached at two levels, and some calls
were skipping the upper level, leaving it out of date. The
fix is always to call the lower level gotoPage from the upper level.
Since the lower level caches, there is little to gain in avoiding
the call, in any case.
|
|
|
|
|
|
|
|
Also update pdf_dict_puts so that passing NULL to val deletes the terminal
key.
Update pdfapp.c to update the screen between passing a mouse event and
invoking a dialog box for value entry
Extend javascript wrapper to handle all color spaces
|
|
|