summaryrefslogtreecommitdiff
path: root/content/handlers/image
Commit message (Collapse)AuthorAgeFilesLines
* content: image cache: Avoid int overflow before size_t conversionMichael Drake2022-10-231-1/+1
|
* Ensure image cache logging does not cause division by zero at exitVincent Sanders2022-09-111-6/+6
|
* inttypes: custom format for UnixLib ssize_tJohn-Mark Bell2022-06-031-6/+6
| | | | | | | | UnixLib defines ssize_t to be a long int, which forces the corresponding format string to need to be %ld to avoid compiler warnings. Making this change uncovered a number of places where we were using the wrong format specifier entirely (namely PRIssizet where we meant PRIsizet). Fix these, too.
* Bitmap: Implement test_opaque in core instead of in every frontend.Michael Drake2022-03-292-3/+3
|
* WebP: Optimisation: If it's opaque avoid any PMA conversions.Michael Drake2022-03-281-0/+4
|
* PNG: Allow support for premultiplied alpha.Michael Drake2022-03-281-4/+13
| | | | | | | | | | | | | LibPNG doesn't support premultiplied alpha, so now that the core supports it, we can't just say that the decoded PNG is in the core bitmap format. So we now say it's in the core pixel layout, and if it's opaque we say it has the same premultipled alpha setting as core bitmaps because the conversion is costly and makes no difference. On the other hand if it is not opaque we now admit that it is not premultipled alpha so it gets converted if needed.
* Image: JPEG: Decode to client bitmap format where possible.Michael Drake2022-03-271-51/+125
|
* Image: JPEG: Warn if not using libjpeg-turbo.Michael Drake2022-03-271-7/+2
| | | | Replaces RISC OS warning with a more general and relevant one.
* Image: WebP: Decode to client bitmap format where possible.Michael Drake2022-03-271-8/+24
|
* Image: WebP: Correct output buffer size for rowstride.Michael Drake2022-03-271-1/+1
|
* Image: Sprite: Avoid multiple bitmap format conversions.Michael Drake2022-03-271-14/+4
|
* Image: RSVG: Just use bitmap to client for conversion.Michael Drake2022-03-271-39/+1
|
* Image: PNG: Decode to client bitmap format.Michael Drake2022-03-271-11/+32
|
* Image: GIF: Decode directly to client bitmap format.Michael Drake2022-03-271-36/+22
|
* Bitmap: Move bitmap pixel to colour macro to bitmap header.Michael Drake2022-03-271-1/+2
|
* Image: WebP: Call bitmap format conversion after decode.Michael Drake2022-03-271-0/+4
| | | | | Currently a no-op, because we decode to the default format and no front end requests anything but the default format.
* Image: RSVG: Call bitmap format conversion after decode.Michael Drake2022-03-271-0/+4
| | | | | Currently a no-op, because we decode to the default format and no front end requests anything but the default format.
* Image: PNG: Call bitmap format conversion after decode.Michael Drake2022-03-261-0/+11
| | | | | Currently a no-op, because we decode to the default format and no front end requests anything but the default format.
* Image: Sprite: Call bitmap format conversion after decode.Michael Drake2022-03-261-0/+4
| | | | | Currently a no-op, because we decode to the default format and no front end requests anything but the default format.
* Image: JPEG: Call bitmap format conversion after decode.Michael Drake2022-03-261-0/+5
| | | | | Currently a no-op, because we decode to the default format and no front end requests anything but the default format.
* Image: ICO: Abstract image decode into helper.Michael Drake2022-03-261-29/+23
|
* Image: ICO: Call bitmap format conversion after decode.Michael Drake2022-03-261-0/+10
| | | | | Currently a no-op, because we decode to the default format and no front end requests anything but the default format.
* Image: GIF: Call bitmap format conversion before/after decode.Michael Drake2022-03-261-2/+36
| | | | | Currently a no-op, because we decode to the default format and no front end requests anything but the default format.
* Image: BMP: Call bitmap format conversion after decode.Michael Drake2022-03-261-0/+4
| | | | | Currently a no-op, because we decode to the default format and no front end requests anything but the default format.
* Bitmap API: Clean up creation flags.Michael Drake2022-03-248-12/+12
|
* Image: ICO: Update for new libnsbmp API.Michael Drake2022-03-241-1/+0
|
* Image: BMP: Update for new libnsbmp API.Michael Drake2022-03-241-3/+1
|
* PNG: Bytes per pixel is always 4.Michael Drake2022-03-241-1/+1
|
* GIF: Update to new libnsgif API.Michael Drake2022-03-231-1/+2
| | | | Set required colour component order.
* GIF: Tolerate errors during scan if at least one frame.Michael Drake2022-03-031-5/+9
|
* GIF: Update to latest libnsgif API.Michael Drake2022-02-261-206/+160
|
* split out the about scheme imagecache page generatorVincent Sanders2020-09-201-0/+1
|
* improve desktop text search header usageVincent Sanders2020-06-241-0/+1
| | | | | | | | | remove unecessary inclusion of desktop search header in content header which has knock on effect of not having ctype or string system headers dragged in unecessarily. Futher this highlighted use of ctype API where internal ascii processing ought to be used.
* implement content opacity check through the function tableVincent Sanders2020-05-1310-3/+99
|
* add missing header includes from previous changeVincent Sanders2020-05-082-0/+2
|
* improve content header usageVincent Sanders2020-05-077-4/+17
|
* clean up content headers and documentation commentsVincent Sanders2020-05-061-0/+1
| | | | pure formatting and documentation changes, no code difference
* webp: NetSurf bitmap format is RGBA.Michael Drake2019-12-081-1/+3
| | | | | Issue a bitmap modified call after conversion, to allow front ends with different pixel formats to convert.
* gif: Change how we rate-limit frames to match other browsers.Michael Drake2019-11-111-2/+4
| | | | This makes the old minimum_gif_delay option unused.
* Content: Remove redundant and unused redraw message fields.Michael Drake2019-11-111-23/+1
| | | | | | | | | | This was archaic support for rendering images as "overlays", and avoiding a redraw via the browser window redraw and HTML contents. Basically it was "plot this image here", but it was too error prone, so it was removed a long time ago. These are some last vestiges that made the redraw message look more complex than it is.
* remove unused external declaration and unecessary header useVincent Sanders2019-10-062-12/+9
|
* nssprite: content_broadcast_error fixDaniel Silverstone2019-08-051-3/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* content: Rename content_broadcast_errorcode()Daniel Silverstone2019-08-056-20/+20
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Content messages: Remove ERRORCODE, rework ERRORDaniel Silverstone2019-08-051-1/+2
| | | | | | | This reworks CONTENT_MSG_ERROR to be structured data and removes the CONTENT_MSG_ERRORCODE message kind. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* change content get_source_data interfaces to return uint8_t and size_tVincent Sanders2019-05-059-33/+34
| | | | | previously these interfaces returned char * and unsigned int which was undesirable.
* SVG content handler: Fix plot style stroke_widthMichael Forney2019-03-051-1/+1
| | | | | | | | In 8332bf6b2a, when the stroke width was moved from a parameter to the plot style field, it accidentally used the `stroke` field of the svgtiny shape (the color) instead of `stroke_width`. Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
* add webp image handlerVincent Sanders2019-02-174-0/+269
|
* improve some commentsVincent Sanders2019-02-171-2/+6
|
* tidy up bmp and ico makefile entries to be one per lineVincent Sanders2019-02-171-1/+2
|
* Plotters: Remove width param from path plotter.Michael Drake2018-05-231-2/+2
| | | | We now use the stroke_width in the plot_style.