In dispmanx, the function vc_dispmanx_resource_create seems to accept a parameter wich is called native_image_buffer, supposedly a handler for the native image buffer.
After some investigation it seems that this handler isn't useful to get a pointer to the actual base address of the physical pixel array (wich native_image_buffer seems to suggest), so I have to use the write_data function to indirectly copy data to that native buffer.
Now, if we look here:
it's clear I am not the first person trying to access this precious memory area to save some valuable CPU time.
However, the only person who got this "holy grial" is hermanhermitage, so... Mr Herman, could you share some code on how you do it exactly?
What I did have success with was writing a signature to the surface, then scanning memory in /dev/mem