ICETEK-VC5416-EDULab瑞泰创新科技5416开发板的实验源程序
源代码在线查看: reverse.c
/////////////////////////////////////////////////
// Example For ICETEK-VC5416-EDU //
// CTR Version : V4 //
// Filename: Reverse.c //
// Project : Reverse.pjt //
// Version : 2.00 //
// Write by: Daniel Hawk //
// Company : Realtimedsp Co.Ltd. //
// //
// All Rights opened & no Onus 2005.06 //
/////////////////////////////////////////////////
#define IMAGEWIDTH 80
#define IMAGEHEIGHT 80
extern unsigned char dbImage[IMAGEWIDTH*IMAGEHEIGHT];
extern unsigned char dbTargetImage[IMAGEWIDTH*IMAGEHEIGHT];
int mi,mj;
unsigned int m_nWork;
unsigned char *pImg,*pImg1;
void Reverse(int nWidth,int nHeight)
{
pImg=dbImage; pImg1=dbTargetImage;
for ( mj=0;mj for ( mi=0;mi (*pImg1)=(~(*pImg))&0x0ff;
}