From 7d4e4c0b34a613dd3c0220475ae4e448197522c1 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 12 Mar 2011 23:17:12 +0100 Subject: initial commit. now I can start playing with stuff! --- include/rvl/vifuncs.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 include/rvl/vifuncs.h (limited to 'include/rvl/vifuncs.h') diff --git a/include/rvl/vifuncs.h b/include/rvl/vifuncs.h new file mode 100755 index 0000000..fab95b4 --- /dev/null +++ b/include/rvl/vifuncs.h @@ -0,0 +1,48 @@ +#ifndef __VIFUNCS_H +#define __VIFUNCS_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include "rvl/vitypes.h" +#include "rvl/GXStruct.h" // for GXRenderModeObj structure + + +#define VIPadFrameBufferWidth(width) ((u16)(((u16)(width) + 15) & ~15)) + +void VIInit ( void ); +void VIFlush ( void ); +void VIWaitForRetrace ( void ); + +void VIConfigure ( const GXRenderModeObj* rm ); +void VIConfigurePan ( u16 PanPosX, u16 PanPosY, + u16 PanSizeX, u16 PanSizeY ); +void VISetNextFrameBuffer ( void *fb ); + +void *VIGetNextFrameBuffer ( void ); +void *VIGetCurrentFrameBuffer( void ); + +VIRetraceCallback VISetPreRetraceCallback (VIRetraceCallback callback); +VIRetraceCallback VISetPostRetraceCallback (VIRetraceCallback callback); + +void VISetBlack ( bool black ); +u32 VIGetRetraceCount ( void ); +u32 VIGetNextField ( void ); +u32 VIGetCurrentLine ( void ); +u32 VIGetTvFormat ( void ); +u32 VIGetScanMode ( void ); + +u32 VIGetDTVStatus ( void ); + +// For test of switch to Progressive from Interlace +void VISetVSyncTimingTest ( void ); +u32 VIGetVSyncTimingTest ( void ); + + +/********************************/ +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3