Tagged: opengl es 2.0
- September 12, 2013 at 10:28 am #31485
I am using OMAP5 evm with linux running on it. I want to display video using OpenGL ES 2.0. However it is not efficient using XPutImage() or glTexImage2D().
After searching on web, everyone is suggesting an extension called GL_OES_EGL_image_external for fast uploading the textures.
Could you suggest me the way how can I use this extension to upload UYVY or any other YUV frame as a texture to OpenGL ES 2.0? I am using X11 windowing system.
There doesn’t seems to be any example program on web. Could you provide one if possible?
Thanks & Regards,
ViksSeptember 12, 2013 at 11:06 am #37982
You should contact TI for support. The behaviour of this extension tends to be platform specific. Even if the extension is available to your OpenGL ES 2.0 application, the hoops that have to be jumped through to allocate and manage the surface can vary.
JoeSeptember 12, 2013 at 12:29 pm #37983
Thanks for your quick reply.
Can’t I create a EGLImage with target EGL_NATIVE_PIXMAP_KHR from the native pixmap created using XCreatePixmap and use that EGLImage to texture target TEXTURE_EXTERNAL_OES using
this extension? What restricts here to use this extension if it is available?
Thanks & Regards,
ViksOctober 16, 2013 at 11:23 am #37984
I’ve not used the extension myself, but I believe that approach should work. As long as the extension is available & there is also a mechanism available to create EGLImage surfaces, you should be ok. TI will be able to confirm this for you.
It’s worth noting that the GPU will assume the EGLImage contains RGBA data. You will either have to convert your YUV data into RGBA before writing to the surface or you’ll use a fragment shader to perform the conversion.
JoeOctober 17, 2013 at 8:34 am #37985
Thanks for reply Joe. I used other platform specific extension.