VIDEO subsystem.
More...
#include <gctypes.h>
#include "gx_struct.h"
#include "video_types.h"
Go to the source code of this file.
◆ VIPositionCallback
typedef void(* VIPositionCallback) (u32 posX, u32 posY) |
◆ VIRetraceCallback
void(* VIRetraceCallback)(u32 retraceCnt) |
function pointer typedef for the user's retrace callback
- Parameters
-
[in] | retraceCnt | current retrace count |
◆ VIDEO_ClearFrameBuffer()
Clear the given framebuffer.
- Parameters
-
[in] | rmode | pointer to a GXRModeObj, specifying the mode. |
[in] | fb | pointer to the startaddress of the framebuffer to clear. |
[in] | color | YUYUV value to use for clearing. |
- Returns
- none
◆ VIDEO_Configure()
Configure the VI with the given render mode object.
- Parameters
-
- Returns
- none
◆ VIDEO_Flush()
Flush the shadow registers to the drivers video registers.
- Returns
- none
◆ VIDEO_GetCurrentFramebuffer()
void* VIDEO_GetCurrentFramebuffer |
( |
| ) |
|
◆ VIDEO_GetCurrentLine()
u32 VIDEO_GetCurrentLine |
( |
| ) |
|
Get current video line.
- Returns
- linenumber
◆ VIDEO_GetCurrentTvMode()
u32 VIDEO_GetCurrentTvMode |
( |
| ) |
|
Get current configured TV mode.
- Returns
- tvmode
◆ VIDEO_GetFrameBufferSize()
◆ VIDEO_GetNextField()
u32 VIDEO_GetNextField |
( |
| ) |
|
Get the next field in DS mode.
- Returns
- field
◆ VIDEO_GetNextFramebuffer()
void* VIDEO_GetNextFramebuffer |
( |
| ) |
|
◆ VIDEO_GetPreferredMode()
◆ 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
◆ VIDEO_Init()
Initializes the VIDEO subsystem. This call should be done in the early stages of your main()
- Returns
- none
◆ VIDEO_SetBlack()
Blackout the VIDEO interface.
- Parameters
-
[in] | black | Boolean flag to determine whether to blackout the VI or not. |
- Returns
- none
◆ VIDEO_SetNextFramebuffer()
void VIDEO_SetNextFramebuffer |
( |
void * |
fb | ) |
|
Set the framebuffer for the next VI register update.
- Returns
- none
◆ 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
◆ VIDEO_SetPostRetraceCallback()
Set the Post-Retrace callback function. This function is called within the video interrupt handler after the VI registers are updated.
- Parameters
-
[in] | callback | pointer to the callback function which is called at post-retrace. |
- Returns
- Old post-retrace callback or NULL
◆ VIDEO_SetPreRetraceCallback()
Set the Pre-Retrace callback function. This function is called within the video interrupt handler before the VI registers will be updated.
- Parameters
-
[in] | callback | pointer to the callback function which is called at pre-retrace. |
- Returns
- Old pre-retrace callback or NULL
◆ VIDEO_WaitVSync()
Wait on the next vertical retrace.
- Returns
- none