Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
vi.h
Go to the documentation of this file.
1#ifndef VI_H
2#define VI_H
3
4#include "dolphin/types.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
11
12#define VI_INTERLACE (0)
13#define VI_NON_INTERLACE (1)
14#define VI_PROGRESSIVE (2)
15#define VI_3D (3)
16
17// Video output formats
18#define VI_NTSC (0)
19#define VI_PAL (1)
20#define VI_MPAL (2)
21#define VI_DEBUG (3)
22#define VI_DEBUG_PAL (4)
23#define VI_EURGB60 (5)
24#define VI_GCA (6)
25
26// Conversion to TVMode used in enums
27#define VI_TVMODE(FMT, INT) (((FMT) << 2) + (INT))
28
29// TV Modes
61
63
66
67typedef struct VITimingInfo {
68 u8 equ; // _00
69 u16 acv; // _02
70 u16 prbOdd; // _04
71 u16 prbEven; // _06
72 u16 psbOdd; // _08
73 u16 psbEven; // _0A
74 u8 bs1; // _0C
75 u8 bs2; // _0D
76 u8 bs3; // _0E
77 u8 bs4; // _0F
78 u16 be1; // _10
79 u16 be2; // _12
80 u16 be3; // _14
81 u16 be4; // _16
83 u16 hlw; // _1A
84 u8 hsy; // _1C
85 u8 hcs; // _1D
86 u8 hce; // _1E
87 u8 hbe640; // _1F
88 u16 hbs640; // _20
89 u8 hbeCCIR656; // _24
92
93typedef struct VIPositionInfo {
94 u16 dispPosX; // _00
95 u16 dispPosY; // _02
96 u16 dispSizeX; // _04
97 u16 dispSizeY; // _06
103 u16 fbSizeX; // _12
104 u16 fbSizeY; // _14
105 u16 panPosX; // _16
106 u16 panPosY; // _18
107 u16 panSizeX; // _1A
108 u16 panSizeY; // _1C
110 u32 nonInter; // _24
111 u32 tv; // _28
113 u8 std; // _2D
114 u8 wpl; // _2E
115 u32 bufAddr; // _30
116 u32 tfbb; // _34
117 u32 bfbb; // _38
118 u8 xof; // _3C
119 BOOL isBlack; // _40
120 BOOL is3D; // _44
121 u32 rbufAddr; // _48
122 u32 rtfbb; // _4C
123 u32 rbfbb; // _50
126
127void VIWaitForRetrace(void);
128void VISetNextFrameBuffer(void*);
131void VIInit();
132void VIConfigure(const GXRenderModeObj*);
133void VIFlush();
136void VISetBlack(BOOL);
139u32 VIGetTvFormat(void);
140
141vu16 __VIRegs[59] AT_ADDRESS(0xCC002000);
142
143#ifdef __cplusplus
144};
145#endif
146
147#endif /* VI_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
double x double x
Definition e_atan2.c:58
double x double y
Definition e_atan2.c:58
Definition vi.h:93
u16 panSizeY
Definition vi.h:108
u16 dispSizeY
Definition vi.h:97
BOOL is3D
Definition vi.h:120
u16 fbSizeY
Definition vi.h:104
u32 rbufAddr
Definition vi.h:121
u16 adjDispPosX
Definition vi.h:98
u16 adjDispSizeY
Definition vi.h:100
u16 adjDispPosY
Definition vi.h:99
VITimingInfo * timing
Definition vi.h:124
u16 adjPanPosY
Definition vi.h:101
BOOL isBlack
Definition vi.h:119
u16 dispPosX
Definition vi.h:94
u16 fbSizeX
Definition vi.h:103
u32 bfbb
Definition vi.h:117
u8 wordPerLine
Definition vi.h:112
u16 adjPanSizeY
Definition vi.h:102
u32 rbfbb
Definition vi.h:123
u32 nonInter
Definition vi.h:110
u32 tfbb
Definition vi.h:116
u16 panSizeX
Definition vi.h:107
u16 panPosY
Definition vi.h:106
u8 wpl
Definition vi.h:114
u32 bufAddr
Definition vi.h:115
u8 xof
Definition vi.h:118
u16 panPosX
Definition vi.h:105
u32 rtfbb
Definition vi.h:122
u16 dispSizeX
Definition vi.h:96
u16 dispPosY
Definition vi.h:95
VIXFBMode xfbMode
Definition vi.h:109
u8 std
Definition vi.h:113
u32 tv
Definition vi.h:111
Definition vi.h:67
u16 psbEven
Definition vi.h:73
u16 be1
Definition vi.h:78
u8 hcs
Definition vi.h:85
u16 hlw
Definition vi.h:83
u8 hbe640
Definition vi.h:87
u16 be3
Definition vi.h:80
u8 hsy
Definition vi.h:84
u8 bs3
Definition vi.h:76
u8 equ
Definition vi.h:68
u16 acv
Definition vi.h:69
u16 prbEven
Definition vi.h:71
u16 numHalfLines
Definition vi.h:82
u8 hbeCCIR656
Definition vi.h:89
u8 bs4
Definition vi.h:77
u8 bs1
Definition vi.h:74
u16 psbOdd
Definition vi.h:72
u16 hbs640
Definition vi.h:88
u16 be4
Definition vi.h:81
u16 hbsCCIR656
Definition vi.h:90
u16 be2
Definition vi.h:79
u16 prbOdd
Definition vi.h:70
u8 bs2
Definition vi.h:75
u8 hce
Definition vi.h:86
Definition GXStruct.h:22
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
signed short s16
Definition types.h:5
volatile u16 vu16
Definition types.h:14
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8
void VIFlush()
Definition vi.c:986
u32 VIGetDTVStatus()
Definition vi.c:1129
VIRetraceCallback VISetPostRetraceCallback(VIRetraceCallback)
Definition vi.c:278
void VIWaitForRetrace(void)
Definition vi.c:614
VIRetraceCallback VISetPreRetraceCallback(VIRetraceCallback)
Definition vi.c:269
vu16 __VIRegs[59] AT_ADDRESS(0xCC002000)
void(* VIPositionCallback)(s16 x, s16 y)
Definition vi.h:65
void * VIGetNextFrameBuffer()
Definition vi.c:1017
u32 VIGetRetraceCount()
Definition vi.c:1040
void * VIGetCurrentFrameBuffer()
Definition vi.c:1022
void VIConfigure(const GXRenderModeObj *)
Definition vi.c:856
VITVMode
Definition vi.h:30
@ VI_TVMODE_EURGB60_INT
Definition vi.h:53
@ VI_TVMODE_GCA_DS
Definition vi.h:58
@ VI_TVMODE_NTSC_3D
Definition vi.h:35
@ VI_TVMODE_NTSC_INT
Definition vi.h:32
@ VI_TVMODE_PAL_DS
Definition vi.h:39
@ VI_TVMODE_DEBUG_PAL_INT
Definition vi.h:49
@ VI_TVMODE_GCA_INT
Definition vi.h:57
@ VI_TVMODE_MPAL_INT
Definition vi.h:42
@ VI_TVMODE_NTSC_PROG
Definition vi.h:34
@ VI_TVMODE_DEBUG_INT
Definition vi.h:46
@ VI_TVMODE_PAL_INT
Definition vi.h:38
@ VI_TVMODE_NTSC_DS
Definition vi.h:33
@ VI_TVMODE_MPAL_DS
Definition vi.h:43
@ VI_TVMODE_EURGB60_DS
Definition vi.h:54
@ VI_TVMODE_DEBUG_PAL_DS
Definition vi.h:50
@ VI_TVMODE_GCA_PROG
Definition vi.h:59
VIXFBMode
Definition vi.h:62
@ VI_XFBMODE_DF
Definition vi.h:62
@ VI_XFBMODE_SF
Definition vi.h:62
void(* VIRetraceCallback)(u32)
Definition vi.h:64
void VISetBlack(BOOL)
Definition vi.c:1027
void VISetNextFrameBuffer(void *)
Definition vi.c:1008
void VIInit()
Definition vi.c:518
u32 VIGetTvFormat(void)
Definition vi.c:1101