AnsweredAssumed Answered

the DdrBuffersPrepare function problems

Question asked by Taikoto Cai on May 7, 2019

Hi Dear,

      I find a problem in the DdrBuffersPrepare function in main.cpp, and the isp_ov10640_quad (demos) uses the original way, is same to the WAY 1. and I change it with the WAY 2, BUT the pictures have some lines. SO I don't know the difference between the two ways, and why the WAY 2  appears the regular lines. 

   Please refer to the attached file.

 

WAY1:
SDI_ImageDescriptor lQuadFrmDesc;
SDI_DdrBufferArr lQuadBuffArr;
SDI_DdrBufferArr lQuadBuffArrRoi;

lQuadFrmDesc = SDI_ImageDescriptor
lQuadBuffArr.Allocate(lQuadFrmDesc, DDR_OUT_BUFFER_CNT)
lQuadBuffArrRoi = lQuadBuffArr.Roi

lQuadBuffArrRoi.ChannelIdxSet(FDMA_IX_ISP_OUTPUT0);
arContext.mpFdma->DdrBuffersSet(lQuadBuffArrRoi)

 

WAY2:
SDI_ImageDescriptor lFrmDesc;
sdi_FdmaIO* lpFdma = arContext.mpFdma;

lFrmDesc = SDI_ImageDescriptor
lpFdma->DdrBufferDescSet(FDMA_IX_ISP_OUTPUT0, lFrmDesc)
arContext.mpFdma->DdrBuffersAlloc(DDR_BUFFER_CNT)

Attachments

Outcomes