Vivante 2D API Create Surface from Existing Data

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Vivante 2D API Create Surface from Existing Data

1,138 Views
adamk
Contributor I


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.

Labels (1)
0 Kudos
Reply
3 Replies

818 Views
adamk
Contributor I

Any clarification on the 2D API-virtual framebuffer integration?

0 Kudos
Reply

818 Views
adamk
Contributor I

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?

0 Kudos
Reply

818 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply