Loading [MathJax]/extensions/MathZoom.js
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
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
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->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
void * OSMessage
Definition OSMessage.h:10
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:201
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:217
static void drawDoneStart()
Definition JUTVideo.cpp:154
VIRetraceCallback mPreRetraceCallback
Definition JUTVideo.h:63
static OSTick sVideoInterval
Definition JUTVideo.h:54
static void postRetraceProc(u32)
Definition JUTVideo.cpp:186
static JUTVideo * sManager
Definition JUTVideo.h:52
static JUTVideo * createManager(GXRenderModeObj const *)
Definition JUTVideo.cpp:26
_GXRenderModeObj * mRenderObj
Definition JUTVideo.h:57
void getBounds(u16 &width, u16 &height) const
Definition JUTVideo.h:35
static void preRetraceProc(u32)
Definition JUTVideo.cpp:71
static void destroyManager()
Definition JUTVideo.cpp:34
virtual ~JUTVideo()
Definition JUTVideo.cpp:65
u32 isAntiAliasing() const
Definition JUTVideo.h:40
static void drawDoneCallback()
Definition JUTVideo.cpp:165
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:42
OSMessageQueue mMessageQueue
Definition JUTVideo.h:70
static void dummyNoDrawWait()
Definition JUTVideo.cpp:160
GXRenderModeObj * getRenderMode() const
Definition JUTVideo.h:49
u32 OSTick
Definition os.h:17
Definition OSMessage.h:15
Definition GXStruct.h:11
u16 xfbHeight
Definition GXStruct.h:15
u8 aa
Definition GXStruct.h:22
u8 sample_pattern[12][2]
Definition GXStruct.h:23
u8 vfilter[7]
Definition GXStruct.h:24
u16 efbHeight
Definition GXStruct.h:14
u16 fbWidth
Definition GXStruct.h:13
unsigned long u32
Definition types.h:9
unsigned short int u16
Definition types.h:7
signed long s32
Definition types.h:8
unsigned char u8
Definition types.h:5
void(* VIRetraceCallback)(u32 retraceCount)
Definition vitypes.h:39