22 #ifndef TITANIC_AVI_SURFACE_H 23 #define TITANIC_AVI_SURFACE_H 25 #include "common/stream.h" 26 #include "video/avi_decoder.h" 27 #include "graphics/managed_surface.h" 28 #include "titanic/core/resource_key.h" 29 #include "titanic/support/movie_range_info.h" 38 MOVIE_STOP_PREVIOUS = 2,
39 MOVIE_NOTIFY_OBJECT = 4,
41 MOVIE_WAIT_FOR_FINISH = 0x10
56 uint32
read(
void *dataPtr, uint32 dataSize)
override;
57 bool eos()
const override {
return _innerStream->
eos(); }
58 int64
pos()
const override {
return _innerStream->
pos(); }
59 int64
size()
const override {
return _innerStream->
size(); }
60 bool seek(int64 offset,
int whence = SEEK_SET)
override {
61 return _innerStream->
seek(offset, whence);
63 bool skip(uint32 offset)
override {
64 return _innerStream->
skip(offset);
66 char *
readLine(
char *s,
size_t bufSize,
bool handleCR =
true)
override {
67 return _innerStream->
readLine(s, bufSize, handleCR);
70 return _innerStream->
readLine(handleCR);
95 return static_cast<AVIVideoTrack *
>(_transparencyTrack.track);
108 int _currentFrame, _priorFrame;
109 uint32 _priorFrameTime;
120 void setupDecompressor();
135 bool startAtFrame(
int frameNumber);
140 virtual void seekToFrame(uint frameNumber);
156 virtual bool play(
int startFrame,
int endFrame, uint flags,
CGameObject *obj);
161 virtual bool play(
int startFrame,
int endFrame,
int initialFrame, uint flags,
CGameObject *obj);
171 virtual void pause();
176 virtual void resume();
205 uint getWidth()
const;
210 uint getHeight()
const;
215 void setFrame(
int frameNumber);
230 void setFrameRate(
double rate);
241 return &_movieRangeInfo;
258 bool playCutscene(
const Rect &r, uint startFrame, uint endFrame);
263 uint getBitDepth()
const;
Definition: managed_surface.h:51
Definition: resource_key.h:30
virtual char * readLine(char *s, size_t bufSize, bool handleCR=true)
bool eos() const override
Definition: avi_surface.h:57
char * readLine(char *s, size_t bufSize, bool handleCR=true) override
Definition: avi_surface.h:66
AVIVideoTrack * getTransparencyTrack()
Definition: avi_surface.h:94
Definition: avi_decoder.h:64
uint videoTrackCount() const
Definition: avi_surface.h:84
Definition: avi_surface.h:75
Definition: movie_range_info.h:76
Definition: rational.h:40
Definition: avi_surface.h:49
uint32 read(void *dataPtr, uint32 dataSize) override
int64 pos() const override
Definition: avi_surface.h:58
Definition: game_object.h:79
int getFrame() const
Definition: avi_surface.h:220
virtual void setPlaying(bool playingFlag)
Definition: avi_surface.h:188
Definition: avi_decoder.h:203
int64 size() const override
Definition: sound_manager.h:42
void pauseVideo(bool pause)
virtual bool isPlaying() const
Definition: avi_surface.h:181
Definition: avi_surface.h:99
const CMovieRangeInfoList * getMovieRangeInfo() const
Definition: avi_surface.h:240
Definition: simple_file.h:41
bool eos() const override
bool isReversed() const
Definition: avi_surface.h:268
bool seek(int64 offset, int whence=SEEK_SET) override
Definition: avi_surface.h:60
bool skip(uint32 offset) override
Definition: avi_surface.h:63
Definition: video_surface.h:43
int64 pos() const override
bool seek(int64 offs, int whence=SEEK_SET) override
Common::String readLine(bool handleCR=true) override
Definition: avi_surface.h:69
Definition: movie_event.h:56
virtual bool skip(uint32 offset)
Definition: stream.h:793
int64 size() const override
Definition: avi_surface.h:59