This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Copy data with dat_copy2d

Hello,

i'm using the DM642 EVM and i try to copy image data from a memory maintained by the vport mini-driver to another location with the dat_copy2d function:

transIDS1 = DAT_copy2d(DAT_1D2D, (void *) &YPtr[0],  (void *) &YSlice1_opt_v2[1450], 720, 3, 724);

YPtr is an 576x720 array of 8 bit element and YSlice1_opt_v2 is an 7x724 array of 8 bit elements. The objective is to copy three lines from the center of YPtr to YSlice1_opt_v2.

If first 3 lines YPtr looks like this:

1   2   3   .   .   .   3   2   1

1   2   3   .   .   .   3   2   1

1   2   3   .   .   .   3   2   1

YSlice1_opt_v2 shall looks like this:

0   0   0   0   0   .   .   .   0   0   0   0   0

0   0   0   0   0   .   .   .   0   0   0   0   0

0   0   1   2   3   .   .   .   3   2   1  0   0

0   0   1   2   3   .   .   .   3   2   1  0   0

0   0   1   2   3   .   .   .   3   2   1   0   0

0   0   0   0   0   .   .   .   0   0   0   0   0

0   0   0   0   0   .   .   .   0   0   0   0   0

 

Can this be achive with dat_copy2d and is there a better explanation than in spru401j? The way i understand the functionality of dat_copy2d seems to be wrong.

 

Thanks for help!

 

Martin