I read this post, which was extremely helpful:
http://www.raspberrypi.org/phpBB3/viewt ... 33&t=15463
In the specified post above, it talks about how you can set the color format, and here is the official example:
https://github.com/xbmc/xbmc-rbp/blob/m ... XImage.cpp
I also found this page, that lists all the available color formats:
http://www.khronos.org/registry/omxil/s ... cation.pdf
But, unfortunately, I cannot set it to an RGB color space.
I tried to change the OMX_COLOR_Format32bitABGR8888 to both OMX_COLOR_Format24bitBGR888 and
and no luck.
When I tried to set the parameter, m_omx_encoder.SetParameter(OMX_IndexParamPortDefinition, &port_def) it just crashes.
Is this a bug in OpenMAX? Because I don't see any reason why I cannot set the color space to 24-bit RGB instead of 32-bit RGBA !!!
Apparently, the SetParameter() function doesn't like to set the color space to RGB !!!
Has anyone had any success in setting the color space to RGB? Does anyone see what I am doing wrong?
I would really appreciate some help.
And, just a side question, does anyone know of any software to quickly encode an RGBA image?