1 /*------------------------------------------------------------- 2 3 gx_struct.h -- support header 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 #ifndef __GX_STRUCT_H__ 31 #define __GX_STRUCT_H__ 32 33 /*! 34 \file gx_struct.h 35 \brief support header 36 */ 37 38 #include <gctypes.h> 39 40 #ifdef __cplusplus 41 extern "C" { 42 #endif /* __cplusplus */ 43 44 /*! 45 \typedef struct _gx_rmodeobj GXRModeObj 46 \brief structure to hold the selected video and render settings 47 \param viTVMode mode and type of TV 48 \param fbWidth width of external framebuffer 49 \param efbHeight height of embedded framebuffer 50 \param xfbHeight height of external framebuffer 51 \param viXOrigin x starting point of first pixel to draw on VI 52 \param viYOrigin y starting point of first pixel to draw on VI 53 \param viWidth width of configured VI 54 \param viHeight height of configured VI 55 */ 56 typedef struct _gx_rmodeobj { 57 u32 viTVMode; 58 u16 fbWidth; 59 u16 efbHeight; 60 u16 xfbHeight; 61 u16 viXOrigin; 62 u16 viYOrigin; 63 u16 viWidth; 64 u16 viHeight; 65 u32 xfbMode; 66 u8 field_rendering; 67 u8 aa; 68 u8 sample_pattern[12][2]; 69 u8 vfilter[7]; 70 } GXRModeObj; 71 72 #ifdef __cplusplus 73 } 74 #endif /* __cplusplus */ 75 76 #endif 77