RetroArch
video.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------
2 
3 video.h -- VIDEO subsystem
4 
5 Copyright (C) 2004
6 Michael Wiedenbauer (shagkur)
7 Dave Murphy (WinterMute)
8 
9 This software is provided 'as-is', without any express or implied
10 warranty. In no event will the authors be held liable for any
11 damages arising from the use of this software.
12 
13 Permission is granted to anyone to use this software for any
14 purpose, including commercial applications, and to alter it and
15 redistribute it freely, subject to the following restrictions:
16 
17 1. The origin of this software must not be misrepresented; you
18 must not claim that you wrote the original software. If you use
19 this software in a product, an acknowledgment in the product
20 documentation would be appreciated but is not required.
21 
22 2. Altered source versions must be plainly marked as such, and
23 must not be misrepresented as being the original software.
24 
25 3. This notice may not be removed or altered from any source
26 distribution.
27 
28 -------------------------------------------------------------*/
29 
30 
31 #ifndef __VIDEO_H__
32 #define __VIDEO_H__
33 
40 #include <gctypes.h>
41 #include "gx_struct.h"
42 #include "video_types.h"
43 
44 #ifdef __cplusplus
45  extern "C" {
46 #endif /* __cplusplus */
47 
48 
54 typedef void (*VIRetraceCallback)(u32 retraceCnt);
55 
56 typedef void (*VIPositionCallback)(u32 posX,u32 posY);
57 
60 
61 
68 void VIDEO_Init();
69 
70 
77 void VIDEO_Flush();
78 
79 
88 void VIDEO_SetBlack(bool black);
89 
90 
98 
99 
107 
108 
116 
117 
126 void VIDEO_Configure(GXRModeObj *rmode);
127 
129 
140 void VIDEO_ClearFrameBuffer(GXRModeObj *rmode,void *fb,u32 color);
141 
142 
149 void VIDEO_WaitVSync(void);
150 
151 
158 void VIDEO_SetNextFramebuffer(void *fb);
159 
160 
167 void VIDEO_SetNextRightFramebuffer(void *fb);
168 
169 
179 
180 
190 
191 
199 
201 
202 #ifdef __cplusplus
203  }
204 #endif /* __cplusplus */
205 
206 #endif
GLenum mode
Definition: glext.h:6857
VIRetraceCallback VIDEO_SetPreRetraceCallback(VIRetraceCallback callback)
Set the Pre-Retrace callback function. This function is called within the video interrupt handler bef...
Definition: video.c:2554
void VIDEO_Configure(GXRModeObj *rmode)
Configure the VI with the given render mode object.
Definition: video.c:2270
void VIDEO_SetBlack(bool black)
Blackout the VIDEO interface.
Definition: video.c:2412
Data type definitions.
u32 VIDEO_GetCurrentTvMode()
Get current configured TV mode.
Definition: video.c:2435
Definition: gx_struct.h:58
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
u32 VIDEO_GetCurrentLine()
Get current video line.
Definition: video.c:2540
void callback(s32 result, dvdcmdblk *block)
Definition: dvd.c:2293
void * VIDEO_GetNextFramebuffer()
Definition: video.c:2176
support header
void VIDEO_WaitVSync(void)
Wait on the next vertical retrace.
Definition: video.c:2332
void VIDEO_ClearFrameBuffer(GXRModeObj *rmode, void *fb, u32 color)
Clear the given framebuffer.
Definition: video.c:2586
support header
void(* VIPositionCallback)(u32 posX, u32 posY)
Definition: video.h:56
VIRetraceCallback VIDEO_SetPostRetraceCallback(VIRetraceCallback callback)
Set the Post-Retrace callback function. This function is called within the video interrupt handler af...
Definition: video.c:2564
void(* VIRetraceCallback)(u32 retraceCnt)
function pointer typedef for the user's retrace callback
Definition: video.h:54
GXRModeObj * VIDEO_GetPreferredMode(GXRModeObj *mode)
Definition: video.c:2454
u32 VIDEO_GetFrameBufferSize(GXRModeObj *rmode)
Definition: video.c:2574
void VIDEO_SetNextFramebuffer(void *fb)
Set the framebuffer for the next VI register update.
Definition: video.c:2369
void VIDEO_Flush()
Flush the shadow registers to the drivers video registers.
Definition: video.c:2390
void * VIDEO_GetCurrentFramebuffer()
Definition: video.c:2181
GLuint color
Definition: glext.h:6883
u32 VIDEO_HaveComponentCable(void)
Check for a component cable. This function returns 1 when a Component (YPbPr) cable is connected.
Definition: video.c:2591
void VIDEO_Init()
Initializes the VIDEO subsystem. This call should be done in the early stages of your main()
Definition: video.c:2186
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
void VIDEO_SetNextRightFramebuffer(void *fb)
Set the right framebuffer for the next VI register update. This is used for 3D Gloves for instance.
Definition: video.c:2379
u32 VIDEO_GetNextField()
Get the next field in DS mode.
Definition: video.c:2424