summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-11-27Skip BOM in XML parser which was confusing the XPS parser.Tor Andersson
The BOM was erroneously being emitted as a text node.
2012-11-27Android: fix accidently swapped title and message in alert dialogPaul Gardiner
2012-11-27Android: implement saving of form dataPaul Gardiner
2012-11-27Forms: avoid directly saving to the original filePaul Gardiner
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.
2012-11-26Move xps_xml.c to base_xml.c in Android makefiles.Robin Watts
Missed from previous commit.
2012-11-26Remove xps/xps_xml.c from libmupdf-V8 VS project.Robin Watts
Was missed in previous commit.
2012-11-26Move XML parser into fitz directory.Tor Andersson
2012-11-26xps: Move XML parser into fitz namespace.Tor Andersson
2012-11-26xps: Fix potential off-by-one buffer overwrite in XML parser.Tor Andersson
2012-11-26xps: Save text content in XML nodes.Tor Andersson
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.
2012-11-26Use display list for type 3 glyphs.Tor Andersson
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.
2012-11-22Hardwire AA_BITS to 8 on android build.Robin Watts
2012-11-21Add weights caches for pixmap scaling.Robin Watts
This means that repeated scaling of the same pixmap (or scales of 'stacked' pixmaps) will do less needless recalculation.
2012-11-21Android: Move draw_simple_scale.c back into Core.mkRobin Watts
By manually inserting a literal pool, we can avoid the need to split draw_simple_scale.c out.
2012-11-21Bug 693458: Fix subscaler logic.Robin Watts
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.
2012-11-21Bug 693458: Fix calculation of pointer offset in subsampler.Robin Watts
Thanks to zeniko for pointing this out. Non monochrome subsamples would have gone wrong in the last line.
2012-11-21Bug 693458: Fix previous image subsample factor commit.Robin Watts
Thanks to zeniko for pointing out these places that I'd missed updating the old code.
2012-11-21Forms: ensure changed widgets are marked dirty rather than parent fieldPaul Gardiner
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.
2012-11-21ARM code pixmap subsampler.Robin Watts
Move the assembly macros into fitz-internal.h.
2012-11-21ARM optimised fast_cmyk_to_rgb code.Robin Watts
2012-11-21Bug 693458: Fix typo in fax decoder.Robin Watts
Silly slip in my optimised code that results in failing to find differences at the ends of lines.
2012-11-20Android: fix problem if screen timesout during alert displayPaul Gardiner
2012-11-20Fix android javascript build compile error.Robin Watts
A slip up in the previous whitespace fix commit removed a {. Put it back.
2012-11-20Obsess about whitespace.Tor Andersson
2012-11-20Android: remove SafeAsyncTaskPaul Gardiner
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.
2012-11-20Android: use AsyncTask from android sourcePaul Gardiner
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
2012-11-20Missed Core2.mk in the profiler commit.Robin Watts
Forgot to add a new file to git.
2012-11-20Rename "tolower" back to "fz_tolower"Chris Liddell
to avoid clashes, especially on systems where "tolower" is declared as a macro, for example Cygwin.
2012-11-19Add image subsampling function.Robin Watts
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.
2012-11-19Tweak image decode downscale factor internals.Robin Watts
When calculating the factor to use for image downscales, calculate it as a shift rather than a divisor.
2012-11-19Unroll inner loop of ARM version of scale_row_to_temp1.Robin Watts
This avoids a stall, and saves time on repeated loops.
2012-11-19Enable android profiler build.Robin Watts
Requires android-ndk-profiler to be copied into android and android/jni. Also requires r8c of the NDK.
2012-11-19Attempt to speed up fax decompression.Robin Watts
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.
2012-11-19Android: implement alert dialogPaul Gardiner
2012-11-19javascript fix typo in util functionPaul Gardiner
2012-11-16Implement fast_cmyk_to_rgb without calling cmyk_to_rgb.Robin Watts
Same algorithm, just implemented in fixed point with a 1 place cache and checks for trivial black/white rather than floating point.
2012-11-16Rejig cmyk_to_rgb to avoid repeated muls.Robin Watts
Avoid repeated muls by reusing intermediates. Speed generation of those intermediates by using adds/subs rather than muls.
2012-11-16Fix build with openjpeg-1.5.1Wouter van Kesteren
2012-11-16Only invert color values, not alpha, in fz_invert_pixmap_rect.Tor Andersson
2012-11-16Add functions to highlight and copy text selections.Tor Andersson
2012-11-16Move text searching function into fitz.Tor Andersson
2012-11-16Add fz_write_buffer_rune to append a utf-8 character to a buffer.Tor Andersson
2012-11-16Build on Solaris (10, at least)Chris Liddell
Requires GNU make and gcc.
2012-11-09Android: restrict annotation updates to ones within the patch areaPaul Gardiner
2012-11-09Android: fix bug causing intermittent out of position hq renderingPaul Gardiner
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.
2012-11-08Forms: correctly handle setting the value of a checkbox fieldPaul Gardiner
2012-11-08Forms: handle all color types in Field.setTextColorPaul Gardiner
2012-11-08Android: fix rendering-wrong-page bugPaul Gardiner
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.
2012-11-07Javascript: add alerts to keystroke-checking utility functionsPaul Gardiner
2012-11-07Javascript: implement Field.namePaul Gardiner