diff options
Diffstat (limited to 'Userland/Libraries/LibGfx/PBMLoader.h')
-rw-r--r-- | Userland/Libraries/LibGfx/PBMLoader.h | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/Userland/Libraries/LibGfx/PBMLoader.h b/Userland/Libraries/LibGfx/PBMLoader.h index db223a11f7..8c402de31f 100644 --- a/Userland/Libraries/LibGfx/PBMLoader.h +++ b/Userland/Libraries/LibGfx/PBMLoader.h @@ -20,26 +20,7 @@ struct PBM { }; using PBMLoadingContext = PortableImageMapLoadingContext<PBM>; +using PBMImageDecoderPlugin = PortableImageDecoderPlugin<PBMLoadingContext>; -class PBMImageDecoderPlugin final : public ImageDecoderPlugin { -public: - PBMImageDecoderPlugin(const u8*, size_t); - virtual ~PBMImageDecoderPlugin() override; - - virtual IntSize size() override; - - virtual void set_volatile() override; - [[nodiscard]] virtual bool set_nonvolatile(bool& was_purged) override; - - virtual bool sniff() override; - - virtual bool is_animated() override; - virtual size_t loop_count() override; - virtual size_t frame_count() override; - virtual ErrorOr<ImageFrameDescriptor> frame(size_t index) override; - -private: - OwnPtr<PBMLoadingContext> m_context; -}; - +bool read_image_data(PBMLoadingContext& context, Streamer& streamer); } |