I have a problem of using glTexDirectMap() in my Android Studio project to reduce CPU load for a camera application, as I simply add gl2ext.h in the include directory, but I don't know how to use the corresponding libs(such as libEGL.so, libGLESv2.so, etc.).
My platform is i.MX 6Q and Linux version: 3.10.53
The question is: can the function be applied in an Android Studio project? And how?
Hi sr,
imxeglvivsink
Automatically enabled whenever possible. If the input frame uses DMA memory, The
glTexDirectVIVMap
function is used to instruct the GPU to read the pixels via DMA from the given memory region.
If you are not working with latest NXP BSP, GL_VIV_XXX viv textures was not defined in my GLES2/gl2.h / gl2ext.h since it comes from Android's NDK, however you can take it from:
chromium-imx/imx_gl_viv_direct_texture.h at master · Freescale/chromium-imx · GitHub
These Links info can help as examples:
Full HD Video GPU rendering in QT5
i.MX6: async behavior of glTexDirectVIVMap
Regards