summaryrefslogtreecommitdiff
path: root/image/png.c
Commit message (Collapse)AuthorAgeFilesLines
* Avoid calling bitmap_modified with NULL.John-Mark Bell2013-01-131-1/+2
|
* make image content handlers title setting use the heap instead of the stack ↵Vincent Sanders2012-10-251-4/+6
| | | | and remove the possibility of buffer overruns
* More useful title info for images.Michael Drake2012-10-241-2/+3
|
* reduce talloc usage to box tree layout onlyVincent Sanders2012-10-031-7/+11
|
* Treat image/x-png as a synonym for image/pngJohn Mark Bell2012-01-291-1/+2
| | | | svn path=/trunk/netsurf/; revision=13414
* Change GTK plotting to use cairo surfaces throughoutVincent Sanders2011-12-301-1/+3
| | | | svn path=/trunk/netsurf/; revision=13354
* Appease GCC 3.4John Mark Bell2011-09-151-7/+7
| | | | svn path=/trunk/netsurf/; revision=12798
* Add Image cache and inegrate png and jpeg content handlersVincent Sanders2011-09-041-109/+264
| | | | | | | Current periodic cache clean algorithm is poor and requires replacing with something suitable (probably a segregated LRU) The speculative load algorithm is likewise poor and only uses the image size to make a decision. svn path=/trunk/netsurf/; revision=12720
* Remove mime_type parameter from content handler content_type callback APIJohn Mark Bell2011-09-031-1/+1
| | | | svn path=/trunk/netsurf/; revision=12704
* refactor bitmap out of generic content structureVincent Sanders2011-08-311-2/+8
| | | | svn path=/trunk/netsurf/; revision=12686
* make image content handlers build conditional from teh makefileVincent Sanders2011-08-281-6/+0
| | | | svn path=/trunk/netsurf/; revision=12673
* Initial image content handler refactorVincent Sanders2011-08-271-43/+4
| | | | svn path=/trunk/netsurf/; revision=12671
* Fix transition from LOADING to ERROR state after content has been locked for ↵John Mark Bell2011-07-201-1/+0
| | | | | | conversion svn path=/trunk/netsurf/; revision=12614
* Direct access of png_structp members is deprecatedJohn Mark Bell2011-07-071-1/+1
| | | | svn path=/trunk/netsurf/; revision=12594
* Remove plotter table global. Pass a redraw context around redraw functions. ↵Michael Drake2011-06-301-2/+2
| | | | | | Knockout could be handled better. Note: untested on most front ends. svn path=/trunk/netsurf/; revision=12543
* Unify content_redraw params in content_redraw_data struct. Core and RISC OS ↵Michael Drake2011-06-281-8/+6
| | | | | | content handlers updated. svn path=/trunk/netsurf/; revision=12529
* Fix warnings.Michael Drake2011-06-131-2/+2
| | | | svn path=/trunk/netsurf/; revision=12472
* Redirect libpng errors to the standard NetSurf logfileChris Young2011-06-121-0/+19
| | | | svn path=/trunk/netsurf/; revision=12471
* refactor content handler initilisation to use named initialisorsVincent Sanders2011-05-091-15/+8
| | | | svn path=/trunk/netsurf/; revision=12341
* consolidate content redraw Vincent Sanders2011-05-081-14/+1
| | | | | | more cleanups ready for image content refactor svn path=/trunk/netsurf/; revision=12317
* clean up jpeg image handling ready for refactorVincent Sanders2011-05-081-1/+3
| | | | svn path=/trunk/netsurf/; revision=12311
* Cleanup png codeVincent Sanders2011-05-071-290/+266
| | | | | | only use the bitmap pointer in the png content the one in teh base content seems extraneous for png. svn path=/trunk/netsurf/; revision=12304
* Merge branches/jmb/content-factory to trunkJohn Mark Bell2011-05-061-70/+217
| | | | svn path=/trunk/netsurf/; revision=12283
* Fix bug #3194007: stop emitting duplicate READY/DONE events.John Mark Bell2011-02-271-1/+2
| | | | | | | * Make content handlers responsible for setting READY/DONE state & emitting events. * Stop content_convert doing this when there is a registered convert function for the content type. svn path=/trunk/netsurf/; revision=11850
* ConstifyJohn Mark Bell2011-02-141-2/+2
| | | | svn path=/trunk/netsurf/; revision=11680
* Pass clip rect as struct through content_redraw api. Update the front ends ↵Michael Drake2011-02-131-4/+3
| | | | | | to use this. Note only RO build tested. svn path=/trunk/netsurf/; revision=11670
* Remove unnecessary assertion (we've already handled the NULL case)John Mark Bell2011-01-091-2/+0
| | | | svn path=/trunk/netsurf/; revision=11265
* Remove erroneous assertion: there may be no bitmap object if there was no ↵John Mark Bell2010-05-011-0/+9
| | | | | | PNG data. svn path=/trunk/netsurf/; revision=10540
* Most of a stop implementation.John Mark Bell2010-04-041-0/+24
| | | | | | | | | Remaining work: 1) Clone content_html_data 2) Cloning content_css_data requires the charset of the old content 3) Calling hlcache_handle_abort() before a content has been created must clean up the retrieval context. svn path=/trunk/netsurf/; revision=10236
* Constify data parameter to *_process_dataJohn Mark Bell2010-04-031-1/+1
| | | | svn path=/trunk/netsurf/; revision=10234
* Use mutator to modify content's title field.John Mark Bell2010-04-031-10/+4
| | | | svn path=/trunk/netsurf/; revision=10231
* The convert stage of a content's state progression no longer reflows the ↵John Mark Bell2010-03-291-1/+1
| | | | | | | | | | | | | content to the provided dimensions. It is now defined as converting the content into a state in which it is ready for use. The user of the content is now responsible for performing an initial reformat (sic) of the content before it can be redrawn. Purge width/height parameters from hlcache_handle_retrieve/content_convert/*_convert APIs. Fix up content handlers affected by the above change in semantics. Ensure that browser_window_callback performs an initial reformat of its content. svn path=/trunk/netsurf/; revision=10207
* Merge jmb/new-cache; r=dsilvers,rs=vinceDaniel Silverstone2010-03-281-4/+8
| | | | svn path=/trunk/netsurf/; revision=10180
* Accomodate for antique versions of libpng (as found with the BeOS R5 ↵François Revel2010-02-171-0/+11
| | | | | | | | | devkit), which either: - don't define the png_jmpbuf macro, - have a different name for png_set_expand_gray_1_2_4_to_8(). svn path=/trunk/netsurf/; revision=10069
* update png handler to not use deprecated/removed call.Vincent Sanders2010-01-281-4/+4
| | | | | | improve type usage to avoid incompatible pointer type warnings on newer libpng versions. svn path=/trunk/netsurf/; revision=9921
* Actually handle failure to allocate bitmap structure or retrieve its data ↵John Mark Bell2009-07-311-15/+35
| | | | | | buffer pointer. I hope these longjmps are valid -- libpng's documentation is unhelpfully vague on this subject. svn path=/trunk/netsurf/; revision=8924
* Merge LibCSS port to trunk.John Mark Bell2009-07-231-1/+2
| | | | svn path=/trunk/netsurf/; revision=8752
* Improve bitmap plotter APIVincent Sanders2009-06-301-10/+15
| | | | svn path=/trunk/netsurf/; revision=8195
* Make libpng image handler set opaque info.Michael Drake2009-03-021-14/+15
| | | | svn path=/trunk/netsurf/; revision=6669
* Add missing calls to bitmap_modified(). This fixes using libpng in the BeOS ↵François Revel2008-10-101-3/+4
| | | | | | port. svn path=/trunk/netsurf/; revision=5532
* Fix format string warning errorDaniel Silverstone2008-10-101-1/+1
| | | | svn path=/trunk/netsurf/; revision=5528
* 'unsigned long' -> 'colour' where it made sense.John Tytgat2008-09-281-2/+2
| | | | svn path=/trunk/netsurf/; revision=5459
* A bunch of fixes to the libpng bindingJohn Mark Bell2008-09-151-15/+23
| | | | svn path=/trunk/netsurf/; revision=5338
* Fix include path for libpng.François Revel2008-09-151-1/+1
| | | | | | | | Libpng mandates using <png.h>, if it doesn't work for you, fix your OS :D (or use -I) See http://www.libpng.org/pub/png/libpng-1.2.5-manual.html#section-2 svn path=/trunk/netsurf/; revision=5333
* Add libpng support. Default to off.Daniel Silverstone2008-09-151-0/+284
| | | | svn path=/trunk/netsurf/; revision=5330
* [project @ 2005-01-02 04:05:21 by jmb]John Mark Bell2005-01-021-256/+0
| | | | | | Begone, redundant code svn path=/import/netsurf/; revision=1422
* [project @ 2004-10-17 21:37:01 by jmb]John Mark Bell2004-10-171-0/+10
| | | | | | | Fixup to use plotters. Someone please fix the png bug. ta ;) svn path=/import/netsurf/; revision=1321
* [project @ 2004-10-04 23:54:42 by rjw]Richard Wilson2004-10-041-0/+1
| | | | | | Moved GIF file reading to image/, optimisation of plotting for GIFs, JNGs, PNGs and JPEGs, initial work for toolbar customisation. Possibly some other things too. svn path=/import/netsurf/; revision=1301
* [project @ 2004-09-04 16:41:28 by jmb]John Mark Bell2004-09-041-0/+245
Fix jpeg redraw Move png.c/h to /image and rework to use the bitmap code Make RISC OS bitmap struct publically accessible (via riscos/bitmap.h) Draw export now embeds JPEGs and PNGs/MNGs/JNGs correctly again. Background images are now plotted correctly again. svn path=/import/netsurf/; revision=1268