image handler refactor beginning

Vincent Sanders vince at netsurf-browser.org
Fri Aug 26 13:16:04 BST 2011


Add macro helper for adding image content handlers
Make all image handlers use the macro
Clean up forward references in image code
Clean up libmng handler to stop it rummaging through mime type names to change its behaviour.
Get ready for next refactor (removing bitmap pointer from content)

 content/content_factory.h |   45 ++
 image/bmp.c               |   72 ---
 image/gif.c               |   46 --
 image/ico.c               |   56 --
 image/image.c             |    7 
 image/image.h             |    1 
 image/jpeg.c              |   52 --
 image/mng.c               |  872 +++++++++++++++++++++-------------------------
 image/mng.h               |    4 
 image/nssprite.c          |   90 +---
 image/png.c               |   47 --
 image/rsvg.c              |   51 --
 image/svg.c               |  119 +-----
 image/webp.c              |   93 +---
 14 files changed, 586 insertions(+), 969 deletions(-)


-- 
Regards Vincent
http://www.kyllikki.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: img-refactor-1.diff
Type: text/x-diff
Size: 51369 bytes
Desc: not available
Url : http://vlists.pepperfish.net/pipermail/netsurf-dev-netsurf-browser.org/attachments/20110826/eb843056/img-refactor-1-0001.diff


More information about the netsurf-dev mailing list