the DdrBuffersPrepare function problems

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

the DdrBuffersPrepare function problems

381 Views
caihuanming
Contributor I

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)

0 Kudos
0 Replies