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