Lucas CHOLLET
4291288a31
LibGfx: Remove ImageDecoderPlugin::initialize()
...
No plugin is currently overriding the default implementation, which is a
no-op. So we can safely delete it.
2023-07-18 14:34:35 +01:00
Lucas CHOLLET
3752facfbc
LibGfx: Don't assume that image decoder plugin creation succeeds
...
An image with an incorrect header should fail at this step, so we have
to handle that without crashing.
This should have been done in 7b72bf29
.
2023-07-18 14:34:35 +01:00
Lucas CHOLLET
7b72bf2910
LibGfx: Don't assume that image decoder plugin creation succeeds
...
An image with an incorrect header should fail at this step, so we have
to handle that without crashing.
2023-07-17 06:39:57 +01:00
MacDue
ae18186905
LibGfx: Implement image decoder for TinyVG (.tvg)
...
This adds a decoder for the TinyVG vector format (https://tinyvg.tech/ ).
TinyVG is a very simple binary vector format, but it is good enough to
represent a lot of SVGs, without needing the full web engine.
The main use case for Serenity is for scalable icons (which .tvg easily
handles).
2023-07-03 23:54:51 +02:00
Ben Wiederhake
da394abe04
LibGfx+Fuzz: Convert ImageDecoder::initialize to ErrorOr
...
This prevents callers from accidentally discarding the result of
initialize(), which was the root cause of this OSS Fuzz bug:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=55896&q=label%3AProj-serenity&sort=summary
2023-05-12 09:40:24 +01:00
Nico Weber
f09aaf826f
LibGfx: Decrease indent in ImageDecoder::try_create_for_raw_bytes() some
...
No behavior change.
2023-04-23 14:35:20 +02:00
Nico Weber
66bd7cdb28
LibGfx: Move two globals into the only functions that use them
...
No real behavior change. (The two globals are now both initialized
at first use instead of before main(), but that should have no
observable effect. The motivation is readability.)
2023-04-21 15:55:03 +02:00
Lucas CHOLLET
496b7ffb2b
LibGfx: Move all image loaders and writers to a subdirectory
2023-03-21 22:39:25 +01:00