DMA
m_nID=DAT_copy2d(DAT_2D2D,
m_dbFrameBufferTemp+100*SIMGWIDTH+100,
sobelsectction,
100,
100,
numPixels);
说的是把数据块从m_dbFrameBufferTemp转移到sobelsectction中,以前以为是sobelsectction为100*100.
今天从实验结果来看,那种认识是错误的。具体如下:
2D Transfer
If a 2D to 2D transfer is specified, both the source and destination have the same lineLen, lineCnt, and linePitch.The return value is a transfer identifier that may be used later on to wait for completion.
说的是要是使用2D到2D的传送,那么两个缓冲区的长度,宽度,和偏移量(一行的总长度)都必须一样。