aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/Pl_ASCII85Decoder.hh
blob: a2c38da32a6707ea236ad90f6a22b90039464ddd (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
#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__