summaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/Pl_ASCII85Decoder.hh
blob: bcb313403a4d14547828ac16d1efbb620e93b654 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __PL_ASCII85DECODER_HH__
#define __PL_ASCII85DECODER_HH__

#include <qpdf/Pipeline.hh>

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

  private:
    void flush();

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

#endif // __PL_ASCII85DECODER_HH__