while (!done && status == 0) {
FVID_exchange(hGioVpfeCcdc, &frameBuffPtr);
process_imagebw( (void*)(frameBuffPtr->frame.frameBufferPtr), 480, 720);
BCACHE_wbInv((void*)(frameBuffPtr->frame.frameBufferPtr), 480*720*2, 1);
FVID_exchange(hGioVpbeVid0, &frameBuffPtr);
}
void process_imagebw( void* currentFrame, int yRows, int xPixels)
{
int xx = 0;
for( xx = 0; xx < (yRows * xPixels)*2; xx++ )//just operating on the chroma
{
*( ( (unsigned char*)currentFrame ) + xx ) = 0x80;
xx++;
*( ( (unsigned char*)currentFrame ) + xx ) = 255 - *( ( (unsigned char*)currentFrame ) + xx ) ;
}
} // End process_imagebw()
-------------------------------------------------------------------------------------------------------------
It would be very interesting to know how this examle will load 6446, 6467.