22 #ifndef NANCY_MOVIEPLAYER_H 23 #define NANCY_MOVIEPLAYER_H 25 #include "common/array.h" 26 #include "common/ptr.h" 27 #include "common/path.h" 28 #include "common/rational.h" 29 #include "common/rect.h" 31 #include "audio/timestamp.h" 33 #include "graphics/managed_surface.h" 35 #include "engines/nancy/commontypes.h" 65 bool loadFile(
const Common::Path &name,
bool bidirectionalCache =
false);
66 bool isVideoLoaded()
const;
73 void pauseVideo(
bool pause);
74 bool isPlaying()
const;
75 bool needsUpdate()
const;
76 bool endOfVideo()
const;
78 void seekToFrame(uint frame);
83 void setReverse(
bool reverse);
85 int getCurFrame()
const;
86 int getFrameCount()
const;
88 uint16 getWidth()
const;
89 uint16 getHeight()
const;
90 void addFrameTime(uint16 timeToAdd);
101 void goToFrame(
int frameNr);
102 void playRange(
int first,
int last);
104 bool isRangePlaying()
const {
return _rangePlaying; }
105 int getCurrentFrame()
const {
return getCurFrame(); }
109 friend class BinkCacheLoader;
111 void storeCurrentFrame();
112 void freeFrameCache();
113 bool fillNextCacheFrame();
116 byte _videoType = kVideoPlaytypeAVF;
123 bool _useFrameCache =
false;
126 uint _cacheFillNext = 0;
133 bool _rangePlaying =
false;
134 uint32 _lastFrameTime = 0;
135 uint32 _frameDelayMs = 66;
140 #endif // NANCY_MOVIEPLAYER_H Definition: managed_surface.h:51
Definition: movieplayer.h:56
Definition: timestamp.h:83
Definition: rational.h:40
Definition: video_decoder.h:53
Definition: formatinfo.h:28
Definition: animation.h:37
Definition: actionmanager.h:32