I am using OpenGL ES in JNI to draw the frame (RGB data) returned from the C source code (MPEG2 Codec). For this I have created one texture and draw RGB data using glTexSubImage2D() function of OpenGL. But Using this function I am not getting even 7 FPS. While As I have studied that using OpenGL we can get 22 FPS.
Is there any other specific function to display an image through android-ndk which will give better performance than that function (glTexSubImage2D()).
I have referred to this link to draw frame returned from codec.
Thanks in advance.
There are a set of native bitmap functions added in Android 2.2 which allow you to get direct access to the bits of a bitmap without making a copy of it. In your C code you will use: