238 unsigned long long *mIpuTags;
239 sceIpuDmaEnv mIpuEnv;
static void Init()
Install the movie factory for the class Movie of a .rnd file, reset the IPU, and install the interrup...
int SetFrameSelf(float fFrame) override
Queue the decode of the frame after the one decoded last, or of the first frame when the requested fr...
void StartFrame()
Start the IPU decoding the next frame into the bitmap of the texture.
static void Terminate()
Remove the interrupt handler and restore the generic movie factory.
static void InstallHandler()
Install the interrupt handler unless it is installed.
static void RemoveHandler()
Remove the interrupt handler.
~PsMovie() override
Release the data.
Definition psmovie.h:42
static PsMovie * sActive
The movie decoding, or null.
Definition psmovie.h:228
static constexpr float kEndFrame
The frame EndFrame() reports.
Definition psmovie.h:212
void OpenData()
Load the file, size the texture for it, and build the IPU input chain.
void Replace(RndObject *pFrom, RndObject *pTo) override
Wait while the movie is queued when the texture is replaced, then replace it.
void Open() override
Take a reference on the texture, then load the data.
Definition psmovie.h:77
void Close() override
Release the data, then drop the reference on the texture.
Definition psmovie.h:88
static RndObject * New(const char *pszName)
Create a movie.
Definition psmovie.h:207
PsMovie(const char *pszName)
Construct a movie without data.
void FinishFrame()
End the decode of a frame, mark the texture for upload, and start the next movie queued.
static int DmacHandler(int nChannel)
End the frame of the movie decoding, the interrupt handler of the IPU output channel.
float EndFrame() override
Report the last frame, fixed at 10 whatever the length of the file.
Definition psmovie.h:53
static int sHandlerId
The interrupt handler, or -1 while it is removed.
Definition psmovie.h:220
void CloseData()
Wait while the movie is queued, then release the data and the IPU input chain.
virtual void Open()
Take a reference on the texture.
virtual void Close()
Drop the reference on the texture.
RndMovie(const char *pszName)
Construct a movie without a file or a texture.
RndObject(const char *pszName)
Construct an object and register it under a name.