summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-06-16Split image output functions into separate files.Tor Andersson
2016-06-16gl: Add PDF creator and producer to info display.Tor Andersson
2016-06-16Update JNI bindings for pixmap alpha changes.Tor Andersson
2016-06-16Update getStride and add getAlpha to JS bindings.Tor Andersson
2016-06-16Fix crash due to double closing output in pdf_save_document.Robin Watts
Broken due to refactoring. Thanks to Michael for spotting this.
2016-06-16MSVC: 64bit fixes.Robin Watts
Update libfonts build directory; this was causing many warnings because the debugging information was being put in the wrong place. Also ensure that libfonts is build for the different 64bit configs.
2016-06-15tiff: Add omitted static void return type.Sebastian Rasmussen
Commit 44d65838233baef2c16397847dca3061cde7ec4e accidentally omitted the return type when adding TIFF SGI LUV decoding.
2016-06-14MSVC: Reorder objects in project file.Robin Watts
Presumably because the files were hand edited before, and MSVC likes to alphasort.
2016-06-14Add TIFF SGI LUV decoding.Robin Watts
2016-06-14Redo accidentally reverted mujs submodule change.Robin Watts
2016-06-14MSVC 64bit fixesRobin Watts
libfonts wasn't being generated in 64bit configs. murun had the wrong include path in 64bit configs. generated was being invoked wrongly in 64bit configs.
2016-06-14Update TIFF LZW decode.Robin Watts
TIFF 5.0 uses a slightly laxer set of rules for TIFF decode. Specifically, when we hit the maximum code, we are not required to send a clear code immediately, but it can overrrun. We don't bother storing codes > 12 bits, because they can never be used. This avoids the need to extend the table.
2016-06-14Add missing subtools to mutool manpage.Sebastian Rasmussen
2016-06-14Fix typos in various parts of the code.Sebastian Rasmussen
2016-06-14Add optional support for Luratech JBIG2 decoder.Sebastian Rasmussen
If thirdparty/luratech is populated then this decoder will be preferred over jbig2dec (even if both are present).
2016-06-14stext: Non-initial glyphs in ligatures must set start/stop.Sebastian Rasmussen
Normal glyphs and inital glyphs in ligatures have their start/stop (p and q) set before determining whether to append to an existing span or insert a space. For non-initial glyphs the start/stop were never set which introduced uninitialized values into the span data structure. Now, all glyphs have their start/stop set and then if it is a non-initial glyph in a ligature the append and space detection is ignored. This means that no values are uninitialized.
2016-06-14Teach "make tags" target to be quiet.Sebastian Rasmussen
If verbose=yes is set then the full list of files will be printed.
2016-06-14bmp: Support arbitrary bit mask widths.Sebastian Rasmussen
2016-06-13Add pdf_write_document.Robin Watts
Allow us to write a document to an fz_output as opposed to just a filename. We cannot write digital signatures in this method though. Will ponder that in a later commit.
2016-06-13Fix VS2012 builds.Robin Watts
Slight tweak to the #ifdeffery required.
2016-06-13Update MuJS.Robin Watts
Include VS2012 fix.
2016-06-13Add missing restrict.Robin Watts
Missing qualifier from prototype.
2016-06-13Fix Android viewer build with js.Robin Watts
The recent js change requires a makefile tweak.
2016-06-13Bug 696822: Refuse to save a pdf file incrementally if it would break.Robin Watts
If a file cannot be saved incrementally, then don't accept that as an option. In practise this means if someone asks to save a file incrementally, and it was repaired, or it uses encryption then throw an error. Add a new function to ask if it's safe to save a file incrementally, and use that in the appropriate places.
2016-06-13Bug 696831: iOS/OS X support for size optimizationsJoseph Heenan
2016-06-09iOS: Run Xcode's "Convert to Modern ObjC" for "ObjC literals"Joseph Heenan
Uses the more modern/concise syntax that arrived in Xcode 4.4
2016-06-09iOS: Replace property like accessors with propertiesJoseph Heenan
2016-06-09iOS: Use modern instancetype instead of id for init return typeJoseph Heenan
2016-06-09iOS: Fix a bad call to super in MuDocumentController.mJoseph Heenan
We're a subclass of UIViewController, so must call one of UIViewController's designated initialisers.
2016-06-09iOS: Replace char * with NSString in ObjC APIsJoseph Heenan
What is effectively our external API on iOS would be expected to use NSString rather than char *.
2016-06-09iOS: Remove some printfsJoseph Heenan
We shouldn't output any debug in default release build.
2016-06-08Move to using size_t for all mallocs.Robin Watts
This has knock on effects in the store. fix
2016-06-08Bug 696826: Android Viewer: Cope with null itemRobin Watts
It seems that we can end up with a null item in MuPDFReaderView onSingleTap. Add some simple checks to avoid this.
2016-06-07Fix subarea image calculationsRobin Watts
Calculations that involved non power of 2 bpps were going wrong.
2016-06-06Bug 696810: Avoid integer overflows.Robin Watts
When blanking pixmaps (or converting pixmap colors), watch out for integer overflows.
2016-06-06Update MuJS.Tor Andersson
2016-06-06Add FZ_ENABLE_JS configuration define.Tor Andersson
2016-06-06Minimize the number of CMaps built in to the ones listed in the spec.Tor Andersson
Omitting the unlisted UTF-8 and UTF-32 CMaps saves ~1M. Omitting the unlisted other CMaps saves ~200k. Define CJK_CMAPS=0 to skip all CMaps. Define EXTRA_CMAPS=1 to include the various other CMaps. Define UTF8_CMAPS=1 and UTF32_CMAPS to include the UTF-8 and UTF-32 CMaps.
2016-06-06Add build=small target, optimizing for size.Tor Andersson
Compile with -Os, -ffunction-sections, -fdata-sections and link with --gc-sections and -s (strip) to include only the functions and data tables actually required.
2016-06-06Fix broken ARM implementation of scale_row_to_temp3.Robin Watts
I had changed some code to *3 when creating the routine from the 4 bpp variant, but this particular multiplication should still have been *4, as it was looking up in an int table.
2016-06-06Fix problem with FZ_PLOTTER_G only builds.Robin Watts
In C we can't have a label as the only thing in a block.
2016-06-06Android Viewer: Fix jni code w.r.t pixmap alpha API changes.Robin Watts
Need to specify that we are using alphas now.
2016-06-06Change ARM assembler to be compatible with Xcode/clangJoseph Heenan
clang only accepts the unified format - so use the unified syntax everywhere, and add .syntax unified to tell the gnu assembler we're using the unified syntax.
2016-05-31Bug 696813: Fix Lab colorspaces.Robin Watts
Lab colorspaces had been broken due to incorrect clipping of color values introduced in an effort to fix Bug 696796.
2016-05-31MSVC: Enable Function level linkingRobin Watts
Just a few places in the MSVC projects didn't have this enabled.
2016-05-31Update test device with passthrough option.Robin Watts
Update the test device so it can be used 'wrapping' another device. In particular, it can be used to wrap the display list device so that we can evaluate 'color or not' while building the display list rather than having to rerun the display list afterwards. Also, give improved control over whether we test every pixel of images/shadings.
2016-05-31memento.h: Replace memory.h with stdlib.hJoseph Heenan
memory.h isn't part of the C standard, and Xcode was getting upset when building mupdf as a module: error: include of non-modular header inside framework module 'MuPDF.mupdf.memento' [-Werror,-Wnon-modular-include-in-framework-module]
2016-05-30Fix some "defined but not used" when FZ_PLOTTERS_RGB is 0.Robin Watts
2016-05-30Avoid fz_font pulling harfbuzz in.Robin Watts
We store an hb_font in every font, and currently have fz_drop_font know to call harfbuzz to destroy it. This causes harfbuzz to be included even in builds that never use it. We improve this situation by storing both an hb_font, and a function pointer to destroy it within fz_font. This costs us an extra pointer per fz_font, but solves the problem.
2016-05-30Link tools via libmutool.Robin Watts
This enables linker to drop .o files that aren't required.