Qualcomm es8 baseline affect color
AnsweredThe display effect of the kanzi project on the Qualcomm es8 baseline is wrong. RGBA is actually displayed as BGRA. Is there any separate configuration required for this problem?
-
Official comment
Kanzi uses RGBA byte order in GraphicsFormatR8G8B8A8_UNORM format so you need to change the byte order when you are creating the texture data before feeding it to Kanzi.
The conclusion is that, the byte order of the display does not matter since Kanzi uses GL_RGBA, which is the OpenGL standard and RGBA byte order, for GraphicsFormatR8G8B8A8_UNORM format to upload the texture data to OpenGL and graphics driver should handle the necessary conversion if this data to be displayed on a BGRA screen. Please also note that OpenGL ES 3.0 does not have GL_BGRA support as you can also see from the following documentation page:
https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glTexImage2D.xhtml
Quoting from https://www.khronos.org/opengl/wiki/Pixel_Transfer : "For example, GL_RGBA format combined with GL_UNSIGNED_BYTE type means that each pixel will take up 4 unsigned bytes. The first byte will be R, the second will be G, and so on"
Please sign in to leave a comment.
Comments
1 comment