memalloc.h

来自「关于时下流行的粒子滤波程序的源码」· C头文件 代码 · 共 40 行

H
40
字号

/*******************************************************************************\

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



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?