Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
vi.c File Reference

Functions

void __VIGetCurrentPosition (s16 *x, s16 *y)
 
static u32 getCurrentFieldEvenOdd ()
 
void SIRefreshSamplingRate ()
 
void __shl2i ()
 
void __shr2u ()
 
static int cntlzd (u64 bit)
 
static BOOL VISetRegs (void)
 
static void __VIRetraceHandler (__OSInterrupt interrupt, OSContext *context)
 
VIRetraceCallback VISetPreRetraceCallback (VIRetraceCallback cb)
 
VIRetraceCallback VISetPostRetraceCallback (VIRetraceCallback cb)
 
static VITimingInfogetTiming (VITVMode mode)
 
void __VIInit (VITVMode mode)
 
static void AdjustPosition (u16 acv)
 
static void ImportAdjustingValues (void)
 
void VIInit (void)
 
void VIWaitForRetrace ()
 
static void setInterruptRegs (VITimingInfo *tm)
 
static void setPicConfig (u16 fbSizeX, VIXFBMode xfbMode, u16 panPosX, u16 panSizeX, u8 *wordPerLine, u8 *std, u8 *wpl, u8 *xof)
 
static void setBBIntervalRegs (VITimingInfo *tm)
 
static void setScalingRegs (u16 panSizeX, u16 dispSizeX, BOOL is3D)
 
static void calcFbbs (u32 bufAddr, u16 panPosX, u16 panPosY, u8 wordPerLine, VIXFBMode xfbMode, u16 dispPosY, u32 *tfbb, u32 *bfbb)
 
static void setFbbRegs (VIPositionInfo *hv, u32 *tfbb, u32 *bfbb, u32 *rtfbb, u32 *rbfbb)
 
static void setHorizontalRegs (VITimingInfo *tm, u16 dispPosX, u16 dispSizeX)
 
static void setVerticalRegs (u16 dispPosY, u16 dispSizeY, u8 equ, u16 acv, u16 prbOdd, u16 prbEven, u16 psbOdd, u16 psbEven, BOOL black)
 
static void PrintDebugPalCaution (void)
 
void VIConfigure (const GXRenderModeObj *obj)
 
void VIFlush (void)
 
void VISetNextFrameBuffer (void *fb)
 
voidVIGetNextFrameBuffer ()
 
voidVIGetCurrentFrameBuffer ()
 
void VISetBlack (BOOL isBlack)
 
u32 VIGetRetraceCount ()
 
static void GetCurrentDisplayPosition (u32 *hct, u32 *vct)
 
static u32 getCurrentHalfLine (void)
 
u32 VIGetNextField (void)
 
u32 VIGetCurrentLine (void)
 
u32 VIGetTvFormat (void)
 
u32 VIGetDTVStatus ()
 
void __VIDisplayPositionToXY (u32 hcount, u32 vcount, s16 *x, s16 *y)
 

Variables

static vu16 regs [59]
 
static BOOL IsInitialized
 
static vu32 retraceCount
 
static u32 flushFlag
 
static OSThreadQueue retraceQueue
 
static VIRetraceCallback PreCB
 
static VIRetraceCallback PostCB
 
static VIPositionCallback PositionCallback
 
static u32 encoderType
 
static s16 displayOffsetH
 
static s16 displayOffsetV
 
static vu32 changeMode
 
static vu64 changed
 
static vu32 shdwChangeMode
 
static vu64 shdwChanged
 
static VITimingInfoCurrTiming
 
static u32 CurrTvMode
 
static u32 NextBufAddr
 
static u32 CurrBufAddr
 
static vu16 shdwRegs [59]
 
static VIPositionInfo HorVer
 
static SECTION_DATA char lit_1 []
 
static VITimingInfo timing [10]
 
static u16 taps [26]
 
static u32 FBSet
 
static VITimingInfotimingExtra
 
static SECTION_SDATA void__VIVersion = (void*)&lit_1
 
static u32 message
 
static SECTION_SDATA char lit_537 [] = "vi.c"
 

Function Documentation

◆ __shl2i()

asm void __shl2i ( void  )

◆ __shr2u()

asm void __shr2u ( void  )

◆ __VIDisplayPositionToXY()

void __VIDisplayPositionToXY ( u32  hcount,
u32  vcount,
s16 x,
s16 y 
)

◆ __VIGetCurrentPosition()

void __VIGetCurrentPosition ( s16 x,
s16 y 
)

◆ __VIInit()

void __VIInit ( VITVMode  mode)

◆ __VIRetraceHandler()

static void __VIRetraceHandler ( __OSInterrupt  interrupt,
OSContext context 
)
static

◆ AdjustPosition()

static void AdjustPosition ( u16  acv)
static

◆ calcFbbs()

static void calcFbbs ( u32  bufAddr,
u16  panPosX,
u16  panPosY,
u8  wordPerLine,
VIXFBMode  xfbMode,
u16  dispPosY,
u32 tfbb,
u32 bfbb 
)
static

◆ cntlzd()

static int cntlzd ( u64  bit)
static

◆ GetCurrentDisplayPosition()

static void GetCurrentDisplayPosition ( u32 hct,
u32 vct 
)
static

◆ getCurrentFieldEvenOdd()

static u32 getCurrentFieldEvenOdd ( )
static

◆ getCurrentHalfLine()

static u32 getCurrentHalfLine ( void  )
static

◆ getTiming()

static VITimingInfo * getTiming ( VITVMode  mode)
static

◆ ImportAdjustingValues()

static void ImportAdjustingValues ( void  )
static

◆ PrintDebugPalCaution()

static void PrintDebugPalCaution ( void  )
static

◆ setBBIntervalRegs()

static void setBBIntervalRegs ( VITimingInfo tm)
static

◆ setFbbRegs()

static void setFbbRegs ( VIPositionInfo hv,
u32 tfbb,
u32 bfbb,
u32 rtfbb,
u32 rbfbb 
)
static

◆ setHorizontalRegs()

static void setHorizontalRegs ( VITimingInfo tm,
u16  dispPosX,
u16  dispSizeX 
)
static

◆ setInterruptRegs()

static void setInterruptRegs ( VITimingInfo tm)
static

◆ setPicConfig()

static void setPicConfig ( u16  fbSizeX,
VIXFBMode  xfbMode,
u16  panPosX,
u16  panSizeX,
u8 wordPerLine,
u8 std,
u8 wpl,
u8 xof 
)
static

◆ setScalingRegs()

static void setScalingRegs ( u16  panSizeX,
u16  dispSizeX,
BOOL  is3D 
)
static

◆ setVerticalRegs()

static void setVerticalRegs ( u16  dispPosY,
u16  dispSizeY,
u8  equ,
u16  acv,
u16  prbOdd,
u16  prbEven,
u16  psbOdd,
u16  psbEven,
BOOL  black 
)
static

◆ SIRefreshSamplingRate()

void SIRefreshSamplingRate ( )

◆ VIConfigure()

void VIConfigure ( const GXRenderModeObj obj)

◆ VIFlush()

void VIFlush ( void  )

◆ VIGetCurrentFrameBuffer()

void * VIGetCurrentFrameBuffer ( )

◆ VIGetCurrentLine()

u32 VIGetCurrentLine ( void  )

◆ VIGetDTVStatus()

u32 VIGetDTVStatus ( )

◆ VIGetNextField()

u32 VIGetNextField ( void  )

◆ VIGetNextFrameBuffer()

void * VIGetNextFrameBuffer ( )

◆ VIGetRetraceCount()

u32 VIGetRetraceCount ( )

◆ VIGetTvFormat()

u32 VIGetTvFormat ( void  )

◆ VIInit()

void VIInit ( void  )

◆ VISetBlack()

void VISetBlack ( BOOL  isBlack)

◆ VISetNextFrameBuffer()

void VISetNextFrameBuffer ( void fb)

◆ VISetPostRetraceCallback()

VIRetraceCallback VISetPostRetraceCallback ( VIRetraceCallback  cb)

◆ VISetPreRetraceCallback()

VIRetraceCallback VISetPreRetraceCallback ( VIRetraceCallback  cb)

◆ VISetRegs()

static BOOL VISetRegs ( void  )
static

◆ VIWaitForRetrace()

void VIWaitForRetrace ( void  )

Variable Documentation

◆ __VIVersion

SECTION_SDATA void* __VIVersion = (void*)&lit_1
static

◆ changed

vu64 changed
static

◆ changeMode

vu32 changeMode
static

◆ CurrBufAddr

u32 CurrBufAddr
static

◆ CurrTiming

VITimingInfo* CurrTiming
static

◆ CurrTvMode

u32 CurrTvMode
static

◆ displayOffsetH

s16 displayOffsetH
static

◆ displayOffsetV

s16 displayOffsetV
static

◆ encoderType

u32 encoderType
static

◆ FBSet

u32 FBSet
static

◆ flushFlag

u32 flushFlag
static

◆ HorVer

VIPositionInfo HorVer
static

◆ IsInitialized

BOOL IsInitialized
static

◆ lit_1

SECTION_DATA char lit_1[]
static
Initial value:
=
"<< Dolphin SDK - VI\trelease build: Apr 7 2004 04:13:59 (0x2301) >>"

◆ lit_537

SECTION_SDATA char lit_537[] = "vi.c"
static

◆ message

u32 message
static

◆ NextBufAddr

u32 NextBufAddr
static

◆ PositionCallback

VIPositionCallback PositionCallback
static

◆ PostCB

VIRetraceCallback PostCB
static

◆ PreCB

VIRetraceCallback PreCB
static

◆ regs

vu16 regs[59]
static

◆ retraceCount

vu32 retraceCount
static

◆ retraceQueue

OSThreadQueue retraceQueue
static

◆ shdwChanged

vu64 shdwChanged
static

◆ shdwChangeMode

vu32 shdwChangeMode
static

◆ shdwRegs

vu16 shdwRegs[59]
static

◆ taps

u16 taps[26]
static
Initial value:
= {496, 476, 430, 372, 297, 219, 142, 70, 12, 226, 203, 192, 196,
207, 222, 236, 252, 8, 15, 19, 19, 15, 12, 8, 1, 0}

◆ timing

VITimingInfo timing[10]
static

◆ timingExtra

VITimingInfo* timingExtra
static