Go to the source code of this file.
Enumerations | |
| enum | vmode_t { VIDEO_640X480_NTSCi_YUV16 = 0, VIDEO_640X528_PAL50_YUV16, VIDEO_640X480_PAL60_YUV16, VIDEO_640X480_NTSCp_YUV16 } |
Functions | |
| void | VIDEO_Init (vmode_t vmode) |
| Sets up the video system. | |
| void | VIDEO_SetFrameBuffer (void *fb) |
| Sets the used External Framebuffer. | |
| void | VIDEO_WaitVSync (void) |
| Waits for a VSync. | |
| void | VIDEO_BlackOut (void) |
| Blacks out the screen. | |
| void | VIDEO_Shutdown (void) |
| Shuts down the video system. | |
| void | VISetupEncoder (void) |
| Sets up the Video Encoder. | |
| u32 | make_yuv (u8 r1, u8 g1, u8 b1, u8 r2, u8 g2, u8 b2) |
| Converts two RGB values into a YUV value. | |
A collection of low-level video functions allowing direct access to the XFB (eXternal FrameBuffer) and to set up the rest of the video for output.
Fix WaitVSync to actually do things properly.
Change function names to not be so libogc-esque.
| enum vmode_t |
An enumeration for the video modes supported
| u32 make_yuv | ( | u8 | r1, | |
| u8 | g1, | |||
| u8 | b1, | |||
| u8 | r2, | |||
| u8 | g2, | |||
| u8 | b2 | |||
| ) |
Converts two RGB values into a YUV value.
The value is suitable for direct writing to the framebuffer.
| r1 | Red value of the left pixel. | |
| g1 | Green value of the left pixel. | |
| b1 | Blue value of the left pixel. | |
| r2 | Red value of the right pixel. | |
| g2 | Green value of the right pixel. | |
| b2 | Blue value of the right pixel. |
| void VIDEO_BlackOut | ( | void | ) |
Blacks out the screen.
This is only reversable by calling VIDEO_Init again.
| void VIDEO_Init | ( | vmode_t | vmode | ) |
Sets up the video system.
| vmode | the video mode being used. |
| void VIDEO_SetFrameBuffer | ( | void * | fb | ) |
Sets the used External Framebuffer.
Sets the video system to use the specified framebuffer as the External Framebuffer (XFB).
| fb | the framebuffer to use. |
| void VIDEO_Shutdown | ( | void | ) |
Shuts down the video system.
This is only reversable by calling VIDEO_Init again.
1.6.3