imx8qxp copying camera video data is too slow!

cancel
Showing results for 
Search instead for 
Did you mean: 

imx8qxp copying camera video data is too slow!

Jump to solution
224 Views
783435100
Contributor III

Dear technical support:
I use mx8_v4l2_cap_drm.c to test and collect image data, and add the code in the static int save_to_file(int ch, struct video_channel *video_ch)  function:
memcpy(cpu_buf,video_ch[ch].buffers[buf_id].planes[i].start,1280*720*2);
  It takes 20 milliseconds to execute this copy.
  Is there any way to shorten the copy time?  Such as DMA?
  Thank you!

0 Kudos
1 Solution
213 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi 783435100

 

what processor revision used in the case, recommended to use latest rev.C0,

it improved image susystem performance as described in AN12770

i.MX 8X C0 Migration Guide Migrating from i.MX 8X B0 to i.MX 8X C0

Recommended to try copying on i.MX8QXP MEK board using latest linux release

https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.47_2.2.0

 

Best regards
igor

View solution in original post

0 Kudos
4 Replies
214 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi 783435100

 

what processor revision used in the case, recommended to use latest rev.C0,

it improved image susystem performance as described in AN12770

i.MX 8X C0 Migration Guide Migrating from i.MX 8X B0 to i.MX 8X C0

Recommended to try copying on i.MX8QXP MEK board using latest linux release

https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.47_2.2.0

 

Best regards
igor

View solution in original post

0 Kudos
194 Views
783435100
Contributor III

Is there a way?

0 Kudos
183 Views
igorpadykov
NXP TechSupport
NXP TechSupport

one can try copy with edma, M4 SDK has example in

..memory_to_memory /edma_memory_to_memory.c

https://mcuxpresso.nxp.com/en/welcome

 

Best regards
igor

0 Kudos
207 Views
783435100
Contributor III

I just use imx-yocto-L5.4.47_2.2.0

0 Kudos