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.

DM365 EDMA copy for camera data

Hi all,

I have interfaced USb camera with DM365. The camera output is in MJPEG encoded format. I need to copy data from camera output buffer into Mjpeg decoder input buffer.

Its happening properly with memcpy(). But this is taking lot of CPU time.. (almost 7%-8% of total used by application). 

Can I use DMA copy in this case?

I referred to 'dmai_2_20_00_15/packages/ti/sdo/dmai/linux/dm365/Framecopy_accel.c'  file and configured the parameters. But no success.

Can anyone please tell me how the DMA copy exactly works? and can it be used to this kind of data copy?

Thanks a lot.

Regards,

Avneet

  • Avneet,

    no success means you must be getting some error.

    it should work fine, its meant for buffer to buffer copy. make sure both the buffers are configured with same colorspace.

    create->config->execute->delete sequence work.

    also you can check wether by any chance the handle not passed properly from user app to kernel.

     

     

  • Hi Sujit,

    Thanks for reply.

    No success means the data is not getting copied. And I am not seeing any error on console. As MJPEG enocoded data size of each frame is different, I can not configure parameters like "height" and "Width". And there is no "buffer size" parameter in DAM copy. So I doubt whether I can use it to copy this encoded data.