mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +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
20 changed files with 64 additions and 4 deletions
|
@ -627,6 +627,11 @@ size_t GIFImageDecoderPlugin::frame_count()
|
|||
return m_context->images.size();
|
||||
}
|
||||
|
||||
size_t GIFImageDecoderPlugin::first_animated_frame_index()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
ErrorOr<ImageFrameDescriptor> GIFImageDecoderPlugin::frame(size_t index)
|
||||
{
|
||||
if (m_context->error_state >= GIFLoadingContext::ErrorState::FailedToDecodeAnyFrame) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue