aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/SF_ASCII85Decode.hh
blob: d474904cb52e9971380736a72aa7bc5aff1ef535 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <qpdf/Pl_ASCII85Decoder.hh>
#include <qpdf/QPDFStreamFilter.hh>
#include <memory>

#ifndef SF_ASCII85DECODE_HH
# define SF_ASCII85DECODE_HH

class SF_ASCII85Decode: public QPDFStreamFilter
{
  public:
    SF_ASCII85Decode() = default;
    ~SF_ASCII85Decode() override = default;

    Pipeline*
    getDecodePipeline(Pipeline* next) override
    {
        this->pipeline = std::make_shared<Pl_ASCII85Decoder>("ascii85 decode", next);
        return this->pipeline.get();
    }

    static std::shared_ptr<QPDFStreamFilter>
    factory()
    {
        return std::make_shared<SF_ASCII85Decode>();
    }

  private:
    std::shared_ptr<Pipeline> pipeline;
};

#endif // SF_ASCII85DECODE_HH