www.pudn.com > Particlefilter_code.zip > MemAlloc.h


 
/*******************************************************************************\ 
 
Description: 
 
	Implementation file of Memory allocation routiness  
 
history: 
 
\*******************************************************************************/ 
 
 
#ifndef _MEMALLOC_H 
#define _MEMALLOC_H 
 
#ifndef BYTE 
typedef unsigned char BYTE; 
#endif 
 
bool	AllocMem(unsigned char** &pLoc , long lWidth , long lHeight ); 
unsigned char**	FreeMem(unsigned char **pMem); 
 
bool AllocMem( long** &pLoc , long lWidth , long lHeight ); 
long**	FreeMem(long **pMem); 
 
bool AllocMem( float** &pLoc , long lWidth , long lHeight ); 
float**	FreeMem(float **pMem); 
 
bool AllocMem( double** &pLoc , long lWidth , long lHeight ); 
double**	FreeMem(double **pMem); 
 
bool AllocMem( float*** &pLoc , long lLayer, long lWidth , long lHeight ); 
float *** FreeMem(float ***pMem, long lLayer); 
 
 
#endif