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:
Tom 2023-04-07 20:41:22 -06:00 committed by Sam Atkins
commit e7921cfe14
Notes: sideshowbarker 2024-07-17 04:09:56 +09:00
20 changed files with 64 additions and 4 deletions

View file

@ -251,6 +251,11 @@ size_t ICOImageDecoderPlugin::frame_count()
return 1;
}
size_t ICOImageDecoderPlugin::first_animated_frame_index()
{
return 0;
}
ErrorOr<ImageFrameDescriptor> ICOImageDecoderPlugin::frame(size_t index)
{
if (index > 0)