ScummVM API documentation
te_images_sequence.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_IMAGES_SEQUENCE_H
23#define TETRAEDGE_TE_TE_IMAGES_SEQUENCE_H
24
25#include "common/str.h"
26#include "tetraedge/te/te_i_codec.h"
27
28namespace Graphics {
29struct Surface;
30class ManagedSurface;
31}
32
33namespace Tetraedge {
34
35class TeImagesSequence : public TeICodec {
36public:
38 virtual ~TeImagesSequence();
39
40 virtual bool load(const TetraedgeFSNode &node) override;
41 virtual uint width() override { return _width; }
42 virtual uint height() override { return _height; }
43 virtual int nbFrames() override { return _files.size(); }
44 virtual void setLeftBorderSize(uint val) override { }
45 virtual uint leftBorderSize() override { return 0; }
46 virtual void setRightBorderSize(uint val) override { }
47 virtual uint rightBorderSize() override { return 0; }
48 virtual void setBottomBorderSize(uint val) override { }
49 virtual uint bottomBorderSize() override { return 0; }
50 virtual void setTopBorderSize(uint val) override { }
51 virtual uint topBorderSize() override { return 0; }
52 virtual Graphics::PixelFormat pixelFormat() override;
53 virtual float frameRate() override { return _frameRate; }
54 virtual bool update(uint i, TeImage &imgout) override;
55 virtual bool isAtEnd() override;
56 virtual void setColorKeyActivated(bool val) override { }
57 virtual void setColorKey(const TeColor &col) override { }
58 virtual void setColorKeyTolerence(float val) override { }
59
60 static bool matchExtension(const Common::String &extn);
61
62private:
63 float _frameRate;
64 uint _width;
65 uint _height;
68 uint _curFrame;
69};
70
71} // end namespace Tetraedge
72
73#endif // TETRAEDGE_TE_TE_IMAGES_SEQUENCE_H
size_type size() const
Definition: array.h:316
Definition: str.h:59
Definition: te_color.h:30
Definition: te_i_codec.h:34
Definition: te_image.h:42
Definition: te_images_sequence.h:35
Definition: tetraedge.h:65
Definition: formatinfo.h:28
Definition: pixelformat.h:138