RetroArch
Typedefs | Functions
video.h File Reference

VIDEO subsystem. More...

#include <gctypes.h>
#include "gx_struct.h"
#include "video_types.h"
Include dependency graph for video.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* VIRetraceCallback) (u32 retraceCnt)
 function pointer typedef for the user's retrace callback More...
 
typedef void(* VIPositionCallback) (u32 posX, u32 posY)
 

Functions

voidVIDEO_GetNextFramebuffer ()
 
voidVIDEO_GetCurrentFramebuffer ()
 
void VIDEO_Init ()
 Initializes the VIDEO subsystem. This call should be done in the early stages of your main() More...
 
void VIDEO_Flush ()
 Flush the shadow registers to the drivers video registers. More...
 
void VIDEO_SetBlack (bool black)
 Blackout the VIDEO interface. More...
 
u32 VIDEO_GetNextField ()
 Get the next field in DS mode. More...
 
u32 VIDEO_GetCurrentLine ()
 Get current video line. More...
 
u32 VIDEO_GetCurrentTvMode ()
 Get current configured TV mode. More...
 
void VIDEO_Configure (GXRModeObj *rmode)
 Configure the VI with the given render mode object. More...
 
u32 VIDEO_GetFrameBufferSize (GXRModeObj *rmode)
 
void VIDEO_ClearFrameBuffer (GXRModeObj *rmode, void *fb, u32 color)
 Clear the given framebuffer. More...
 
void VIDEO_WaitVSync (void)
 Wait on the next vertical retrace. More...
 
void VIDEO_SetNextFramebuffer (void *fb)
 Set the framebuffer for the next VI register update. More...
 
void VIDEO_SetNextRightFramebuffer (void *fb)
 Set the right framebuffer for the next VI register update. This is used for 3D Gloves for instance. More...
 
VIRetraceCallback VIDEO_SetPreRetraceCallback (VIRetraceCallback callback)
 Set the Pre-Retrace callback function. This function is called within the video interrupt handler before the VI registers will be updated. More...
 
VIRetraceCallback VIDEO_SetPostRetraceCallback (VIRetraceCallback callback)
 Set the Post-Retrace callback function. This function is called within the video interrupt handler after the VI registers are updated. More...
 
u32 VIDEO_HaveComponentCable (void)
 Check for a component cable. This function returns 1 when a Component (YPbPr) cable is connected. More...
 
GXRModeObjVIDEO_GetPreferredMode (GXRModeObj *mode)
 

Detailed Description

VIDEO subsystem.

Typedef Documentation

◆ VIPositionCallback

typedef void(* VIPositionCallback) (u32 posX, u32 posY)

◆ VIRetraceCallback

void(* VIRetraceCallback)(u32 retraceCnt)

function pointer typedef for the user's retrace callback

Parameters
[in]retraceCntcurrent retrace count

Function Documentation

◆ VIDEO_ClearFrameBuffer()

void VIDEO_ClearFrameBuffer ( GXRModeObj rmode,
void fb,
u32  color 
)

Clear the given framebuffer.

Parameters
[in]rmodepointer to a GXRModeObj, specifying the mode.
[in]fbpointer to the startaddress of the framebuffer to clear.
[in]colorYUYUV value to use for clearing.
Returns
none
Here is the call graph for this function:
Here is the caller graph for this function:

◆ VIDEO_Configure()

void VIDEO_Configure ( GXRModeObj rmode)

Configure the VI with the given render mode object.

Parameters
[in]rmodepointer to the video/render mode configuration.
Returns
none
Here is the call graph for this function:
Here is the caller graph for this function:

◆ VIDEO_Flush()

void VIDEO_Flush ( )

Flush the shadow registers to the drivers video registers.

Returns
none
Here is the call graph for this function:
Here is the caller graph for this function:

◆ VIDEO_GetCurrentFramebuffer()

void* VIDEO_GetCurrentFramebuffer ( )
Here is the caller graph for this function:

◆ VIDEO_GetCurrentLine()

u32 VIDEO_GetCurrentLine ( )

Get current video line.

Returns
linenumber
Here is the call graph for this function:
Here is the caller graph for this function:

◆ VIDEO_GetCurrentTvMode()

u32 VIDEO_GetCurrentTvMode ( )

Get current configured TV mode.

Returns
tvmode
Here is the caller graph for this function:

◆ VIDEO_GetFrameBufferSize()

u32 VIDEO_GetFrameBufferSize ( GXRModeObj rmode)
Here is the caller graph for this function:

◆ VIDEO_GetNextField()

u32 VIDEO_GetNextField ( )

Get the next field in DS mode.

Returns
field
Here is the call graph for this function:
Here is the caller graph for this function:

◆ VIDEO_GetNextFramebuffer()

void* VIDEO_GetNextFramebuffer ( )

◆ VIDEO_GetPreferredMode()

GXRModeObj* VIDEO_GetPreferredMode ( GXRModeObj mode)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ VIDEO_HaveComponentCable()

u32 VIDEO_HaveComponentCable ( void  )

Check for a component cable. This function returns 1 when a Component (YPbPr) cable is connected.

Returns
1 if a component cable is connected, 0 otherwise
Here is the caller graph for this function:

◆ VIDEO_Init()

void VIDEO_Init ( )

Initializes the VIDEO subsystem. This call should be done in the early stages of your main()

Returns
none
Here is the call graph for this function:
Here is the caller graph for this function:

◆ VIDEO_SetBlack()

void VIDEO_SetBlack ( bool  black)

Blackout the VIDEO interface.

Parameters
[in]blackBoolean flag to determine whether to blackout the VI or not.
Returns
none
Here is the call graph for this function:
Here is the caller graph for this function:

◆ VIDEO_SetNextFramebuffer()

void VIDEO_SetNextFramebuffer ( void fb)

Set the framebuffer for the next VI register update.

Returns
none
Here is the call graph for this function:
Here is the caller graph for this function:

◆ VIDEO_SetNextRightFramebuffer()

void VIDEO_SetNextRightFramebuffer ( void fb)

Set the right framebuffer for the next VI register update. This is used for 3D Gloves for instance.

Returns
none
Here is the call graph for this function:

◆ VIDEO_SetPostRetraceCallback()

VIRetraceCallback VIDEO_SetPostRetraceCallback ( VIRetraceCallback  callback)

Set the Post-Retrace callback function. This function is called within the video interrupt handler after the VI registers are updated.

Parameters
[in]callbackpointer to the callback function which is called at post-retrace.
Returns
Old post-retrace callback or NULL
Here is the call graph for this function:
Here is the caller graph for this function:

◆ VIDEO_SetPreRetraceCallback()

VIRetraceCallback VIDEO_SetPreRetraceCallback ( VIRetraceCallback  callback)

Set the Pre-Retrace callback function. This function is called within the video interrupt handler before the VI registers will be updated.

Parameters
[in]callbackpointer to the callback function which is called at pre-retrace.
Returns
Old pre-retrace callback or NULL
Here is the call graph for this function:

◆ VIDEO_WaitVSync()

void VIDEO_WaitVSync ( void  )

Wait on the next vertical retrace.

Returns
none
Here is the call graph for this function:
Here is the caller graph for this function: