Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JUTVideo.h
Go to the documentation of this file.
1#ifndef JUTVIDEO_H
2#define JUTVIDEO_H
3
6#include "dolphin/os/OSTime.h"
7
8typedef u8 (*Pattern)[2];
9
14class JUTVideo {
15public:
16 typedef void (*Callback)(u32);
17
19 virtual ~JUTVideo();
20
21 // TODO: return types not confirmed
22 /* 802E4C54 */ static JUTVideo* createManager(GXRenderModeObj const*);
23 /* 802E4CAC */ static void destroyManager();
24 /* 802E5088 */ static void drawDoneStart();
25 /* 802E50B0 */ static void dummyNoDrawWait();
26 /* 802E5198 */ void setRenderMode(GXRenderModeObj const*);
27 /* 802E5210 */ void waitRetraceIfNeed();
28
29 /* 802E4E50 */ static void preRetraceProc(u32);
30 /* 802E5144 */ static void postRetraceProc(u32);
31 /* 802E50BC */ static void drawDoneCallback();
32
33 u16 getFbWidth() const { return mRenderObj->fb_width; }
35 void getBounds(u16& width, u16& height) const {
36 width = (u16)getFbWidth();
37 height = (u16)getEfbHeight();
38 }
42 u8* getVFilter() const { return mRenderObj->vfilter; }
44
45 static JUTVideo* getManager() { return sManager; }
48
50
51private:
55
56private:
58 /* 0x08 */ u32 field_0x8;
59 /* 0x0C */ u32 mRetraceCount;
60 /* 0x10 */ u32 field_0x10;
61 /* 0x14 */ u32 field_0x14;
62 /* 0x18 */ u32 field_0x18;
67 /* 0x2C */ bool mSetBlack;
69 /* 0x34 */ OSMessage mMessage;
71};
72
76
77#endif /* JUTVIDEO_H */
u8(* Pattern)[2]
Definition JUTVideo.h:8
JUTVideo * JUTGetVideoManager()
Definition JUTVideo.h:73
void * OSMessage
Definition OSMessage.h:10
u32 OSTick
Definition OSTime.h:11
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JUTVideo.h:14
u32 mRetraceCount
Definition JUTVideo.h:59
u16 getEfbHeight() const
Definition JUTVideo.h:34
static OSTick sVideoLastTick
Definition JUTVideo.h:53
static JUTVideo * getManager()
Definition JUTVideo.h:45
void setRenderMode(GXRenderModeObj const *)
Definition JUTVideo.cpp:200
u32 field_0x18
Definition JUTVideo.h:62
Callback mPreCallback
Definition JUTVideo.h:65
bool mSetBlack
Definition JUTVideo.h:67
OSMessage mMessage
Definition JUTVideo.h:69
Callback mPostCallback
Definition JUTVideo.h:66
u16 getXfbHeight() const
Definition JUTVideo.h:39
static OSTick getVideoInterval()
Definition JUTVideo.h:46
u16 getFbWidth() const
Definition JUTVideo.h:33
OSMessageQueue * getMessageQueue()
Definition JUTVideo.h:43
u8 * getVFilter() const
Definition JUTVideo.h:42
void waitRetraceIfNeed()
Definition JUTVideo.cpp:216
static void drawDoneStart()
Definition JUTVideo.cpp:153
VIRetraceCallback mPreRetraceCallback
Definition JUTVideo.h:63
static OSTick sVideoInterval
Definition JUTVideo.h:54
static void postRetraceProc(u32)
Definition JUTVideo.cpp:185
static JUTVideo * sManager
Definition JUTVideo.h:52
static JUTVideo * createManager(GXRenderModeObj const *)
Definition JUTVideo.cpp:25
_GXRenderModeObj * mRenderObj
Definition JUTVideo.h:57
void getBounds(u16 &width, u16 &height) const
Definition JUTVideo.h:35
static void preRetraceProc(u32)
Definition JUTVideo.cpp:70
static void destroyManager()
Definition JUTVideo.cpp:33
virtual ~JUTVideo()
Definition JUTVideo.cpp:64
u32 isAntiAliasing() const
Definition JUTVideo.h:40
static void drawDoneCallback()
Definition JUTVideo.cpp:164
u32 field_0x14
Definition JUTVideo.h:61
VIRetraceCallback mPostRetraceCallback
Definition JUTVideo.h:64
static OSTick getVideoLastTick()
Definition JUTVideo.h:47
u32 field_0x10
Definition JUTVideo.h:60
Pattern getSamplePattern() const
Definition JUTVideo.h:41
u32 field_0x8
Definition JUTVideo.h:58
s32 mSetBlackFrameCount
Definition JUTVideo.h:68
OSMessageQueue mMessageQueue
Definition JUTVideo.h:70
static void dummyNoDrawWait()
Definition JUTVideo.cpp:159
GXRenderModeObj * getRenderMode() const
Definition JUTVideo.h:49
void(* Callback)(u32)
Definition JUTVideo.h:16
Definition OSMessage.h:12
Definition GXStruct.h:22
u8 sample_pattern[12][2]
Definition GXStruct.h:34
u8 vfilter[7]
Definition GXStruct.h:35
u16 xfb_height
Definition GXStruct.h:26
u8 antialiasing
Definition GXStruct.h:33
u16 efb_height
Definition GXStruct.h:25
u16 fb_width
Definition GXStruct.h:24
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8
void(* VIRetraceCallback)(u32)
Definition vi.h:64