mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibGfx: Add support for animated images to ImageDecoder{Plugin}
Adds methods to determine whether an image is animated, how many times the animation loops, the number of frames, and to get individual frames. Implements stubs of these methods for PNGImageDecoderPlugin and GIFImageDecoderPlugin.
This commit is contained in:
parent
eec99b23a0
commit
d22bb92764
Notes:
sideshowbarker
2024-07-19 06:49:23 +09:00
Author: https://github.com/peterdn
Commit: d22bb92764
Pull-request: https://github.com/SerenityOS/serenity/pull/2158
Reviewed-by: https://github.com/awesomekling
5 changed files with 71 additions and 2 deletions
|
@ -46,6 +46,10 @@ public:
|
|||
virtual void set_volatile() override;
|
||||
[[nodiscard]] virtual bool set_nonvolatile() override;
|
||||
virtual bool sniff() override;
|
||||
virtual bool is_animated() override;
|
||||
virtual size_t loop_count() override;
|
||||
virtual size_t frame_count() override;
|
||||
virtual ImageFrameDescriptor frame(size_t i) override;
|
||||
|
||||
private:
|
||||
OwnPtr<PNGLoadingContext> m_context;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue