Hi,all
I am using the evmDM642 to do the image processing with the PAL camera captuing the vidio display on a 800*640 VGA monitor. I enconter some questions when I invoke the functions in imglib.I list it in the below.
1. yc2rgb16(coeffs, capFrameBuf->frame.iFrm.y1 + i * (capLinePitch),capFrameBuf->frame.iFrm.cb1 + (capLinePitch >> 1) * i, capFrameBuf->frame.iFrm.cr1 + (capLinePitch >> 1) * i, disFrameBuf->frame.rpFrm.buf + (disLinePitch << 1) * i, numPixels);
This function provied by TI is to transfer the YCbcr format of vidio to RGB565 format of vidio to display on the VGA monitor, it works normal,but when I use the IMG_ycbcr422p_rgb565(coeffs, capFrameBuf->frame.iFrm.y1 + i * (capLinePitch),capFrameBuf->frame.iFrm.cb1 + (capLinePitch >> 1) * i, capFrameBuf->frame.iFrm.cr1 + (capLinePitch >> 1) * i, (short *)disFrameBuf->frame.rpFrm.buf + (disLinePitch << 1) * i, numPixels); it is the function of imglib ,it display only one picture on the monitor, And it can't display vidio,just one picture. the rest of the code is: FVID_exchange(capChan, &capFrameBuf); FVID_exchange(disChan, &disFrameBuf; Why it can't display the vidio?
2.I try to do the filter of the vidio,use the function of imglib ,the code list below:
for(i = 0; i < numLines; i++) {
m_nID=DAT_copy(capFrameBuf->frame.iFrm.y1+i*capLinePitch,nMemTemp,numPixels);
DAT_wait(m_nID);
IMG_median_3x3(nMemTemp,720,nMemTemp_out);
DAT_copy(nMemTemp_out,capFrameBuf->frame.iFrm.y1+i*capLinePitch,numPixels);
yc2rgb16(coeffs, capFrameBuf->frame.iFrm.y1 + i * (capLinePitch),
yc2rgb16(coeffs, capFrameBuf->frame.iFrm.y1 + i * (capLinePitch),
capFrameBuf->frame.iFrm.cb1 + (capLinePitch >> 1) * i,
capFrameBuf->frame.iFrm.cr1 + (capLinePitch >> 1) * i,
disFrameBuf->frame.rpFrm.buf + (disLinePitch << 1) * i,
numPixels);
The vidio is display on the monitor ,but there have so much white column bar display on the monitor,there have some wrong using of the imglib,or there
have some wrong with the code?
Thank you very much!