aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/flic_player.h
diff options
context:
space:
mode:
authorFilippos Karapetis2009-01-06 17:44:41 +0000
committerFilippos Karapetis2009-01-06 17:44:41 +0000
commita930f402727940bb5778980d031b6cc66263f3a0 (patch)
tree170f30e81c7a6ed69627c7ecd906f9d57a19ff10 /graphics/video/flic_player.h
parentfa1d881ad44a515e57b87ba27b325d1eeb4a750b (diff)
downloadscummvm-rg350-a930f402727940bb5778980d031b6cc66263f3a0.tar.gz
scummvm-rg350-a930f402727940bb5778980d031b6cc66263f3a0.tar.bz2
scummvm-rg350-a930f402727940bb5778980d031b6cc66263f3a0.zip
An attempt to unify the different video players (FLIC player is not finished yet) - step 1
svn-id: r35757
Diffstat (limited to 'graphics/video/flic_player.h')
-rw-r--r--graphics/video/flic_player.h33
1 files changed, 16 insertions, 17 deletions
diff --git a/graphics/video/flic_player.h b/graphics/video/flic_player.h
index 73d086cbec..7f0a029df8 100644
--- a/graphics/video/flic_player.h
+++ b/graphics/video/flic_player.h
@@ -33,17 +33,6 @@
namespace Graphics {
-struct FlicHeader {
- uint32 size;
- uint16 type;
- uint16 numFrames;
- uint16 width;
- uint16 height;
- uint32 speed;
- uint16 offsetFrame1;
- uint16 offsetFrame2;
-};
-
struct ChunkHeader {
uint32 size;
uint16 type;
@@ -67,25 +56,25 @@ public:
* Returns the width of the video
* @return the width of the video
*/
- int getWidth() const { return _flicInfo.width; }
+ int getWidth();
/**
* Returns the height of the video
* @return the height of the video
*/
- int getHeight() const { return _flicInfo.height; }
+ int getHeight();
/**
* Returns the current frame number of the video
* @return the current frame number of the video
*/
- int getCurFrame() const { return _currFrame; }
+ int32 getCurFrame();
/**
* Returns the amount of frames in the video
* @return the amount of frames in the video
*/
- int getFrameCount() const { return _flicInfo.numFrames; }
+ int32 getFrameCount();
/**
* Load a FLIC encoded video file
@@ -123,7 +112,17 @@ public:
*/
void copyFrameToBuffer(byte *dst, uint x, uint y, uint pitch);
-protected:
+private:
+ struct FlicHeader {
+ uint32 size;
+ uint16 type;
+ uint16 numFrames;
+ uint16 width;
+ uint16 height;
+ uint32 speed;
+ uint16 offsetFrame1;
+ uint16 offsetFrame2;
+ };
ChunkHeader readChunkHeader();
FrameTypeChunkHeader readFrameTypeChunkHeader(ChunkHeader chunkHead);
@@ -131,7 +130,7 @@ protected:
void decodeDeltaFLC(uint8 *data);
void setPalette(uint8 *mem);
- Common::File _fileStream;
+ Common::SeekableReadStream *_fileStream;
bool _paletteDirty;
uint8 *_offscreen;
uint8 _palette[256 * 4];