LibGfx: Allow passing an ideal size to image decoders

The ideal size is the size the user will display the image. Raster
formats should ignore this parameter, but vector formats can use
it to generate a bitmap of the ideal size.
This commit is contained in:
MacDue 2023-07-02 22:20:06 +01:00 committed by Jelle Raaijmakers
commit e7cddda7e1
Notes: sideshowbarker 2024-07-17 04:09:56 +09:00
20 changed files with 22 additions and 22 deletions

View file

@ -248,7 +248,7 @@ public:
virtual size_t loop_count() override;
virtual size_t frame_count() override;
virtual size_t first_animated_frame_index() override;
virtual ErrorOr<ImageFrameDescriptor> frame(size_t index) override;
virtual ErrorOr<ImageFrameDescriptor> frame(size_t index, Optional<IntSize> ideal_size = {}) override;
virtual ErrorOr<Optional<ReadonlyBytes>> icc_data() override;
private: