Hi all,
Using IPNC 2.0, I have meet a problem of DRV_dmaCopy2D(). BTY, the data is YUV420.
.
I want use DRV_dmaCopy2D() to do the copy of data. just like this:
Uint8 *srcPhysAddr, *dstPhysAddr; DRV_DmaCopy2D copy2D;
srcPhysAddr = (Uint8*)DRV_dmaGetPhysAddr((unsigned long)srcVirtAddr);
dstPhysAddr = (Uint8*)DRV_dmaGetPhysAddr((unsigned long)dstVirtAddr);
if(srcPhysAddr==NULL||dstPhysAddr==NULL)
return -1;
copy2D.srcPhysAddr = (unsigned long)srcPhysAddr +(2432-1920);
copy2D.dstPhysAddr = (unsigned long)dstPhysAddr;
copy2D.copyWidth = 1920;
copy2D.copyHeight = 1080 * 3 /2;
copy2D.srcOffsetH = 2048 - 1080;
copy2D.dstOffsetH =
2048 - 1080
;
copy2D.skipH = 0;
DRV_dmaCopy2D(&dmaHndl, ©2D, 1);
Using the above code, the result is not correct. Anybody can help me?
And if I want to copy any AOI of src, how to do? Thanks a lot!