g2d_buffer to wayland wl_buffer

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

g2d_buffer to wayland wl_buffer

490 Views
regoni
Contributor II

Hi, i have g2d_buffer-s stream of pictures after processing. I need send it to wayland server. but  i must have file descriptor of shared memory for create wl_buffer. I create shared memory and copy g2d_buffer via virtual address, it's working, but it takes too long.

Is there a better way to do this?

Labels (1)
0 Kudos
2 Replies

481 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello regoni,

How big is your image? it depends of your image, you can erase the CMA and GPU memories.

Regards

 

0 Kudos

474 Views
regoni
Contributor II

Image is 1280x720x 4 bytes per pixel.

I can clear GPU buffer via g2d_clear func, but i can't hw copy GPU buffer into buffer with virtual address of shm memory.

I am still studying and can't find userspace interfaces for these purposes.

How transform g2d_buffer to wl_buffer?

0 Kudos