rudy01
Posts: 38
Joined: Tue Feb 19, 2013 3:16 am

OpenMAX to OpenGL Texture

Fri Mar 01, 2013 8:32 pm

Hi,
I have my RGBA data stored on memory of type: OMX_BUFFERHEADERTYPE

All my pBuffer data in my OMX_BUFFERHEADERTYPE object are of type OMX_U8
http://maemo.org/api_refs/5.0/beta/libo ... y_p_e.html

which is in fact: (unsigned char)
http://maemo.org/api_refs/5.0/beta/libo ... tml#l00135


Now I want to create a OpenGL texture, and upload my RGBA data.

However, what I need is in this format:
RGBA byte: (R=255, G=0, B=0, A=1)
RGBA float: (R=1f, G=0f, B=0f, A=1f)
https://github.com/mattdesl/lwjgl-basics/wiki/Textures

Could someone tell me how can I make the proper conversion, with the least overhead?
Thanks so much in advance,
--Rudy

rudy01
Posts: 38
Joined: Tue Feb 19, 2013 3:16 am

Re: OpenMAX to OpenGL Texture

Sat Mar 02, 2013 12:11 am

Update:
I came across this, which might be what I am looking for:
http://en.wikibooks.org/wiki/OpenGL_Pro ... e/Textures

If anybody else has any other suggestions, please post.

Return to “OpenGLES”