WiiFlow_Lite/source/gui/WiiMovie.hpp
fix94.1 3bc03871fe -fixed a mixed up background (thanks ayatus)
-set wiiflow version to beta 4.2.2
-added another memory manager just for wii games and banners
-changed THP file playback, for sound you now need to have a ogg file with the same name, that fixes all audio shutters and crashes
-optimized THP file playback and JPG extraction alot, it should now work fine with 640x480 30fps without any crash or freeze anymore
2014-02-28 23:11:02 +00:00

42 lines
669 B
C++

#ifndef WII_MOVIE_H_
#define WII_MOVIE_H_
#include "gcvid.h"
#include "Timer.h"
#include "texture.hpp"
using namespace std;
class WiiMovie
{
public:
void Init(const char * filepath);
void DeInit();
bool Play(TexData *Background, bool loop = false);
void Stop();
bool Continue();
volatile bool loaded;
volatile bool rendered;
protected:
static void * UpdateThread(void *arg);
void FrameLoadLoop();
void ReadNextFrame();
void LoadNextFrame();
u8 * ThreadStack;
lwp_t ReadThread;
ThpVideoFile Video;
FILE *vFile;
float fps;
Timer PlayTime;
u32 VideoFrameCount;
TexData *Frame;
bool Playing;
bool ExitRequested;
};
extern WiiMovie movie;
#endif