source: trunk/poppler/mypoppler/poppler/FlateStream.h @ 2

Last change on this file since 2 was 2, checked in by Eugene Romanenko, 15 years ago

First import

File size: 1.3 KB
Line 
1//========================================================================
2//
3// FlateStream.h
4//
5// Copyright (C) 2005, Jeff Muizelaar
6//
7//========================================================================
8
9#ifndef FLATESTREAM_H
10#define FLATESTREAM_H
11#include <config.h>
12
13#ifdef USE_GCC_PRAGMAS
14#pragma interface
15#endif
16
17
18#ifdef USE_GCC_PRAGMAS
19#pragma implementation
20#endif
21
22#include <stdio.h>
23#include <stdlib.h>
24#include <stddef.h>
25#ifndef WIN32
26#include <unistd.h>
27#endif
28#include <string.h>
29#include <ctype.h>
30#include "goo/gmem.h"
31#include "goo/gfile.h"
32#include "poppler-config.h"
33#include "Error.h"
34#include "Object.h"
35#include "Decrypt.h"
36#include "Stream.h"
37
38extern "C" {
39#include <zlib.h>
40}
41
42class FlateStream: public FilterStream {
43public:
44
45  FlateStream(Stream *strA, int predictor, int columns, int colors, int bits);
46  virtual ~FlateStream();
47  virtual StreamKind getKind() { return strFlate; }
48  virtual void reset();
49  virtual int getChar();
50  virtual int lookChar();
51  virtual int getRawChar();
52  virtual GooString *getPSFilter(int psLevel, char *indent);
53  virtual GBool isBinary(GBool last = gTrue);
54
55private:
56  int fill_buffer(void);
57  z_stream d_stream;
58  StreamPredictor *pred;
59  int status;
60  unsigned char in_buf[4096];
61  unsigned char out_buf[4096];
62  int out_pos;
63  int out_buf_len;
64};
65
66#endif
Note: See TracBrowser for help on using the repository browser.