mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 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:
@@ -1555,6 +1555,11 @@ size_t WebPImageDecoderPlugin::frame_count()
|
||||
return m_context->animation_frame_chunks.size();
|
||||
}
|
||||
|
||||
size_t WebPImageDecoderPlugin::first_animated_frame_index()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
ErrorOr<ImageFrameDescriptor> WebPImageDecoderPlugin::frame(size_t index)
|
||||
{
|
||||
if (index >= frame_count())
|
||||
|
||||
Reference in New Issue
Block a user