Hello All,
I'm trying to find a way to adjust the brightness, contrast, and hue of a texture using the GC320 graphic processor on the i.MX6. Does anyone know if this is possible? If it is possible could you explain how or give a little example?
I've been reading through the "i.MX 6 2D API" but haven't come upon a solution.
Also, could someone point me at some example code for the 2D GPU API? I've looked in both LTIB and the Freescale documentation but haven't found anything.
Thank you,
Sheldon
已解决! 转到解答。
We Don´t have functions like that in the API, instead you could do that using the shaders (OpenGLES) or OpenCL, in this case, using gc2000.
regards,
Andre
Thanks you for checking on that Andre!
Unfortunately for the application I'm working on we need to use the 2D GPU. We've been able to get around the problem by making the color space adjustments by setting the color space conversion matrix via a frame buffer ioctl. This has the limitation in that it effects all items drawn to that particular frame buffer. However, we're only drawing the items whose color space we need adjusted to one frame buffer and overlaying the rest in another so that does the trick.
By the way do you know if Freescale provides any sample code for the 2D API? If so, would you please provide me a link?
Thank you,
Sheldon
Hello Gao,
I couldn't get it to work. I ended up modifying the CSC (color space conversion) matrix in the kernel. The only drawback with this method is that it modifies everything in the associated frame buffer.
Thank you,
Sheldon