mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibGfx: Add first_animated_frame_index method to ImageDecoder
Some image formats such as APNG may not use the first frame for animations.
This commit is contained in:
parent
5a4c61838f
commit
e7921cfe14
Notes:
sideshowbarker
2024-07-17 04:09:56 +09:00
Author: https://github.com/tomuta
Commit: e7921cfe14
Pull-request: https://github.com/SerenityOS/serenity/pull/18258
Reviewed-by: https://github.com/nico
20 changed files with 64 additions and 4 deletions
|
@ -1801,6 +1801,11 @@ size_t JPEGImageDecoderPlugin::frame_count()
|
|||
return 1;
|
||||
}
|
||||
|
||||
size_t JPEGImageDecoderPlugin::first_animated_frame_index()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
ErrorOr<ImageFrameDescriptor> JPEGImageDecoderPlugin::frame(size_t index)
|
||||
{
|
||||
if (index > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue