简体   繁体   中英

How to Set the Open GLES2.0 to work with the Android Camera?

In My Android Camera Application i want to Set some Effect on the Android Camera Preview witht the Help of OPEN GL vertex shader and fragment shader.

Is there any example or source code to use the Android camera with Open GLES effect ? ?

I have seen this . But I want android camera effect in Only One SurfaceView not on another.

Thanks.

I've done something similar. But the code is quite messy, it was just a prototype. Check it on my github https://github.com/Jaa-c/PDA-Lupa/tree/master/src/pda/lupa . Preview from the camera is displayed via OpenGL in MyGLSurfaceView, but only in greyscale, because it's to slow to convert colors. But it doesn't use shaders, since it was using only ES 1.1.

Than there is one of my answers on similar topic here: Apply custom filters to camera output . It descibes some possible ways to manually display camera preview in android.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM