Page 1 of 1

Rendering using X11+EGL/opengl es

Posted: Wed Oct 17, 2018 6:33 am
by naseeb
I have a use case where i need to split screen into 4 sections(tiles) and render different video in each tile.
I don't know how to achieve compositing with DRM. So, i chose to do it using x11 windows+egl surface.

I created x11 window. Video is decoded using mpp decoder(pure external mode) which give me decoded data in dumb-buffers.i mmap() it with memory. Now i render this decoded data using openGL ES on EGL surface. But performance is too slow even for single video(4 tiles are too far :cry: )

Can anyone suggest how to do it with good speed.

Board : NanoPC T4
OS: ubuntu 16.04 Xenial
Kernel: 4.4.138

Re: Rendering using X11+EGL/opengl es

Posted: Tue Oct 23, 2018 10:39 am
by naseeb
Rather than using mmap(), i tried another approach which makes data reading faster.

MppBuffer buffer = mpp_frame_get_buffer(frame);
base = (RK_U8 *)mpp_buffer_get_ptr(buffer);

Now use tihs 'base' pointer.