How to show camera preview by opengl
问题 I want to show camera preview by SurfaceTexture. I have read this sample and it work well:: Modifying camera output using SurfaceTexture and OpenGL Now I want to do some process to the preview frames, how to get the data and push to the texture? 回答1: There are two ways to use opengl to show this pixels data Using Opengl in JAVA Using opengl in c or c++ ( JNI ) Actually, either way, It is going to be easy if you know what opengl pipeline is I alway use opengl with c++ because of reusability