summaryrefslogtreecommitdiff
path: root/include/rvl/vifuncs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rvl/vifuncs.h')
-rwxr-xr-xinclude/rvl/vifuncs.h48
1 files changed, 48 insertions, 0 deletions
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