ScummVM API documentation
te_scummvm_codec.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 TETRAEDGE_TE_TE_SCUMMVM_CODEC_H
23 #define TETRAEDGE_TE_TE_SCUMMVM_CODEC_H
24 
25 #include "tetraedge/te/te_i_codec.h"
26 
27 namespace Tetraedge {
28 
30 class TeScummvmCodec : public TeICodec {
31 public:
33  virtual ~TeScummvmCodec();
34 
35  virtual bool load(const Common::Path &path) override;
36  virtual bool load(Common::SeekableReadStream &stream) = 0;
37  virtual uint width() override;
38  virtual uint height() override;
39  virtual int nbFrames() override { return 1; }
40  virtual TeImage::Format imageFormat() override;
41  virtual void setLeftBorderSize(uint val) override;
42  virtual uint leftBorderSize() override { return 0; }
43  virtual void setRightBorderSize(uint val) override;
44  virtual uint rightBorderSize() override { return 0; }
45  virtual void setBottomBorderSize(uint val) override;
46  virtual uint bottomBorderSize() override { return 0; }
47  virtual void setTopBorderSize(uint val) override;
48  virtual uint topBorderSize() override { return 0; }
49  virtual float frameRate() override { return _frameRate; }
50  virtual bool update(uint i, TeImage &imgout) override;
51  virtual bool isAtEnd() override { return true; }
52  virtual void setColorKeyActivated(bool val) override { }
53  virtual void setColorKey(const TeColor &col) override { }
54  virtual void setColorKeyTolerence(float val) override { }
55 
56 protected:
57  Graphics::Surface *_loadedSurface;
58  Common::Path _loadedPath;
59  float _frameRate;
60  uint _bottomBorder;
61  uint _topBorder;
62 };
63 
64 } // end namespace Tetraedge
65 
66 #endif // TETRAEDGE_TE_TE_SCUMMVM_CODEC_H
Definition: te_image.h:40
Definition: te_scummvm_codec.h:30
Definition: detection.h:27
Definition: surface.h:67
Definition: te_color.h:30
Definition: path.h:52
Definition: stream.h:745
Definition: te_i_codec.h:34