Commit Graph

257 Commits

Author SHA1 Message Date
Vincent Sanders
010306e1ad Clean up doxygen errors in image handlers. 2015-06-21 23:27:21 +01:00
Vincent Sanders
fbbb6d664d Stop unused variable warning when no core image handlers are enabled. 2015-06-18 10:26:24 +01:00
Vincent Sanders
20d29c0537 fixup logging macros that incorrectly override the LOG() macro name 2015-05-28 17:33:18 +01:00
Vincent Sanders
0d811963c1 fixup all the remaining logging macro callsites
The semantic patch tool appears to have missed some difficult to
reason about callsites which have now been manually cleaned up
2015-05-28 17:06:18 +01:00
Vincent Sanders
c105738fa3 Change LOG() macro to be varadic
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.
2015-05-28 16:08:46 +01:00
Vincent Sanders
d038af3178 Fix the PNG handler crashing in low memory situations.
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.
2015-05-12 08:32:32 +01:00
Vincent Sanders
de98108e7f Add render to bitmap operations and update gtk to provide it. 2015-04-22 23:14:51 +01:00
Vincent Sanders
e7f9dbcb10 Remove webp image handling
The bitmap and image handling interfaces have changed within NetSurf
and the webp image handling has not been fixed up appropriately to
cope.

After discussion with the other developers it has been decided that
the webp support is not worth the necessary development effort to
rewrite and maintain.

The webp format is not in wide usage and Mozilla, Microsoft and Apple
have not adopted it. This means the removal will not adversely impact
NetSurf.

Resolves:2310
2015-04-21 14:03:02 +01:00
Vincent Sanders
eab53da088 Remove unecessary inclusion of the image bitmap header 2015-04-20 22:03:43 +01:00
Vincent Sanders
2016628e8e Improve bitmap operation table interface documentation. 2015-04-19 12:57:09 +01:00
Vincent Sanders
2e961c47ce change rsvg image handler to use bitmap operation table 2015-04-17 00:15:07 +01:00
Vincent Sanders
1629c57b9b fixup risc os sprite image handler to use bitmap operation table 2015-04-17 00:12:23 +01:00
Vincent Sanders
f37e52c394 Move bitmap operations into an operation table.
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.
2015-04-13 23:19:04 +01:00
John-Mark Bell
c66c9fccf3 PNG: add more volatile to appease GCC 2015-02-24 17:06:57 +00:00
Vincent Sanders
669df172ec Fix my spelling of teh everywhere 2014-11-18 17:16:26 +00:00
John-Mark Bell
33c4a0d221 Only include rsvg-cairo.h if it isn't already 2014-11-15 15:53:58 +00:00
Vincent Sanders
ad343eccb1 remove unecessary utils/types.h
This cleans up this header and moves the functionality into more
useful places while reducing the include complexity but only pulling
in whats required.
2014-11-02 20:10:32 +00:00
Vincent Sanders
d06df231bc Update the core to use the split operations table headers
Second in the series to decouple the core API usage from the frontends.
2014-10-16 22:33:43 +01:00
Vincent Sanders
db01637343 remove content include from urldb header 2014-07-17 00:18:44 +01:00
Vincent Sanders
315877c822 reduce uncessary include usage 2014-05-18 23:17:15 +01:00
Vincent Sanders
87f6314dab move scheduleing into browser operation table 2014-03-09 15:37:40 +00:00
Vincent Sanders
f7916866e3 remove all references to using libMNG 2014-01-04 17:07:11 +00:00
Michael Drake
a515248b59 Fix two genuine bugs found by Coverity. Checking the wrong pointers for NULL. 2013-10-23 11:52:37 +01:00
Michael Drake
f5bdd4b109 Move BITMAP_SAVE_FULL_ALPHA out of core to RISC OS front end, where it belongs. 2013-10-03 21:11:54 +01:00
Michael Drake
ff480312fe Remove BITMAP_READY flag. 2013-10-03 21:07:29 +01:00
Michael Drake
4c6a176d39 Remove BITMAP_PERSISTENT flag. 2013-10-03 21:02:08 +01:00
Vincent Sanders
ee6e6eec05 move options include 2013-05-28 14:16:10 +01:00
Vincent Sanders
95e726c7cc split sources lists out to their subdirectories as first step towards using core buildsystem 2013-03-11 17:53:52 +00:00
John-Mark Bell
8e66adaade Avoid calling bitmap_modified with NULL. 2013-01-13 17:14:10 +00:00
Michael Drake
8c60d38769 Can't clone a content that gets reflowed for a viewport size. 2012-11-11 20:14:18 +00:00
Michael Drake
c040fbc4cc Allow reformats to different size. 2012-11-11 20:02:45 +00:00
Vincent Sanders
baf50cec89 make image content handlers title setting use the heap instead of the stack and remove the possibility of buffer overruns 2012-10-25 11:12:41 +01:00
Michael Drake
a526209e74 More useful title info for images. 2012-10-24 18:22:45 +01:00
Michael Drake
4938723896 Remove last notion of bitmap suspension. 2012-10-14 20:17:17 +01:00
Michael Drake
d88a839937 Remove suspension of bmp/gif images. It's completely redundant with the convert on demand core image cache. 2012-10-14 20:03:18 +01:00
Vincent Sanders
c1671f37b1 reduce talloc usage to box tree layout only 2012-10-03 19:26:17 +01:00
Michael Drake
5646528898 Fix cases of returning pointers as bool for GCC 2.95.2. 2012-09-29 23:09:32 +01:00
Vincent Sanders
de982b4d3e fix windows build format specifiers
add install target for windows - creates installer rather than actually installing
2012-08-12 21:52:39 +01:00
Michael Drake
642470fb74 Avoid two duplicate lines. 2012-08-10 20:28:23 +01:00
Vincent Sanders
2622adaa1f allow netsurf to build with gtk3
svn path=/trunk/netsurf/; revision=13926
2012-05-16 19:57:43 +00:00
Michael Drake
cdee9e985e More work on about:imagecache entry listing table.
svn path=/trunk/netsurf/; revision=13855
2012-04-12 13:43:57 +00:00
Rob Kendrick
e6155dd37f about:imagecache gives URL links, and table is styled. This has revealed a buffer overflow or similar here; reducing the buffer size to 1024 makes it very fragile with long URLs.
svn path=/trunk/netsurf/; revision=13700
2012-03-25 16:42:45 +00:00
Vincent Sanders
1490b52a6b NetSurf options rework (a=vince r=daniels,jmb)
svn path=/trunk/netsurf/; revision=13548
2012-03-22 09:34:34 +00:00
John Mark Bell
0fad29846b Treat image/x-png as a synonym for image/png
svn path=/trunk/netsurf/; revision=13414
2012-01-29 20:43:59 +00:00
Vincent Sanders
7124d96b1f ensure favicon is correctly set
svn path=/trunk/netsurf/; revision=13358
2011-12-31 12:57:47 +00:00
Vincent Sanders
fafdf2c337 fix icon image handler marking genrated bitmaps as modified
svn path=/trunk/netsurf/; revision=13355
2011-12-30 19:37:15 +00:00
Vincent Sanders
df18a97143 Change GTK plotting to use cairo surfaces throughout
svn path=/trunk/netsurf/; revision=13354
2011-12-30 00:58:35 +00:00
John Mark Bell
4e3a4448ec Beginnings of a gstreamer binding. I've been sitting on this for too long
svn path=/trunk/netsurf/; revision=13248
2011-12-05 22:33:02 +00:00
John Mark Bell
f2993e6ed0 content_get_url -> hlcache_handle_get_url, content__get_url -> content_get_url
svn path=/trunk/netsurf/; revision=13236
2011-12-04 14:55:23 +00:00
John Mark Bell
dc792e8d05 Fix format specifier
svn path=/trunk/netsurf/; revision=13101
2011-10-30 15:00:53 +00:00