Power & Source of Big Ideas

Rendering using X11+EGL/opengl es

Moderators: chensy, FATechsupport

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
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.

Who is online

In total there are 7 users online :: 0 registered, 0 hidden and 7 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 7 guests