g2d_buffer to wayland wl_buffer

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

g2d_buffer to wayland wl_buffer

573件の閲覧回数
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 返答(返信)

564件の閲覧回数
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 件の賞賛
返信

557件の閲覧回数
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 件の賞賛
返信