How to resize v4l2 buffer using g2d

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

How to resize v4l2 buffer using g2d

2,056 次查看
tt_0912
Contributor I

I’m trying to resize an image using g2d.
However, you need a physical address to do this.

I'm using V4L2 to get a frame of camera footage.
We have confirmed that the acquired frame can be drawn using mmap.

I don't know how to find the physical address from the virtual address I got with mmap.
Also, I don't even know if this method is correct.

I tried to convert a virtual address to a physical address using the following source code as a sample, but it fails.
https://stackoverflow.com/questions/2440385/how-to-find-the-physical-address-of-a-variable-from-user...

 

When I looked it up, I found the following question useful, but I couldn't find the URL for the answer.

https://community.nxp.com/t5/i-MX-Processors/Redirecting-Captured-Video-Frames-to-IPU/m-p/785976#M12...


It may be difficult to read because it is a sentence created by Google Translate.
Thank you.

0 项奖励
回复
1 回复

2,037 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

I have found the raw html page :

https://linux-kernel-labs.github.io/refs/heads/master/labs/memory_mapping.html

Best Regards,

Zhiming

0 项奖励
回复