g2d_buffer to wayland wl_buffer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

g2d_buffer to wayland wl_buffer

616 次查看
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?

标签 (1)
0 项奖励
回复
2 回复数

607 次查看
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 项奖励
回复

600 次查看
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 项奖励
回复