ScummVM API documentation
neo.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef IMAGE_NEO_H
23 #define IMAGE_NEO_H
24 
25 #include "image/image_decoder.h"
26 
39 namespace Common {
40 class SeekableReadStream;
41 }
42 
43 namespace Image {
44 
46 public:
47  NeoDecoder(byte *palette = nullptr);
48  virtual ~NeoDecoder();
49 
50  // ImageDecoder API
51  void destroy();
52  virtual bool loadStream(Common::SeekableReadStream &stream);
53  virtual const Graphics::Surface *getSurface() const { return _surface; }
54  const byte *getPalette() const { return _palette; }
55  uint16 getPaletteColorCount() const { return _paletteColorCount; }
56 
57 private:
58  Graphics::Surface *_surface;
59  bool _paletteDestroy;
60  byte *_palette;
61  uint16 _paletteColorCount;
62 };
63 } // End of namespace Image
64 
65 #endif // IMAGE_NEO_H
Definition: image_decoder.h:52
Definition: surface.h:67
Definition: neo.h:45
virtual const Graphics::Surface * getSurface() const
Definition: neo.h:53
Definition: stream.h:745
uint16 getPaletteColorCount() const
Definition: neo.h:55
Definition: algorithm.h:29
const byte * getPalette() const
Definition: neo.h:54
Definition: movie_decoder.h:32