blob: 2ef99a1a289153d9bfdf621b94ba40f2b26d33c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
#ifndef D_THP_PLAYER_H
#define D_THP_PLAYER_H
#include "THPPlayer/THPInfo.h"
#include "common.h"
#include "d/d_base.h"
#include "m/m2d.h"
#include "m/m_dvd.h"
#include "sized_string.h"
class ThpVideoScreen : public m2d::Base_c {
public:
ThpVideoScreen() {
mEfbWidth = 0;
mEfbHeight = 0;
mVideoWidth = 0;
mVideoHeight = 0;
}
virtual void draw() override;
void setEfbWidth(s16 width) {
mEfbWidth = width;
}
void setEfbHeight(s16 height) {
mEfbHeight = height;
}
void setVideoDimensions(u32 width, u32 height) {
mVideoWidth = width;
mVideoHeight = height;
}
private:
/* 0x10 */ s32 mEfbWidth;
/* 0x14 */ s32 mEfbHeight;
/* 0x18 */ s32 mVideoWidth;
/* 0x1C */ s32 mVideoHeight;
};
class dThpPlayer_c : public dBase_c {
public:
dThpPlayer_c();
~dThpPlayer_c();
virtual int create() override;
virtual int doDelete() override;
virtual int execute() override;
virtual int draw() override;
void reallyExecute();
void reallyCreate(u16, u16);
s32 isDone();
s32 play();
s32 destroy();
void open();
void setupFile(char *filename, s32 loadAllAtOnce);
private:
/* 0x68 */ mDvd_callback_c *mDvdCallback;
/* 0x6C */ SizedString<0x20> mFilename;
/* 0x8C */ THPVideoInfo mVideoComponent;
/* 0x98 */ THPAudioInfo mAudioComponent;
/* 0xA8 */ s32 mLoadAllAtOnce;
/* 0xAC */ s32 mFilenameSet;
/* 0xB0 */ s32 mSetupDone;
/* 0xB4 */ s32 isPlaying;
/* 0xB8 */ u8 *mBuffer;
/* 0xBC */ ThpVideoScreen mScreen;
/* 0xDC */ s32 mSpecialType;
};
#endif
|