summaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/Pl_ASCII85Decoder.hh
blob: 6efd8199f148a0ca74dd7b7de881696486733f9b (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

#ifndef __PL_ASCII85DECODER_HH__
#define __PL_ASCII85DECODER_HH__

#include <qpdf/Pipeline.hh>

class Pl_ASCII85Decoder: public Pipeline
{
  public:
    DLL_EXPORT
    Pl_ASCII85Decoder(char const* identifier, Pipeline* next);
    DLL_EXPORT
    virtual ~Pl_ASCII85Decoder();
    DLL_EXPORT
    virtual void write(unsigned char* buf, int len);
    DLL_EXPORT
    virtual void finish();

  private:
    void flush();

    char inbuf[5];
    int pos;
    int eod;
};

#endif // __PL_ASCII85DECODER_HH__