summaryrefslogtreecommitdiff
path: root/content/handlers/image
Commit message (Collapse)AuthorAgeFilesLines
* use attributes to indicate switch fall through instead of commentsVincent Sanders2024-03-051-1/+1
|
* avoid increased alignment warningVincent Sanders2024-03-051-1/+1
|
* width variable is only required with misconfigured libjpegVincent Sanders2024-02-271-0/+2
|
* jpegxl: Ensure decoded bitmap format is converted to front end formatMichael Drake2023-11-261-1/+13
|
* jpegxl: Tell libjxl to decode unpremultiply alpha if neededMichael Drake2023-11-261-0/+9
| | | | On some platforms our bitmap format does not use premultiplied alpha.
* jpegxl: Designated initialiser for output format structMichael Drake2023-11-261-1/+6
| | | | So I could see the meanings of how we'd set up the decode.
* avoid the unecessary callback APIVincent Sanders2023-11-261-17/+4
|
* Implement simple jpeg xl image handlerVincent Sanders2023-11-264-0/+363
|
* rsvg246: Fix build against librsvg 2.48Michael Drake2022-12-131-0/+7
| | | | The version of librsvg is used on Ubuntu 20.04TLS.
* rsvg246: Split out width/height acquisitionMichael Drake2022-12-131-21/+29
|
* add rsvg image decoder that uses the new APIVincent Sanders2022-11-272-1/+266
|
* gif: Ensure we never pass NSERROR_OK to error broadcastMichael Drake2022-11-041-3/+0
|
* gif: Mark gifs as complete after scanning source dataMichael Drake2022-11-041-2/+4
| | | | | | This allows libnsgif to distinguish between awaiting more data, and a broken truncated GIF. In the latter case we can display what we have.
* 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