Mario Kart 64
Loading...
Searching...
No Matches
os_vi.h File Reference
#include <PR/ultratypes.h>
#include <PR/os_message.h>
Include dependency graph for os_vi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  OSViCommonRegs
 
struct  OSViFieldRegs
 
struct  OSViMode
 
struct  OSViContext
 

Macros

#define OS_VI_GAMMA_ON   0x0001
 
#define OS_VI_GAMMA_OFF   0x0002
 
#define OS_VI_GAMMA_DITHER_ON   0x0004
 
#define OS_VI_GAMMA_DITHER_OFF   0x0008
 
#define OS_VI_DIVOT_ON   0x0010
 
#define OS_VI_DIVOT_OFF   0x0020
 
#define OS_VI_DITHER_FILTER_ON   0x0040
 
#define OS_VI_DITHER_FILTER_OFF   0x0080
 
#define OS_VI_GAMMA   0x08
 
#define OS_VI_GAMMA_DITHER   0x04
 
#define OS_VI_DIVOT   0x10
 
#define OS_VI_DITHER_FILTER   0x10000
 
#define OS_VI_UNK200   0x200
 
#define OS_VI_UNK100   0x100
 
#define OS_VI_NTSC_LPN1   0 /* NTSC */
 
#define OS_VI_NTSC_LPF1   1
 
#define OS_VI_NTSC_LAN1   2
 
#define OS_VI_NTSC_LAF1   3
 
#define OS_VI_NTSC_LPN2   4
 
#define OS_VI_NTSC_LPF2   5
 
#define OS_VI_NTSC_LAN2   6
 
#define OS_VI_NTSC_LAF2   7
 
#define OS_VI_NTSC_HPN1   8
 
#define OS_VI_NTSC_HPF1   9
 
#define OS_VI_NTSC_HAN1   10
 
#define OS_VI_NTSC_HAF1   11
 
#define OS_VI_NTSC_HPN2   12
 
#define OS_VI_NTSC_HPF2   13
 
#define OS_VI_PAL_LPN1   14 /* PAL */
 
#define OS_VI_PAL_LPF1   15
 
#define OS_VI_PAL_LAN1   16
 
#define OS_VI_PAL_LAF1   17
 
#define OS_VI_PAL_LPN2   18
 
#define OS_VI_PAL_LPF2   19
 
#define OS_VI_PAL_LAN2   20
 
#define OS_VI_PAL_LAF2   21
 
#define OS_VI_PAL_HPN1   22
 
#define OS_VI_PAL_HPF1   23
 
#define OS_VI_PAL_HAN1   24
 
#define OS_VI_PAL_HAF1   25
 
#define OS_VI_PAL_HPN2   26
 
#define OS_VI_PAL_HPF2   27
 

Functions

void osCreateViManager (OSPri pri)
 
void osViSetMode (OSViMode *mode)
 
void osViSetEvent (OSMesgQueue *mq, OSMesg msg, u32 retraceCount)
 
void osViBlack (u8 active)
 
void osViSetSpecialFeatures (u32 func)
 
void osViSwapBuffer (void *vaddr)
 

Variables

OSViMode osViModeTable []
 

Macro Definition Documentation

◆ OS_VI_DITHER_FILTER

#define OS_VI_DITHER_FILTER   0x10000

◆ OS_VI_DITHER_FILTER_OFF

#define OS_VI_DITHER_FILTER_OFF   0x0080

◆ OS_VI_DITHER_FILTER_ON

#define OS_VI_DITHER_FILTER_ON   0x0040

◆ OS_VI_DIVOT

#define OS_VI_DIVOT   0x10

◆ OS_VI_DIVOT_OFF

#define OS_VI_DIVOT_OFF   0x0020

◆ OS_VI_DIVOT_ON

#define OS_VI_DIVOT_ON   0x0010

◆ OS_VI_GAMMA

#define OS_VI_GAMMA   0x08

◆ OS_VI_GAMMA_DITHER

#define OS_VI_GAMMA_DITHER   0x04

◆ OS_VI_GAMMA_DITHER_OFF

#define OS_VI_GAMMA_DITHER_OFF   0x0008

◆ OS_VI_GAMMA_DITHER_ON

#define OS_VI_GAMMA_DITHER_ON   0x0004

◆ OS_VI_GAMMA_OFF

#define OS_VI_GAMMA_OFF   0x0002

◆ OS_VI_GAMMA_ON

#define OS_VI_GAMMA_ON   0x0001

◆ OS_VI_NTSC_HAF1

#define OS_VI_NTSC_HAF1   11

◆ OS_VI_NTSC_HAN1

#define OS_VI_NTSC_HAN1   10

◆ OS_VI_NTSC_HPF1

#define OS_VI_NTSC_HPF1   9

◆ OS_VI_NTSC_HPF2

#define OS_VI_NTSC_HPF2   13

◆ OS_VI_NTSC_HPN1

#define OS_VI_NTSC_HPN1   8

◆ OS_VI_NTSC_HPN2

#define OS_VI_NTSC_HPN2   12

◆ OS_VI_NTSC_LAF1

#define OS_VI_NTSC_LAF1   3

◆ OS_VI_NTSC_LAF2

#define OS_VI_NTSC_LAF2   7

◆ OS_VI_NTSC_LAN1

#define OS_VI_NTSC_LAN1   2

◆ OS_VI_NTSC_LAN2

#define OS_VI_NTSC_LAN2   6

◆ OS_VI_NTSC_LPF1

#define OS_VI_NTSC_LPF1   1

◆ OS_VI_NTSC_LPF2

#define OS_VI_NTSC_LPF2   5

◆ OS_VI_NTSC_LPN1

#define OS_VI_NTSC_LPN1   0 /* NTSC */

◆ OS_VI_NTSC_LPN2

#define OS_VI_NTSC_LPN2   4

◆ OS_VI_PAL_HAF1

#define OS_VI_PAL_HAF1   25

◆ OS_VI_PAL_HAN1

#define OS_VI_PAL_HAN1   24

◆ OS_VI_PAL_HPF1

#define OS_VI_PAL_HPF1   23

◆ OS_VI_PAL_HPF2

#define OS_VI_PAL_HPF2   27

◆ OS_VI_PAL_HPN1

#define OS_VI_PAL_HPN1   22

◆ OS_VI_PAL_HPN2

#define OS_VI_PAL_HPN2   26

◆ OS_VI_PAL_LAF1

#define OS_VI_PAL_LAF1   17

◆ OS_VI_PAL_LAF2

#define OS_VI_PAL_LAF2   21

◆ OS_VI_PAL_LAN1

#define OS_VI_PAL_LAN1   16

◆ OS_VI_PAL_LAN2

#define OS_VI_PAL_LAN2   20

◆ OS_VI_PAL_LPF1

#define OS_VI_PAL_LPF1   15

◆ OS_VI_PAL_LPF2

#define OS_VI_PAL_LPF2   19

◆ OS_VI_PAL_LPN1

#define OS_VI_PAL_LPN1   14 /* PAL */

◆ OS_VI_PAL_LPN2

#define OS_VI_PAL_LPN2   18

◆ OS_VI_UNK100

#define OS_VI_UNK100   0x100

◆ OS_VI_UNK200

#define OS_VI_UNK200   0x200

Function Documentation

◆ osCreateViManager()

void osCreateViManager ( OSPri pri)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ osViBlack()

void osViBlack ( u8 active)
Todo
name magic constants
Here is the call graph for this function:
Here is the caller graph for this function:

◆ osViSetEvent()

void osViSetEvent ( OSMesgQueue * mq,
OSMesg msg,
u32 retraceCount )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ osViSetMode()

void osViSetMode ( OSViMode * mode)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ osViSetSpecialFeatures()

void osViSetSpecialFeatures ( u32 func)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ osViSwapBuffer()

void osViSwapBuffer ( void * vaddr)
Todo
figure out what this flag means
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ osViModeTable

OSViMode osViModeTable[]
extern