Creating EGL image from MPP Buffer

Type: Official Firmware
Filename: ROC-RK3588S-PC_Ubuntu22.04-Xfce-r31126_v1.3.0e_240
Download Address: https://drive.google.com/drive/folders/1HA4EDAzwXz0S6dacJQMCVecuCmnWKgph
Log: tmp.rar

Hi, I’ve been trying to decode H264 and then have the output mpp_frame displayed using OpenGL by creating an EGL image. However, it keeps failing in my example below on Line 181 in function eglCreateImage(). There doesn’t seem to be any reasonable explanation as to why and the error messages are not very helpful. Any advice on correcting this example so I can get it working would be greatly appreciated, thanks.

tchip_askquestions
tmp.rar (71 Bytes)

RESOLVED.

I needed to use:

PFNEGLCREATEIMAGEKHRPROC eglCreateImageKHR = (PFNEGLCREATEIMAGEKHRPROC)eglGetProcAddress("eglCreateImageKHR");