How to resize v4l2 buffer using g2d

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to resize v4l2 buffer using g2d

2,067件の閲覧回数
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,048件の閲覧回数
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 件の賞賛
返信