1 /*---------------------------------------------------------------------* 2 3 Project: definitions for BMP format 4 File: bmp.h 5 6 Copyright 1998, 1999 Nintendo. All rights reserved. 7 8 These coded instructions, statements and computer programs contain 9 proprietary information of Nintendo of America Inc. and/or Nintendo 10 Company Ltd., and are protected by Federal copyright law. They may 11 not be disclosed to third parties or copied or duplicated in any form, 12 in whole or in part, without the prior written consent of Nintendo. 13 14 Change History: 15 16 $Log: bmp.h,v $ 17 Revision 1.1 12/16/2005 08:34:14 urata 18 Initial check-in. 19 20 21 1 1/15/00 3:04a Hashida 22 Initial revision 23 24 $NoKeywords: $ 25 26 -----------------------------------------------------------------------*/ 27 28 29 30 #ifndef __BMP_H__ 31 #define __BMP_H__ 32 33 34 typedef struct 35 { 36 u32 bfOffBits; 37 u32 width; 38 u32 height; 39 u16 biBitCount; 40 u32 biCompression; 41 u32 biSizeImage; 42 43 u32 paletteOff; 44 } bmpInfo_s; 45 46 typedef struct 47 { 48 u8 blue; 49 u8 green; 50 u8 red; 51 u8 reserved; 52 } rgbQuad_s; 53 54 55 BOOL openBmp(bmpInfo_s* bi, u8* header); 56 57 #ifdef XFB_SF 58 BOOL bmpToYCbCr(bmpInfo_s* bi, u8* rawData, u8* dest1, u8* dest2); 59 #else 60 BOOL bmpToYCbCr(bmpInfo_s* bi, u8* rawData, u8* dest); 61 #endif 62 63 #endif // __TGA_H__ 64