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