Posts: 407
Joined: Sat Aug 18, 2012 5:58 pm

Dispmanx: accessing a resource's native image memory

Sun Nov 04, 2012 3:53 pm

Hello there

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: ... 67&t=20297

and 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

Return to “Graphics programming”

Who is online

Users browsing this forum: No registered users and 4 guests