hi there , please help.
thanks.
CFbsBitmap &image
tmpBuffer = (unsigned char *)image.DataAddress();
unsigned int temp;
unsigned char *iter = tmpBuffer;
unsigned char *iterG = pImG;
for (int i=0;i<width*height;i++)
{
// get green channel as greyscale for tracking. This actually eats up 1fps for 256x192
*iterG = *(iter+1);
iterG++;
// BGRx to RGB(A=255)
temp = *iter;
*iter = *(iter+2);
*(iter+2) = temp;
*(iter+3) = 255;
iter = iter+4;
}
for (int i=0;i<CAP_IMG_HEIGHT;i++)
{
Mem::Copy( pBufInternal+4*BG_TEXTURE_WIDTH*i, aimgBuf+4*CAP_IMG_WIDTH*i, CAP_IMG_WIDTH*4 );
}




