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?
Hello regoni,
How big is your image? it depends of your image, you can erase the CMA and GPU memories.
Regards
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?