2020-12-23 11:12:49 +00:00
|
|
|
#include <qpdf/Pl_ASCII85Decoder.hh>
|
2022-04-02 21:14:10 +00:00
|
|
|
#include <qpdf/QPDFStreamFilter.hh>
|
2020-12-23 11:12:49 +00:00
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#ifndef SF_ASCII85DECODE_HH
|
2022-04-02 21:14:10 +00:00
|
|
|
# define SF_ASCII85DECODE_HH
|
2020-12-23 11:12:49 +00:00
|
|
|
|
|
|
|
class SF_ASCII85Decode: public QPDFStreamFilter
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SF_ASCII85Decode() = default;
|
|
|
|
virtual ~SF_ASCII85Decode() = default;
|
|
|
|
|
2023-05-20 12:56:33 +00:00
|
|
|
Pipeline*
|
2022-04-02 21:14:10 +00:00
|
|
|
getDecodePipeline(Pipeline* next) override
|
2020-12-23 11:12:49 +00:00
|
|
|
{
|
2022-04-02 21:14:10 +00:00
|
|
|
this->pipeline =
|
|
|
|
std::make_shared<Pl_ASCII85Decoder>("ascii85 decode", next);
|
2020-12-23 11:12:49 +00:00
|
|
|
return this->pipeline.get();
|
|
|
|
}
|
|
|
|
|
2022-04-02 21:14:10 +00:00
|
|
|
static std::shared_ptr<QPDFStreamFilter>
|
|
|
|
factory()
|
2020-12-23 11:12:49 +00:00
|
|
|
{
|
|
|
|
return std::make_shared<SF_ASCII85Decode>();
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::shared_ptr<Pipeline> pipeline;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SF_ASCII85DECODE_HH
|