新手求助关于DM642做反色实验图像有亮线
while(1){/* loop for 4 seconds */
capFrameBuf= (FVID_Frame *)SCOM_getMsg(fromInput1toDIS, SYS_FOREVER);
/* copy data from capture buffer to display buffer */
/***************************************************/
for(i = 0; i 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);
}
//自己加的代码开始
for(i=200;i frame.iFrm.y1)+i*numPixels+j)=0xFF-
*(Uint8*)((Uint32)(disFrameBuf->frame.iFrm.y1)+i*numPixels+j);
}
for(j=100;j frame.iFrm.cb1)+i*(numPixels>>1)+j)=0x80;
*(Uint8*)((Uint32)(disFrameBuf->frame.iFrm.cr1)+i*(numPixels>>1)+j)=0x80;
}
}
//自己加的代码结束
/*-----------------------------------------------------------*/
/*Display the decoded frame. */
/*-----------------------------------------------------------*/
DAT_wait(DAT_XFRID_WAITALL);
CACHE_clean(CACHE_L2ALL,NULL,NULL);
FVID_exchange(disChan, &disFrameBuf);
这个属于算法,而且是你下的代码,我建议,你好好把代码和你的算法,对一下。
理解一下。