Can glTexDirectVIVMap() be used in Android Studio project

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Can glTexDirectVIVMap() be used in Android Studio project

1,274 次查看
srzhou
Contributor I

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?

标签 (2)
0 项奖励
回复
1 回复

1,054 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复