video_low.h File Reference

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.

Detailed Description

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.

Todo:

Fix WaitVSync to actually do things properly.

Change function names to not be so libogc-esque.


Enumeration Type Documentation

enum vmode_t

An enumeration for the video modes supported

Enumerator:
VIDEO_640X480_NTSCi_YUV16 

Interlaced: YES, Video Type: NTSC, Refresh Rate: 60Hz, Size: 640x480

VIDEO_640X528_PAL50_YUV16 

Interlaced: YES, Video Type: PAL, Refresh Rate: 50Hz, Size: 640x528

VIDEO_640X480_PAL60_YUV16 

Interlaced: YES, Video Type: PAL, Refresh Rate: 60Hz, Size: 640x480

VIDEO_640X480_NTSCp_YUV16 

Interlaced: NO, Video Type: NTSC, Refresh Rate: 60Hz, Size: 640x480


Function Documentation

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.

Parameters:
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.
Returns:
The YUV value.
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.

Parameters:
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).

Parameters:
fb the framebuffer to use.
void VIDEO_Shutdown ( void   ) 

Shuts down the video system.

This is only reversable by calling VIDEO_Init again.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated by  doxygen 1.6.3