我想在view->graph->image菜单中显示loopplayback图像采集和回放的程序的图像结果,不知能否可行?
里面需要写入rgb或yuv缓冲区的地址.请问如何实现?
while(1){/* loop forever */
Int i;
/* copy data from capture buffer to display buffer */
/***************************************************/
for(i = 0; i < numLines; i ++) {
DAT_copy(capFrameBuf->frame.iFrm.y1 + i * capLinePitch,
disFrameBuf->frame.iFrm.y1 + i * disLinePitch,
numPixels);
DAT_copy(capFrameBuf->frame.iFrm.cb1 + i * (capLinePitch >> 1),
disFrameBuf->frame.iFrm.cb1 + i * (disLinePitch >> 1),
numPixels>>1);
DAT_copy(capFrameBuf->frame.iFrm.cr1 + i * (capLinePitch >> 1),
disFrameBuf->frame.iFrm.cr1 + i * (disLinePitch >> 1),
numPixels>>1);
}
DAT_wait(DAT_XFRID_WAITALL);
FVID_exchange(capChan, &capFrameBuf);
FVID_exchange(disChan, &disFrameBuf);
}
Y:capFrameBuf->frame.iFrm.y1
Cb:capFrameBuf->frame.iFrm.cb1
Cr:capFrameBuf->frame.iFrm.cb1
我把上面3个地址输到 startaddress下面的yuv address中,却被提示 标识符末定义,
我又把capFrameBuf->frame.iFrm.y1输到watch window中, 但是也被提示标识符未定义,这是怎么回事啊?
for(i = 0; i < numLines; i ++) {
DAT_copy(capFrameBuf->frame.iFrm.y1 + i * capLinePitch,
disFrameBuf->frame.iFrm.y1 + i * disLinePitch,
numPixels);
DAT_copy(capFrameBuf->frame.iFrm.cb1 + i * (capLinePitch >> 1),
disFrameBuf->frame.iFrm.cb1 + i * (disLinePitch >> 1),
numPixels>>1);
DAT_copy(capFrameBuf->frame.iFrm.cr1 + i * (capLinePitch >> 1),
disFrameBuf->frame.iFrm.cr1 + i * (disLinePitch >> 1),
numPixels>>1);
}
我把上面3个地址capFrameBuf->frame.iFrm.y1 ,capFrameBuf->frame.iFrm.cb1 ,capFrameBuf->frame.iFrm.cr1 输到 startaddress下面的yuv address中,却被提示 标识符末定义,
我又把capFrameBuf->frame.iFrm.y1输到watch window中, 但是也被提示标识符未定义,这是怎么回事啊?但是头文件中已经有过定义了啊?
|