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, byte videoPlaytype = kVideoPlaytypeAuto,
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);
93 void setVolume(byte percent);
108 void goToFrame(
int frameNr);
109 void playRange(
int first,
int last);
111 bool isRangePlaying()
const {
return _rangePlaying; }
112 int getCurrentFrame()
const {
return getCurFrame(); }
116 friend class BinkCacheLoader;
118 static byte resolvePlaytype(byte videoPlaytype);
120 void storeCurrentFrame();
121 void freeFrameCache();
122 void unregisterMovie();
123 bool fillNextCacheFrame();
126 byte _videoType = kVideoPlaytypeAVF;
136 bool _useFrameCache =
false;
139 uint _cacheFillNext = 0;
146 bool _rangePlaying =
false;
147 uint32 _lastFrameTime = 0;
148 uint32 _frameDelayMs = 66;
153 #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