Hello,
Is it possible to create a surface from existing data using the Vivante 2D API ?
Rather than following this procedure, which works:
/* Create a surface that will hold a source 2D image. */
gcoSURF_Construct(hal, width, height, depth, type, format, pool,
surface);
:
:
/* Lock the surface's memory so that it can be accessed. */
gcoSURF_Lock(*surface, NULL, surfaceMemory);
Then writing out the data.
I would like to construct a surface from existing data.
Any clarification on the 2D API-virtual framebuffer integration?
I am afraid I do not understand because the linked thread is referring to OpenGL. Can you explain more clearly the connection between virtual framebuffers and 2D API? Once obtained the data in a virtual framebuffer, how can I construct a surface?
Hi Adam,
It should be possible, please take a look to the following communilinks:
[i.MX6] Vivante: How-to readback PixmapSurface in EGL-FB?
Regards