www.pudn.com > H323BeaconClient-v1.4_win_src.zip > ximadefs.h, change:2003-10-09,size:2927b


#if !defined(__ximadefs_h) 
#define __ximadefs_h 
 
#ifdef _AFXDLL 
 #define DLL_EXP __declspec(dllexport) 
#else 
 #define DLL_EXP 
#endif 
 
#if CXIMAGE_SUPPORT_DSP 
#undef CXIMAGE_SUPPORT_TRANSFORMATION 
 #define CXIMAGE_SUPPORT_TRANSFORMATION 1 
#endif 
 
#if CXIMAGE_SUPPORT_TRANSFORMATION || CXIMAGE_SUPPORT_TIF || CXIMAGE_SUPPORT_TGA || CXIMAGE_SUPPORT_BMP 
 #define CXIMAGE_SUPPORT_BASICTRANSFORMATIONS 1 
#endif 
 
#if CXIMAGE_SUPPORT_WINCE 
 #undef CXIMAGE_SUPPORT_WMF 
 #define CXIMAGE_SUPPORT_WMF 0 
 #undef	CXIMAGE_SUPPORT_WINDOWS 
 #define	CXIMAGE_SUPPORT_WINDOWS 0 
#endif 
 
#ifndef WIN32 
 #undef CXIMAGE_SUPPORT_WINDOWS 
 #define CXIMAGE_SUPPORT_WINDOWS 0 
#endif 
 
#ifndef min 
#define min(a,b) (((a)<(b))?(a):(b)) 
#endif 
#ifndef max 
#define max(a,b) (((a)>(b))?(a):(b)) 
#endif 
 
 
#ifdef WIN32 
#include <windows.h> 
//#include <tchar.h> 
#endif 
 
#include <stdio.h> 
#include <math.h> 
 
 
#ifdef __BORLANDC__ 
#define	_complex complex 
#define _cabs cabs 
#endif 
 
 
#ifndef WIN32 
 
#include <stdlib.h> 
#include <string.h> 
 
typedef unsigned char  BYTE; 
typedef unsigned short WORD; 
typedef unsigned long  DWORD; 
typedef long           LONG; 
typedef unsigned int   UINT; 
typedef unsigned short USHORT; 
 
typedef DWORD          COLORREF; 
typedef unsigned int   HANDLE; 
 
#define	BOOL bool 
#define	TRUE true 
#define	FALSE false 
 
typedef struct tagRECT 
{ 
	LONG    left; 
	LONG    top; 
	LONG    right; 
	LONG    bottom; 
} RECT; 
 
typedef struct tagPOINT 
{ 
	LONG  x; 
	LONG  y; 
} POINT; 
 
typedef struct tagRGBQUAD { 
	BYTE    rgbBlue; 
	BYTE    rgbGreen; 
	BYTE    rgbRed; 
	BYTE    rgbReserved; 
} RGBQUAD; 
 
typedef struct tagBITMAPINFOHEADER{ 
	DWORD      biSize; 
	LONG       biWidth; 
	LONG       biHeight; 
	WORD       biPlanes; 
	WORD       biBitCount; 
	DWORD      biCompression; 
	DWORD      biSizeImage; 
	LONG       biXPelsPerMeter; 
	LONG       biYPelsPerMeter; 
	DWORD      biClrUsed; 
	DWORD      biClrImportant; 
} BITMAPINFOHEADER; 
 
typedef struct tagBITMAPFILEHEADER { 
	WORD    bfType; 
	DWORD   bfSize; 
	WORD    bfReserved1; 
	WORD    bfReserved2; 
	DWORD   bfOffBits; 
} BITMAPFILEHEADER; 
 
typedef struct tagBITMAPCOREHEADER { 
	DWORD   bcSize; 
	WORD    bcWidth; 
	WORD    bcHeight; 
	WORD    bcPlanes; 
	WORD    bcBitCount; 
} BITMAPCOREHEADER; 
 
typedef struct tagRGBTRIPLE { 
	BYTE    rgbtBlue; 
	BYTE    rgbtGreen; 
	BYTE    rgbtRed; 
} RGBTRIPLE; 
 
#define BI_RGB        0L 
#define BI_RLE8       1L 
#define BI_RLE4       2L 
#define BI_BITFIELDS  3L 
 
#define GetRValue(rgb)      ((BYTE)(rgb)) 
#define GetGValue(rgb)      ((BYTE)(((WORD)(rgb)) >> 8)) 
#define GetBValue(rgb)      ((BYTE)((rgb)>>16)) 
#define RGB(r,g,b)          ((COLORREF)(((BYTE)(r)|((WORD)((BYTE)(g))<<8))|(((DWORD)(BYTE)(b))<<16))) 
 
typedef struct tagcomplex { 
	double x,y; 
} _complex; 
 
#define _cabs(c) sqrt(c.x*c.x+c.y*c.y) 
 
#endif 
 
 
#endif //__ximadefs