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 from H264 decoder output consumes too much time

Hi,

I need to copy the Decoder output data to the buffer which is allocated in shareregion 1 using Memory_alloc(). I do as follows:

1. get the virtual addr from physical addr using OSA_mapMem()

2. use memcpy to copy data from virtual addr to shareregion buffer.

I copy 640x480 bytes each time, and it needs more than 5ms to do so. But if I copy the same number of data from the buffers both in A8 side or both in shareregion or A8->shareregion or shareregion->A8, it just needs 0.5ms or so. I could not understand why the run time varies so much. 

Could someone know that?

Thanks in advance! Appreciate for your reply!