summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-01-08Fix conditional jump or move depends on uninitialised value.Tor Andersson
stm.avail_out is only set if !only_metadata. Reverse the order of the if tests to silence valgrind.
2016-01-08Tweak lex_number to avoid (or minimise) underflowRobin Watts
Keeps operations in the int domain as long as possible, and only resorts to floats if required.
2016-01-06Squash some warningsRobin Watts
2016-01-06Add missing signbit definition for MSVC.Robin Watts
2016-01-06epub: Cache font encoding lookups.Tor Andersson
Add a caching table for the lower planes of unicode, which cover the latin, greek, cyrillic, hebrew and arabic scripts.
2016-01-06epub: Only look for CSS in html head node.Tor Andersson
2016-01-06epub: Speed up css application by sorting the matched property list.Tor Andersson
2016-01-06js: Fix error handling bugs and one scoping bug.Tor Andersson
js_pcall was leaving crap on the stack in case of errors. AFSimple_Calculate needs access to the doc object, but cannot use the usual 'this' binding since it's a function. Add a global reference to the doc object MuPDF_Doc.
2016-01-06epub: Optimize CSS selector matching.Tor Andersson
Remove strcpy and strtok calls when matching class conditions.
2016-01-05Separate pdf_drop_annots (that drops lists) and fz_drop_annot.Tor Andersson
2016-01-05Add pixmap struct accessors.Tor Andersson
2016-01-05Stylistic naming cleanups.Tor Andersson
2016-01-05Clean up trailing whitespace.Tor Andersson
2016-01-05Change fz_ftoa to fz_grisu to remove one extra layer of function calls.Tor Andersson
2016-01-05Speed up fz_ftoa.Simon Reinhardt
During pdf_save_document the main performance bottleneck is the formatting of floats to decimal ASCII representations in fz_ftoa. Fix this by using the Grisu2 algorithm, the fastest known algorithm for accurate printing of IEEE floating point numbers while minimizing the number of produced decimal digits. This requires no libc support, only integer arithmetic.
2016-01-05epub: Speed up CSS style application by using faster strtod.Tor Andersson
CSS doesn't need precision, and doesn't support exponential notation. Use a simpler string to float conversion algorithm, which is magnitudes of order faster.
2016-01-05epub: Speed up font layout by caching freetype advance widths.Tor Andersson
2016-01-05Clarify snprintf length when printing to fz_buffer and fz_output.Tor Andersson
The +1's for zero terminating bytes are not needed: printf to a fz_buffer or fz_output does not write a zero terminator. The extra code to add space for a zero terminator when calling snprintf internally are merely confusing.
2016-01-05Remove fz_page argument from fz_annot function calls.Tor Andersson
2016-01-05gl: Draw outline around text fields.Tor Andersson
2016-01-05gl: Remove unused GLUT variables from makefiles.Tor Andersson
2016-01-05Link required thirdparty libraries into one library: libmupdfthird.aTor Andersson
Keep the extra thirdparty libraries (curl and glfw) separate. This matches the build process for android and win32. Also purge some unused makefile sections.
2015-12-28Drop 'jsimp' abstraction and use mujs directly.Tor Andersson
2015-12-28Rename fz_image_get_pixmap to fz_get_pixmap_from_image.Tor Andersson
2015-12-22Update jbig2dec to latest.Robin Watts
In particular this takes on the Memento fixes for bug 696183.
2015-12-18iOS: Fix two warnings in MuPrintPageRenderer with latest XcodeJoseph Heenan
MuPrintPageRenderer.h:2:9: error: 'MuDocRef.h' file not found with <angled> include; use "quotes" instead MuPrintPageRenderer.m:35:16: warning: if statement has empty body [-Wempty-body] MuPrintPageRenderer.m:35:16: note: put the semicolon on a separate line to silence this warning
2015-12-18Rename fz_image_get_sanitised_res to fz_image_resolution.Tor Andersson
2015-12-18Remove fz_save_document and use pdf_save_document directly instead.Tor Andersson
In preparation of adding pdf_write_document that writes a document to a fz_output stream.
2015-12-18Rename fz_halftone_pixmap to fz_new_bitmap_from_pixmap.Tor Andersson
2015-12-18Fix warning in zlib thirdparty build.Tor Andersson
The gzip functions need lseek, open, read, write, close. Those functions are only defined in unistd.h is included, so make sure that happens.
2015-12-15muPDF iOS app: Support for the latest (3.4.1) Crashlytics.fredrossperry
- added four zlib files to Makethird that contain functions needed by the new version. - added -Wno-implicit-function-declaration so these new files, which contain some implicit declarations, would build for iOS - added a section to Info.plist that holds the new API key, with an invalid value that the release build script will fill in. - changes to MuAppDelegate for the new version. <log></log>
2015-12-15muPDF iOS app: properly support 4-inch iPhone.fredrossperry
A new TestFlight build could not be uploaded without making sure that the default launch screen image was getting placed in the app package. <log></log>
2015-12-15muPDF iOS app: add bitcode and UIRequiresFullScreenfredrossperry
Starting with Xcode 7, bit code is enabled by default. This change enables it in the static libraries that are linked, by adding the appropriate compiler switch. Also added UIRequiresFullScreen to the plist; this seems to have no ill effect when uing XCode 6. <log></log>
2015-12-15Add logo files.Tor Andersson
2015-12-15Rename fz_buffer_cat to fz_append_buffer.Tor Andersson
2015-12-15Rename fz_output_x to fz_write_pixmap_as_x etc.Tor Andersson
2015-12-15Rename fz_write_x to fz_save_pixmap_as_x or fz_save_bitmap_as_x.Tor Andersson
Separate naming of functions that save complete files to disk from functions that write data to streams.
2015-12-14Add fz_clone_pathRobin Watts
Will be required for JNI bindings.
2015-12-14Add fz_clone_textRobin Watts
Will be required for JNI bindings.
2015-12-14Add 'const' to the context lock and alloc structure pointers.Robin Watts
This highlights the fact that we never alter the internals, and allows callers to pass in static const pointers.
2015-12-14Add user context field.Robin Watts
This may help the MuPDF JNI code, so it's likely to be useful for other users too.
2015-12-14Fix signed/unsigned warning.Robin Watts
Seen with MSVC.
2015-12-14Android: Try and minimise warnings in JNI code.Robin Watts
Push the pointer->long and long->pointer casting through 2 static inline functions.
2015-12-14Fix Windows build; cmapdump.c requires fz_fopen_utf8Robin Watts
2015-12-11Remove text clip accumulation.Tor Andersson
We can now group all clipped text into one fz_text object and simplify the device interface.
2015-12-11Keep spans of multiple fonts and sizes in one fz_text object.Tor Andersson
2015-12-11Rename structured text structs and functions to 'stext'.Tor Andersson
Less risk of confusion with the text type used in the device interface.
2015-12-11Use fz_output instead of FILE* for most of our output needs.Tor Andersson
Use fz_output in debug printing functions. Use fz_output in pdfshow. Use fz_output in fz_trace_device instead of stdout. Use fz_output in pdf-write.c. Rename fz_new_output_to_filename to fz_new_output_with_path. Add seek and tell to fz_output. Remove unused functions like fz_fprintf. Fix typo in pdf_print_obj.
2015-12-11Fix warning about unused functions.Tor Andersson
2015-12-11Use strerror for more detailed error messages.Tor Andersson