summaryrefslogtreecommitdiff
path: root/image/png.c
Commit message (Collapse)AuthorAgeFilesLines
* move image content handlers to accomodate core build changesVincent Sanders2016-05-231-614/+0
|
* stop teh png image content handler directly reporting errors to usersVincent Sanders2016-04-291-2/+0
|
* stop content header dragging in so many other headersVincent Sanders2016-04-191-0/+1
|
* reduce content header interdependancyVincent Sanders2016-04-181-1/+1
|
* Fix size_t printf formattingVincent Sanders2016-03-171-1/+4
| | | | | | | The printf formatting for size_t is set in c99 as %zu but in windows it is %Iu this is solved by adding and inttypes style PRI macro for size_t This also uses this macro everywhere size_t is formatted.
* Change LOG() macro to be varadicVincent Sanders2015-05-281-6/+5
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* Fix the PNG handler crashing in low memory situations.Vincent Sanders2015-05-121-1/+13
| | | | | | | Obtaining a netsurf bitmap buffer may fail on some frontends (RISC OS especially) as the bitmap allocation is not performed until the buffer is requested. The PNG image handler failed to check for this when populating the row pointer structure.
* Move bitmap operations into an operation table.Vincent Sanders2015-04-131-22/+17
| | | | | | | The generic bitmap handlers provided by each frontend are called back from the core and therefore should be in an operation table. This was one of the very few remaining interfaces stopping the core code from being split into a library.
* PNG: add more volatile to appease GCCJohn-Mark Bell2015-02-241-2/+2
|
* Fix two genuine bugs found by Coverity. Checking the wrong pointers for NULL.Michael Drake2013-10-231-10/+8
|
* 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