How to render Android’s YUV-NV21 camera image on the background in libgdx with OpenGLES 2.0 in real-time?
The short answer is to load the camera image channels (Y,UV) into textures and draw these textures onto a Mesh using a custom fragment shader that will do the color space conversion for us. Since this shader will be running on the GPU, it will be much faster than CPU and certainly much much faster … Read more