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.