summaryrefslogtreecommitdiff
path: root/win32
AgeCommit message (Collapse)Author
2012-01-03Add mubusy buildRobin Watts
Add simple combined exe build for mupdf/muxps tools.
2011-12-23Generalise pdf_links to be fz_links.Robin Watts
Move to a non-pdf specific type for links. PDF specific parsing is done in pdf_annots.c as before, but the essential type (and handling functions for that type) are in a new file fitz/base_link.c. The new type is more expressive than before; specifically all the possible PDF modes are expressable in it. Hopefully this should allow XPS links to be represented too.
2011-12-15Rework pdf_store to fz_store, a part of fz_context.Robin Watts
Firstly, we rename pdf_store to fz_store, reflecting the fact that there are no pdf specific dependencies on it. Next, we rework it so that all the objects that can be stored in the store start with an fz_storable structure. This consists of a reference count, and a function used to free the object when the reference count reaches zero. All the keep/drop functions are then reimplemented by calling fz_keep_sharable/fz_drop_sharable. The 'drop' functions as supplied by the callers are thus now 'free' functions, only called if the reference count drops to 0. The store changes to keep all the items in the store in the linked list (which becomes a doubly linked one). We still make use of the hashtable to index into this list quickly, but we now have the objects in an LRU ordering within the list. Every object is put into the store, with a size record; this is an estimate of how much memory would be freed by freeing that object. The store is moved into the context and given a maximum size; when new things are inserted into the store, care is taken to ensure that we do not expand beyond this size. We evict any stored items (that are not in use) starting from the least recently used. Finding an object in the store now takes a reference to it already. LOCK and UNLOCK comments are used to indicate where locks need to be taken and released to ensure thread safety.
2011-11-15Merge branch 'master' into contextRobin Watts
Mostly redoing the xps_context to xps_document change and adding contexts to newly written code. Conflicts: apps/pdfapp.c apps/pdfapp.h apps/x11_main.c apps/xpsdraw.c draw/draw_device.c draw/draw_scale.c fitz/base_object.c fitz/fitz.h pdf/mupdf.h pdf/pdf_interpret.c pdf/pdf_outline.c pdf/pdf_page.c xps/muxps.h xps/xps_doc.c xps/xps_xml.c
2011-11-14Fix libmupdf.vcproj breakage.Robin Watts
Missing </File> entry.
2011-11-14Add 'simple scale' variant of scaling routines.Robin Watts
draw_simple_scale.c is a cut down version of draw_scale.c, that only uses filter functions that return values strictly in the 0 to 1 range. Because of that, we can use bytes rather than ints as intermediate storage, and have no clipping to do.
2011-11-10Add XPS outline parsing and move outline data struct to fz_outline.Tor Andersson
2011-10-04Move to exception handling rather than error passing throughout.Robin Watts
This frees us from passing errors back everywhere, and hence enables us to pass results back as return values. Rather than having to explicitly check for errors everywhere and bubble them, we now allow exception handling to do the work for us; the downside to this is that we no longer emit as much debugging information as we did before (though this could be put back in). For now, the debugging information we have lost has been retained in comments with 'RJW:' at the start. This code needs fuller testing, but is being committed as a work in progress.
2011-09-21Don't thread ctx through safe fz_obj functions.Tor Andersson
2011-09-20Reshuffle exception context code to fit Tor's aesthetic sense.Tor Andersson
2011-09-15Add context to mupdf.Robin Watts
Huge pervasive change to lots of files, adding a context for exception handling and allocation. In time we'll move more statics into there. Also fix some for(i = 0; i < function(...); i++) calls.
2011-09-05Version 0.9Tor Andersson
2011-06-01Add 2 missing header files to VS solution.Robin Watts
pdf/data_encodings.h and pdf/data_glyphlist.h were added without adding them to the solution.
2011-04-29Add xpsdraw to windows project.Tor Andersson
2011-04-15Use DroidSans.ttf as substitute font.Tor Andersson
2011-04-10Combine build and interpret to make csi, gstate and material private structs.Tor Andersson
2011-04-10xps: Use specific font cache struct instead of hash table.Tor Andersson
2011-04-10Make fz_obj struct opaque.Tor Andersson
2011-04-08Add special case non-aa scan converter with accompanying blit functions.Tor Andersson
Also turn on font hinting when rendering non-aa text.
2011-04-07Add text antialiasing too.Robin Watts
Update the text rendering code to use the raster renderer in freetype rather than the smooth one. No change to the hinting methods used yet.
2011-04-07pdf: Purge unmaintained debug/log printing messages.Tor Andersson
2011-04-07Update README files.Tor Andersson
2011-04-07Simplify makefiles by use of $(wildcard) and chained rules.Tor Andersson
2011-04-06Add batch script to the win32 project to generate font and cmap sources.Tor Andersson
2011-04-06First cut at halftone support. Mono only, 16x16 default halftone.Robin Watts
Add fz_bitmaps (1bpc versions of pixmaps, really). Add fz_halftones (arrays of fz_pixmaps used as threshold arrays). Add simple halftoning code. Add pdfdraw usage of the above (ask for a .pbm and you get a halftoned image).
2011-04-06pdf: Change how CMap and font data files are generated and compiled.Tor Andersson
2011-04-06pdf: Optimize storage for the Adobe Glyph List.Tor Andersson
2011-04-06Introduce end-of-line normalization.Tor Andersson
2011-04-06Move scripts and config files into "scripts" directory.Tor Andersson
2011-04-05Revert projects to VS2005 rather than VS2008. (2005 can be read in 2008, theRobin Watts
reverse is not true). Update projects to reflect recent movement in files.
2011-04-04Le Roi est mort, vive le Roi!Tor Andersson
The run-together words are dead! Long live the underscores! The postscript inspired naming convention of using all run-together words has served us well, but it is now time for more readable code. In this commit I have also added the sed script, rename.sed, that I used to convert the source. Use it on your patches and application code.
2011-04-04Update win32 project files after reshuffling.Tor Andersson
2011-04-03xps: Update win32 project files.Tor Andersson
2011-03-06Slim down freetype thirdparty library build.Tor Andersson
2011-03-03Add new (simpler) MSVC project files.Tor Andersson
2011-03-03Zap the old MSVC project files.Tor Andersson
2011-02-23Update Makefiles and project files for new thirdparty versions.Tor Andersson
2011-02-07Add support for AESv3 encryption from SumatraPDF.Tor Andersson
2010-07-29Use chained reader like interface for filters instead of process interface.Tor Andersson
2010-07-21Add Robin Watts' smooth image scaling code.Tor Andersson
2010-07-16Update MSVC project files to reflect the removal of pdftool.[ch]Tor Andersson
2010-07-15Refactored xref opening functions, command line tools, and rewrote pdfdraw ↵Tor Andersson
to be more illustrative.
2010-07-09Rearrange and merge some files in the fitz directory.Tor Andersson
2010-07-08Remove unmaintained MMX optimized function and runtime detection.Tor Andersson
2010-07-02Tweak optimization flags in MSVC projects.Tor Andersson
2010-07-02Rearrange MSVC projects.Tor Andersson
2010-07-02Add _CRT_SECURE_NO_WARNINGS to MSVC project files to silence some silly ↵Tor Andersson
warnings when building third party libraries.
2010-07-01Remove deprecated Detect64BitPortabilityProblems flag (-Wp64) from MSVC files.Tor Andersson
2010-06-23Remove jbig2dec command line tool from the list of files to build in the VS ↵Tor Andersson
project.
2010-06-01Update win32 project files to the newest version of the thirdparty libs.Tor Andersson