I have a simple video player android application to showcase the video codec. I need hardware acceleration (using the GPU) for YUV to RGB conversion. As i searched the best way is to use OpenGL ES. Can anyone guide me where i can start with. I mean any example code specific to iMX6 using andorid APIs. I tried integrating some code in the GPU demo but that is not working as i could not find alternative to find fbGetDisplayByIndex and fbCreateWindow. Please help
Regards,
Ragesh
Solved! Go to Solution.
Hi, Ragesh
You can download gpu_sdk_v1.00.tar.gz from freescale.com.
IMX6_GPU_SDK : i.MX6 Graphics SDK – Includes sample, demo code, and documentation for working with the i.MX6X family graphics cores. Includes OpenVG, OpenGL ES, and GAL2D reference files.
Size (K): 21065 Format: gz Rev #: 1.0.0 Modified: 1/25/2013
Grace
Hi, Ragesh
You can download gpu_sdk_v1.00.tar.gz from freescale.com.
IMX6_GPU_SDK : i.MX6 Graphics SDK – Includes sample, demo code, and documentation for working with the i.MX6X family graphics cores. Includes OpenVG, OpenGL ES, and GAL2D reference files.
Size (K): 21065 Format: gz Rev #: 1.0.0 Modified: 1/25/2013
Grace
Hi,
Could you explain your use case to me? Are you doing some kind of decoding? Do you want to use a video as a texture in openGL ES?
Michel
Hi Michel,
I am demoing our video decoder's performance on iMX6 board. But the YUV to RGB conversion is reducing my FPS as it is done by CPU. In order to transfer the load of YUV to RGB conversion to GPU one can load the image into a texture, load a fragment shader performing the color conversion and draw using vertex shaders. I am looking for a sample code in iMX android to do this. I got the functions. But i don't know how to display the OpenglES frame.
-Ragesh
Hi,
Our team in china may have sample code for that. I'll get back to you when they return from vacations next week.
Michel
Hi Michel,
Could you please let me know the availability of the sample code.
Best Regards
Ragesh
Thank you Michel
Hi Michel,
Thank you for the reply. Waiting for the code. Meanwhile we are trying to integrate into VLC android app which has this feature.
Thanks,
Ragesh