source: trunk/poppler/mypoppler/poppler/JPEG2000Stream.h @ 257

Last change on this file since 257 was 257, checked in by Eugene Romanenko, 13 years ago

PDF plugin: Poppler library updated to version 0.10.0

File size: 1.1 KB
Line 
1//========================================================================
2//
3// JPEG2000Stream.h
4//
5// A JPX stream decoder using OpenJPEG
6//
7// Copyright 2008 Albert Astals Cid <aacid@kde.org>
8//
9// Licensed under GPLv2 or later
10//
11//========================================================================
12
13
14#ifndef JPEG2000STREAM_H
15#define JPEG2000STREAM_H
16
17#include <openjpeg.h>
18
19#include "goo/gtypes.h"
20#include "Object.h"
21#include "Stream.h"
22
23class JPXStream: public FilterStream {
24public:
25
26  JPXStream(Stream *strA);
27  virtual ~JPXStream();
28  virtual StreamKind getKind() { return strJPX; }
29  virtual void reset();
30  virtual void close();
31  virtual int getPos();
32  virtual int getChar();
33  virtual int lookChar();
34  virtual GooString *getPSFilter(int psLevel, char *indent);
35  virtual GBool isBinary(GBool last = gTrue);
36  virtual void getImageParams(int *bitsPerComponent, StreamColorSpaceMode *csMode);
37
38private:
39  void init();
40  void init2(unsigned char *buf, int bufLen, OPJ_CODEC_FORMAT format);
41
42  opj_image_t *image;
43  opj_dinfo_t *dinfo;
44  int counter;
45  GBool inited;
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.