22 #ifndef MEDIASTATION_MOVIE_H 23 #define MEDIASTATION_MOVIE_H 25 #include "common/array.h" 26 #include "audio/audiostream.h" 28 #include "mediastation/datafile.h" 29 #include "mediastation/assetheader.h" 30 #include "mediastation/bitmap.h" 31 #include "mediastation/mediascript/scriptconstants.h" 40 uint _keyframeEndInMilliseconds = 0;
49 uint _startInMilliseconds = 0;
50 uint _endInMilliseconds = 0;
56 uint _diffBetweenKeyframeAndFrameX = 0;
57 uint _diffBetweenKeyframeAndFrameY = 0;
58 uint _keyframeIndex = 0;
74 uint32 startInMilliseconds();
75 uint32 endInMilliseconds();
76 uint32 keyframeEndInMilliseconds();
86 enum MovieSectionType {
87 kMovieRootSection = 0x06a8,
88 kMovieFrameSection = 0x06a9,
89 kMovieFooterSection = 0x06aa
95 virtual ~
Movie()
override;
97 virtual void readChunk(
Chunk &chunk)
override;
98 virtual void readSubfile(
Subfile &subfile,
Chunk &chunk)
override;
101 virtual void process()
override;
106 bool _showByDefault =
false;
107 bool _isShowing =
false;
108 bool _isPlaying =
false;
124 void spatialCenterMoveTo(
int x,
int y);
125 void spatialMoveTo(
int x,
int y);
127 void updateFrameState();
128 void showPersistentFrame();