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
4#include <dolphin/gx.h>
5#include <dolphin/os.h>
6#include <dolphin/os.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
23 static void destroyManager();
24 static void drawDoneStart();
25 static void dummyNoDrawWait();
26 void setRenderMode(GXRenderModeObj const*);
27 void waitRetraceIfNeed();
28
29 static void preRetraceProc(u32);
30 static void postRetraceProc(u32);
31 static void drawDoneCallback();
32
33 u16 getFbWidth() const { return mRenderObj->fbWidth; }
34 u16 getEfbHeight() const { return mRenderObj->efbHeight; }
35 void getBounds(u16& width, u16& height) const {
36 width = (u16)getFbWidth();
37 height = (u16)getEfbHeight();
38 }
39 u16 getXfbHeight() const { return mRenderObj->xfbHeight; }
40 u32 isAntiAliasing() const { return mRenderObj->aa; }
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
Definition JUTVideo.h:14
u32 mRetraceCount
Definition JUTVideo.h:59
u16 getEfbHeight() const
Definition JUTVideo.h:34
static OSTick sVideoLastTick
Definition JUTVideo.h:53
void(*) Callback(u32)
Definition JUTVideo.h:16
static JUTVideo * getManager()
Definition JUTVideo.h:45
void setRenderMode(GXRenderModeObj const *)
Definition JUTVideo.cpp:182
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:197
static void drawDoneStart()
Definition JUTVideo.cpp:140
VIRetraceCallback mPreRetraceCallback
Definition JUTVideo.h:63
static OSTick sVideoInterval
Definition JUTVideo.h:54
static void postRetraceProc(u32)
Definition JUTVideo.cpp:169
static JUTVideo * sManager
Definition JUTVideo.h:52
static JUTVideo * createManager(GXRenderModeObj const *)
Definition JUTVideo.cpp:17
_GXRenderModeObj * mRenderObj
Definition JUTVideo.h:57
void getBounds(u16 &width, u16 &height) const
Definition JUTVideo.h:35
static void preRetraceProc(u32)
Definition JUTVideo.cpp:58
static void destroyManager()
Definition JUTVideo.cpp:24
virtual ~JUTVideo()
Definition JUTVideo.cpp:53
u32 isAntiAliasing() const
Definition JUTVideo.h:40
static void drawDoneCallback()
Definition JUTVideo.cpp:149
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
JUTVideo(GXRenderModeObj const *)
Definition JUTVideo.cpp:31
OSMessageQueue mMessageQueue
Definition JUTVideo.h:70
static void dummyNoDrawWait()
Definition JUTVideo.cpp:145
GXRenderModeObj * getRenderMode() const
Definition JUTVideo.h:49
void * OSMessage
Definition OSMessage.h:13
u32 OSTick
Definition os.h:20
unsigned long u32
Definition types.h:12
unsigned short int u16
Definition types.h:10
signed long s32
Definition types.h:11
unsigned char u8
Definition types.h:8
void(* VIRetraceCallback)(u32 retraceCount)
Definition vitypes.h:42
Definition OSMessage.h:18
Definition GXStruct.h:14
u16 xfbHeight
Definition GXStruct.h:18
u8 aa
Definition GXStruct.h:25
u16 efbHeight
Definition GXStruct.h:17
u16 fbWidth
Definition GXStruct.h:16
u8 vfilter[7]
Definition GXStruct.h:27
u8 sample_pattern[12][2]
Definition GXStruct.h:26