I'm using PocketFrog on my e800 together with the FlyGrabber video capture CF card. The video capture is pretty expensive timewise, but by itself can get up to 30 fps; I'm looking for some way to boost my frame rate which right now is somewhere around 5 fps (after blitting a couple images onto the captured video frame for display).
The capture card fills in an unsigned char array of dimensions 320x240x3 with 24 bit BGR (I'm not sure why they swap the R and B) data. I'm then moving those data pixel by pixel onto the LockInfo.Pixels of the BackBuffer:
I've searched around the forum for a better (faster) way. Some have suggested trying lower level functionality of PocketHAL, but I can't seem to figure out how to do that.
Thanks,
Joseph
The capture card fills in an unsigned char array of dimensions 320x240x3 with 24 bit BGR (I'm not sure why they swap the R and B) data. I'm then moving those data pixel by pixel onto the LockInfo.Pixels of the BackBuffer:
- Code:
PreviewFrame(vidBuffer); //FlyGrabber capture command.
unsigned char *bufPtr=vidBuffer;
for (int jj=0;jj<height;++jj) {
for (int ii=0;ii<width;++ii) {
backBuffer[jj * pitch + ii] = Color(bufPtr[2],bufPtr[1],bufPtr[0]);
bufPtr+=3;
}
}
I've searched around the forum for a better (faster) way. Some have suggested trying lower level functionality of PocketHAL, but I can't seem to figure out how to do that.
Thanks,
Joseph