00001 /* 00002 libbroadway - A general purpose library to control the Wii. 00003 Low-level video support 00004 00005 Copyright (C) 2008, 2009 Hector Martin "marcan" <marcan@marcansoft.com> 00006 Copyright (C) 2009 Haxx Enterprises <bushing@gmail.com> 00007 Copyright (C) 2009 Sven Peter <svenpeter@gmail.com> 00008 Copyright (C) 2010 Alex Marshall <trap15@raidenii.net> 00009 00010 # This code is licensed to you under the terms of the GNU GPL, version 2; 00011 # see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt 00012 00013 Some routines and initialization constants originally came from the 00014 "GAMECUBE LOW LEVEL INFO" document and sourcecode released by Titanik 00015 of Crazy Nation and the GC Linux project. 00016 */ 00017 00025 #ifndef __VIDEO_LOW_H__ 00026 #define __VIDEO_LOW_H__ 00027 00030 typedef enum { 00031 VIDEO_640X480_NTSCi_YUV16 = 0, 00032 VIDEO_640X528_PAL50_YUV16, 00033 VIDEO_640X480_PAL60_YUV16, 00034 VIDEO_640X480_NTSCp_YUV16, 00035 } vmode_t; 00036 00041 void VIDEO_Init(vmode_t vmode); 00048 void VIDEO_SetFrameBuffer(void *fb); 00051 void VIDEO_WaitVSync(void); 00056 void VIDEO_BlackOut(void); 00061 void VIDEO_Shutdown(void); 00064 void VISetupEncoder(void); 00076 u32 make_yuv(u8 r1, u8 g1, u8 b1, u8 r2, u8 g2, u8 b2); 00077 00078 #endif 00079
1.6.3