#include #include #include #ifndef SF_RUNLENGTHDECODE_HH #define SF_RUNLENGTHDECODE_HH class SF_RunLengthDecode: public QPDFStreamFilter { public: SF_RunLengthDecode() = default; virtual ~SF_RunLengthDecode() = default; virtual Pipeline* getDecodePipeline(Pipeline* next) override { this->pipeline = std::make_shared( "runlength decode", next, Pl_RunLength::a_decode); return this->pipeline.get(); } static std::shared_ptr factory() { return std::make_shared(); } virtual bool isSpecializedCompression() override { return true; } private: std::shared_ptr pipeline; }; #endif // SF_RUNLENGTHDECODE_HH