This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/DRA746: How to bind TI drm buffer to OpenGL Texture?

Part Number: DRA746

Tool/software: Linux

I want to render video frame (decoded from libdce) as texture (in webengine).

Is there example code to demonstrate how to use it?

I know there is:

eglCreateImageKHR(eglDisplay, eglContext, EGL_DRM_BUFFER_MESA,(EGLClientBuffer)(intptr_t)drmName, attribs);

EGLint attribs[] = {
EGL_WIDTH, width,
EGL_HEIGHT, height,
EGL_DRM_BUFFER_STRIDE_MESA, pitch/4,
EGL_DRM_BUFFER_FORMAT_MESA,
EGL_DRM_BUFFER_FORMAT_ARGB32_MESA,
EGL_DRM_BUFFER_USE_MESA,
EGL_DRM_BUFFER_USE_SHARE_MESA,
EGL_NONE
};

glEGLImageTargetTexture2DOES(EGLenum target, EGLImageKHR image)

-- does TI gfx driver runs similar?

-- does TI gfx driver create EGLImage from NV12 buffer directly?