00001 #ifndef GEBMUTIL_H
00002 #define GEBMUTIL_H
00003
00004 #include "genesis.h"
00005
00006 #ifndef _INC_WINDOWS
00007 #ifdef STRICT
00008 typedef struct HWND__ * HWND;
00009 typedef struct HBITMAP__ * HBITMAP;
00010 #else // STRICT
00011 typedef void * HWND;
00012 typedef void * HBITMAP;
00013 #endif // STRICT
00014 #endif // _INC_WINDOWS
00015
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019
00022
00023
00024 HBITMAP geBitmapUtil_CreateHBITMAP(geBitmap *Bitmap,HWND window,int mip);
00025
00026
00027 geBitmap * geBitmapUtil_CreateFromHBITMAP(HWND window,HBITMAP hbm);
00028
00029
00030
00031 geBoolean geBitmapUtil_SetColor(geBitmap *Bmp,int R,int G,int B,int A);
00032
00033
00034
00035 geBoolean geBitmapUtil_SmoothBits(geBitmap_Info *pInfo,void *FmBits,void *ToBits,int radius, geBoolean wrap);
00036
00037
00038
00039
00040
00041 geBoolean geBitmapUtil_SetAlphaFromBrightness(geBitmap *Bmp);
00042
00043
00044
00045 geBitmap * geBitmapUtil_CreateFromFileName(const geVFile * BaseFS,const char * BmName);
00046 geBitmap * geBitmapUtil_CreateFromFileAndAlphaNames(const geVFile * BaseFS,const char * BmName,
00047 const char *AlphaName);
00048
00049 geBoolean geBitmapUtil_SetPaletteFromString(geBitmap * Bitmap,char ** pParams);
00050
00051
00052 geBoolean geBitmapUtil_CompareBitmaps(geBitmap *bm1,geBitmap *bm2,char * IntoStr,double * pMSE);
00053
00054
00055 double geBitmapUtil_MSE2PSNR(double mse);
00056 double geBitmapUtil_PSNR2MSE(double psnr);
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066 #ifdef __cplusplus
00067 }
00068 #endif
00069
00070
00071 #endif
00072
00073