imx8qxp copying camera video data is too slow!

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx8qxp copying camera video data is too slow!

跳至解决方案
802 次查看
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 项奖励
1 解答
791 次查看
igorpadykov
NXP Employee
NXP Employee

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

在原帖中查看解决方案

0 项奖励
4 回复数
792 次查看
igorpadykov
NXP Employee
NXP Employee

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

0 项奖励
772 次查看
783435100
Contributor III

Is there a way?

0 项奖励
761 次查看
igorpadykov
NXP Employee
NXP Employee

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 项奖励
785 次查看
783435100
Contributor III

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

0 项奖励