diff options
Diffstat (limited to 'libqpdf/qpdf/Pl_ASCII85Decoder.hh')
-rw-r--r-- | libqpdf/qpdf/Pl_ASCII85Decoder.hh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libqpdf/qpdf/Pl_ASCII85Decoder.hh b/libqpdf/qpdf/Pl_ASCII85Decoder.hh new file mode 100644 index 00000000..9883a58e --- /dev/null +++ b/libqpdf/qpdf/Pl_ASCII85Decoder.hh @@ -0,0 +1,23 @@ + +#ifndef __PL_ASCII85DECODER_HH__ +#define __PL_ASCII85DECODER_HH__ + +#include <qpdf/Pipeline.hh> + +class 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__ |